Skip to content

Commit 4e960f5

Browse files
committed
Switch to microbundle
1 parent 182735b commit 4e960f5

6 files changed

+28
-54
lines changed

.gitignore

+2-3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@ wiki-wishlist
1313
*.sublime-workspace
1414
.editorconfig
1515
.idea
16-
lib
17-
/plugins
18-
/.vscode/tasks.json
16+
.vscode
17+
/dist

.npmignore

-5
This file was deleted.

entry.js

-3
This file was deleted.

package.json

+26-20
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
{
22
"name": "swup-morph-plugin",
33
"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+
],
615
"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"
1021
},
1122
"author": {
1223
"name": "Philipp Daun",
@@ -16,22 +27,17 @@
1627
"license": "MIT",
1728
"repository": {
1829
"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"
3231
},
3332
"dependencies": {
34-
"@swup/plugin": "^1.0.1",
33+
"@swup/plugin": "^2.0.0",
3534
"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"
3743
}

prettier.config.js

-1
This file was deleted.

webpack.config.js

-22
This file was deleted.

0 commit comments

Comments
 (0)