Skip to content

Commit 14b884f

Browse files
committed
Add simple dev server
1 parent 40d0da0 commit 14b884f

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,11 +14,18 @@
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
"devDependencies": {
2024
"autoprefixer": "^10.0.2",
25+
"chokidar-cli": "^2.1.0",
2126
"clean-css": "^4.2.1",
27+
"concurrently": "^5.3.0",
28+
"live-server": "^1.2.1",
2229
"postcss": "^8.1.7",
2330
"tailwindcss": "^2.0.0-alpha.25"
2431
},

0 commit comments

Comments
 (0)