|
1 | 1 | {
|
2 | 2 | "name": "swup-morph-plugin",
|
3 | 3 | "version": "0.2.1",
|
4 |
| - "description": "Swup plugin to morph DOM nodes into new page.", |
5 |
| - "main": "lib/index.js", |
| 4 | + "amdName": "SwupMorphPlugin", |
| 5 | + "description": "A swup plugin for morphing dom nodes into the new page", |
| 6 | + "type": "module", |
| 7 | + "source": "src/index.js", |
| 8 | + "main": "./dist/index.cjs", |
| 9 | + "module": "./dist/index.module.js", |
| 10 | + "exports": "./dist/index.modern.js", |
| 11 | + "unpkg": "./dist/index.umd.js", |
| 12 | + "files": [ |
| 13 | + "dist" |
| 14 | + ], |
6 | 15 | "scripts": {
|
7 |
| - "compile": "babel --presets es2015,stage-0 -d lib/ src/", |
8 |
| - "build": "webpack-cli", |
9 |
| - "prepublish": "npm run compile && npm run build" |
| 16 | + "build": "swup-plugin build", |
| 17 | + "dev": "swup-plugin dev", |
| 18 | + "lint": "swup-plugin lint", |
| 19 | + "format": "swup-plugin format", |
| 20 | + "prepublish": "npm run build" |
10 | 21 | },
|
11 | 22 | "author": {
|
12 | 23 | "name": "Philipp Daun",
|
|
16 | 27 | "license": "MIT",
|
17 | 28 | "repository": {
|
18 | 29 | "type": "git",
|
19 |
| - "url": "https://github.com/philippdaun/swup-morph-plugin.git" |
20 |
| - }, |
21 |
| - "devDependencies": { |
22 |
| - "@swup/prettier-config": "^1.0.0", |
23 |
| - "@swup/webpack-config": "^1.0.0", |
24 |
| - "babel-cli": "^6.26.0", |
25 |
| - "babel-loader": "^7.1.4", |
26 |
| - "babel-preset-es2015": "^6.24.1", |
27 |
| - "babel-preset-stage-0": "^6.24.1", |
28 |
| - "lodash": "^4.17.21", |
29 |
| - "prettier": "^2.0.5", |
30 |
| - "webpack": "^4.43.0", |
31 |
| - "webpack-cli": "^3.3.12" |
| 30 | + "url": "https://github.com/daun/swup-morph-plugin.git" |
32 | 31 | },
|
33 | 32 | "dependencies": {
|
34 |
| - "@swup/plugin": "^1.0.1", |
| 33 | + "@swup/plugin": "^2.0.0", |
35 | 34 | "morphdom": "^2.6.1"
|
36 |
| - } |
| 35 | + }, |
| 36 | + "peerDependencies": { |
| 37 | + "swup": "^4.0.0" |
| 38 | + }, |
| 39 | + "browserslist": [ |
| 40 | + "extends @swup/browserslist-config" |
| 41 | + ], |
| 42 | + "prettier": "@swup/prettier-config" |
37 | 43 | }
|
0 commit comments