Skip to content

Commit 8304072

Browse files
committed
Add simple dev server
1 parent 1d8f79d commit 8304072

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,21 @@
1414
"trailingComma": "es5"
1515
},
1616
"scripts": {
17-
"prepublishOnly": "node scripts/build.js"
17+
"dev": "concurrently \"npm run serve\" \"npm run watch\"",
18+
"serve": "live-server .",
19+
"watch": "chokidar \"./src/**/*.js\" -c \"npm run build\"",
20+
"build": "node scripts/build.js",
21+
"prepublishOnly": "npm run build"
1822
},
1923
"peerDependencies": {
2024
"tailwindcss":">=2.0.0"
2125
},
2226
"devDependencies": {
2327
"autoprefixer": "^10.0.2",
28+
"chokidar-cli": "^2.1.0",
2429
"clean-css": "^4.2.1",
30+
"concurrently": "^5.3.0",
31+
"live-server": "^1.2.1",
2532
"postcss": "^8.1.7",
2633
"tailwindcss": "^2.0.3"
2734
},

0 commit comments

Comments
 (0)