summaryrefslogtreecommitdiff
path: root/package.json
blob: 631356426101b7677ecc61f91613edef14c659cf (plain) (blame)
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
{
	"name": "carpentertutoring-com",
	"version": "1.0.0",
	"description": "Carpenter Tutoring Web Site",
	"main": "src/index.html",
	"author": "Adam Carpenter",
	"license": "BSD-3-Clause",
	"dependencies": {},
	"devDependencies": {
		"browser-sync": "^2.26.7",
		"bulma": "^0.8.0",
		"node-sass": "^4.13.1",
		"npm-run-all": "^4.1.5",
		"onchange": "^6.1.0"
	},
	"scripts": {
		"start": "run-p serve watch",
		"css:dev": "node-sass src/scss/index.scss dist/css/index.css",
		"js:dev": "cp -r src/js/* dist/js",
		"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",
		"prebuild:dev": "npm run clean && npm run mkdirs && npm run copy",
		"build:dev": "npm run css:dev && npm run js:dev",
		"preserve": "npm run build:dev",
		"serve": "browser-sync start -s --no-open --files 'dist/**/*' --ss 'dist' --port 8080 --reload-debounce 500",
		"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"
	}
}