summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'package.json')
-rw-r--r--package.json25
1 files changed, 13 insertions, 12 deletions
diff --git a/package.json b/package.json
index ecfc14c..19b8486 100644
--- a/package.json
+++ b/package.json
@@ -8,37 +8,38 @@
"dependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.9.0",
+ "concat": "^1.0.3",
"uglify-js": "^3.9.1"
},
"devDependencies": {
"babel-plugin-minify-builtins": "^0.5.0",
"browser-sync": "^2.26.7",
"bulma": "^0.8.0",
- "node-sass": "^4.13.1",
+ "node-sass": "^4.14.1",
"npm-run-all": "^4.1.5",
"onchange": "^6.1.0"
},
"scripts": {
- "serve": "run-p browser watch",
+ "browser": "browser-sync start -s --no-open --files 'dist/**/*' --ss 'dist' --port 8080 --reload-debounce 500",
+ "build:dev": "npm run css:dev && npm run js:dev",
+ "build:prod": "npm run css:prod && npm run js:prod",
+ "clean": "rm -rf dist/",
+ "copy": "npm run copy:assets && npm run copy:html",
+ "copy:assets": "cp -r src/assets/* dist/",
+ "copy:html": "concat -o dist/index.html src/html/*",
"css:dev": "node-sass src/scss/index.scss dist/index.css",
"css:prod": "node-sass src/scss/index.scss --output-style compressed dist/index.css",
"js:dev": "babel src/js --source-maps > dist/app.js",
"js:prod": "babel --plugins minify-builtins src/js > dist/app.js",
- "clean": "rm -rf dist/",
"mkdirs": "mkdir -p dist",
- "copy:assets": "cp -r src/assets/* dist/",
- "copy:html": "cp -r src/html/* dist/",
- "copy": "npm run copy:assets && npm run copy:html",
"prebuild:dev": "npm run clean && npm run mkdirs && npm run copy",
"prebuild:prod": "npm run clean && npm run mkdirs && npm run copy",
- "build:dev": "npm run css:dev && npm run js:dev",
- "build:prod": "npm run css:prod && npm run js:prod",
"preserve": "npm run build:dev",
- "browser": "browser-sync start -s --no-open --files 'dist/**/*' --ss 'dist' --port 8080 --reload-debounce 500",
+ "serve": "run-p browser watch",
+ "watch": "run-p watch:css watch:js watch:html watch:assets",
"watch:assets": "onchange 'src/assets/**/*' -- npm run copy:assets",
- "watch:html": "onchange 'src/html/**/*' -- npm run copy:html",
"watch:css": "onchange 'src/scss/**/*' -- npm run css:dev",
- "watch:js": "onchange 'src/js/**/*' -- npm run js:dev",
- "watch": "run-p watch:css watch:js watch:html watch:assets"
+ "watch:html": "onchange 'src/html/**/*' -- npm run copy:html",
+ "watch:js": "onchange 'src/js/**/*' -- npm run js:dev"
}
}