Skip to content

Commit 3af018f

Browse files
committed
chore(package): add server and watch for docs
1 parent bd305fe commit 3af018f

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,13 @@
2525
"test": "gulp test",
2626
"clean": "rm -rf dist && mkdir dist",
2727
"html": "posthtml -o docs/ -i src/docs/*.html",
28-
"css": "postcss -o dist/css/slims.min.css src/css/slims.css -c postcss.json",
28+
"css": "postcss -o dist/css/slims.min.css src/css/slims.css -c postcss.json && cp -a dist/. docs/",
2929
"build": "npm run clean && npm run css && npm run html",
30-
"deploy": "gulp deploy",
30+
"watch:docs": "chokidar src/docs/**/* -c \"npm run html\"",
31+
"watch:css": "chokidar src/css/**/* -c \"npm run css\"",
32+
"watch": "npm run watch:docs | npm run watch:css",
33+
"server": "browser-sync start --server docs --files docs",
34+
"dev": " npm run server | npm run watch",
3135
"update": "updtr"
3236
},
3337
"files": [
@@ -41,6 +45,8 @@
4145
"babel-eslint": "^7.1.1",
4246
"babel-preset-env": "^1.1.7",
4347
"babel-register": "^6.18.0",
48+
"browser-sync": "^2.18.6",
49+
"chokidar-cli": "^1.2.0",
4450
"clinton": "^0.10.0",
4551
"conventional-changelog-cli": "^1.2.0",
4652
"conventional-changelog-lint": "^1.1.0",
@@ -75,7 +81,7 @@
7581
"postcss-nested": "^1.0.0",
7682
"postcss-reduce-initial": "^1.0.1",
7783
"postcss-sorting": "^1.7.0",
78-
"posthtml-cli": "^0.2.11",
84+
"posthtml-cli": "^0.2.10",
7985
"posthtml-expressions": "^1.1.0",
8086
"posthtml-extend": "^0.1.2",
8187
"posthtml-modules": "^0.4.2",

0 commit comments

Comments
 (0)