oliverdavies.uk/package.json

49 lines
2.6 KiB
JSON
Raw Normal View History

2016-01-04 11:35:36 +00:00
{
2017-07-17 20:17:49 +00:00
"config": {
"cssOutputDir": "source/assets/css/",
"cssOutputFile": "main.css",
"fontsDir": "source/assets/fonts/",
"jsInputDir": "assets/js/",
"jsOutputDir": "source/assets/js/",
"jsOutputFile": "site.js",
"sassDir": "assets/sass/"
},
"scripts": {
2017-07-20 17:07:07 +00:00
"build": "npm run clean && npm-run-all -p sass js fonts:copy",
2017-07-17 20:17:49 +00:00
"clean": "npm-run-all -p sass:clean fonts:clean js:clean",
"dev": "npm run development",
2017-07-20 17:07:07 +00:00
"development": "npm run build && npm-run-all -p sass:watch js:watch",
"fonts:clean": "rm -rf $npm_package_config_fontsDir output_*/assets/fonts/",
2017-07-17 20:17:49 +00:00
"fonts:copy": "mkdir -p $npm_package_config_fontsDir && cp -R node_modules/font-awesome/fonts/* $npm_package_config_fontsDir",
"js": "npm run js:concat",
2017-07-20 17:07:07 +00:00
"js:clean": "rm -rf $npm_package_config_jsOutputDir output_*/assets/js/",
2017-07-17 20:17:49 +00:00
"js:concat": "mkdir -p $npm_package_config_jsOutputDir && concat node_modules/jquery/dist/jquery.js node_modules/bootstrap-sass/assets/javascripts/bootstrap.js node_modules/prismjs/prism.js node_modules/prismjs/components/prism-{apacheconf,bash,css,diff,ini,json,nginx,php,sass,scss,sql,less,twig,yaml}.js $npm_package_config_jsInputDir/**/*.js $npm_package_config_jsInputDir/main.js -o $npm_package_config_jsOutputDir$npm_package_config_jsOutputFile",
"js:watch": "onchange $npm_package_config_jsInputDir -v -- npm run js",
2017-07-20 17:07:07 +00:00
"prod": "npm run production",
2017-07-22 11:34:33 +00:00
"production": "npm run build && npm run sass:remove-maps",
2017-07-17 20:17:49 +00:00
"sass": "npm run sass:build && npm run sass:move",
"sass:build": "npm run sass:compile && npm run sass:concat",
2017-07-20 17:07:07 +00:00
"sass:clean": "rm -rf $npm_package_config_cssOutputDir output_*/assets/css/",
2017-07-17 20:17:49 +00:00
"sass:compile": "node-sass assets/sass/main.sass $npm_package_config_cssOutputFile --source-map true",
"sass:concat": "mkdir -p $npm_package_config_cssOutputDir && concat node_modules/font-awesome/css/font-awesome.css node_modules/prismjs/themes/prism-twilight.css $npm_package_config_cssOutputFile -o $npm_package_config_cssOutputFile",
"sass:move": "mv $npm_package_config_cssOutputFile $npm_package_config_cssOutputFile.map $npm_package_config_cssOutputDir",
2017-07-22 11:34:33 +00:00
"sass:remove-maps": "rm $npm_package_config_cssOutputDir/.*map",
2017-07-17 20:17:49 +00:00
"sass:watch": "onchange $npm_package_config_sassDir -v -- npm run sass"
},
2016-01-04 11:35:36 +00:00
"devDependencies": {
2017-07-17 20:17:49 +00:00
"autoprefixer": "^7.1.2",
"concat": "^1.0.3",
"copy": "^0.3.0",
"node-sass": "^4.5.3",
"npm-run-all": "^4.0.2",
"onchange": "^3.2.1",
"purify-css": "^1.2.5"
2017-06-15 17:22:11 +00:00
},
"dependencies": {
"bootstrap-sass": "^3.3.7",
"font-awesome": "^4.7.0",
"jquery.2": "^1.0.0",
"prismjs": "^1.6.0"
2016-01-04 11:35:36 +00:00
}
}