1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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"
}
}
|