diff options
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 65 |
1 files changed, 48 insertions, 17 deletions
diff --git a/package.json b/package.json index 078360c..1120c0b 100644 --- a/package.json +++ b/package.json @@ -1,19 +1,50 @@ { - "name": "carpentertutoring-com", - "version": "1.0.0", - "description": "Amy Carpenter's Tutoring Site", - "main": "src/sass/mystyles.scss", - "scripts": { - "css-build": "node-sass --omit-source-map-url src/sass/mystyles.scss dist/css/mystyles.css", - "build": "cp -R src/ dist/ && npm run css-build", - "build-watch": "watch 'npm run build' src" - }, - "author": "Adam Carpenter", - "license": "MIT", - "devDependencies": { - "bulma": "^0.8.0", - "node-sass": "^4.13.1", - "watch": "^1.0.2" - }, - "dependencies": {} + "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'" + } } |