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
46
47
48
49
50
|
{
"name": "carpentertutoring-com",
"version": "1.0.0",
"description": "Carpenter Tutoring Site",
"main": "src/index.html",
"author": "Adam Carpenter",
"license": "MIT",
"dependencies": {},
"devDependencies": {
"bulma": "^0.8.0",
"node-sass": "^4.13.1",
"parallelshell": "^3.0.2",
"onchange": "^6.1.0",
"browser-sync": "^2.26.7"
},
"scripts": {
"//": "Lifted from https://gist.github.com/adamreisnz/9edf1f48e19c104b81f8102a27de0940",
"//": "General",
"start": "parallelshell 'npm run serve' 'npm run watch'",
"//": "CSS",
"css:dev": "node-sass src/scss/index.scss dist/index.css",
"//": "JS",
"js:dev": "cp -r src/js dist/js",
"//": "Build (Generic)",
"clean": "rm -rf dist/",
"mkdirs": "mkdir -p dist/js && mkdir -p dist/css",
"copy:assets": "cp -r src/assets/* dist/",
"copy:html": "cp -r src/html/* dist/",
"copy": "npm run copy:assets && npm run copy:html",
"//": "Build (Development)",
"prebuild:dev": "npm run clean && npm run mkdirs && npm run copy",
"build:dev": "npm run css:dev && npm run js:dev",
"//": "Serve",
"kill": "lsof -n -i:8080 | grep LISTEN | awk '{print $2}' | xargs kill -9",
"preserve": "npm run build:dev && npm run kill",
"serve": "browser-sync start -s --files 'dist/**/*.(js|css|html)' --ss 'dist' --port 8080 --reload-debounce 500",
"//": "Watch",
"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": "parallelshell 'npm run watch:css' 'npm run watch:js' 'npm run watch:html' 'npm run watch:assets'"
}
}
|