diff options
Diffstat (limited to '_old/package.json')
-rw-r--r-- | _old/package.json | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/_old/package.json b/_old/package.json new file mode 100644 index 0000000..19b8486 --- /dev/null +++ b/_old/package.json @@ -0,0 +1,45 @@ +{ + "name": "carpentertutoring-com", + "version": "1.0.0", + "description": "Carpenter Tutoring Web Site", + "main": "src/index.html", + "author": "Adam Carpenter", + "license": "BSD-3-Clause", + "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.14.1", + "npm-run-all": "^4.1.5", + "onchange": "^6.1.0" + }, + "scripts": { + "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", + "mkdirs": "mkdir -p dist", + "prebuild:dev": "npm run clean && npm run mkdirs && npm run copy", + "prebuild:prod": "npm run clean && npm run mkdirs && npm run copy", + "preserve": "npm run build:dev", + "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:css": "onchange 'src/scss/**/*' -- npm run css:dev", + "watch:html": "onchange 'src/html/**/*' -- npm run copy:html", + "watch:js": "onchange 'src/js/**/*' -- npm run js:dev" + } +} |