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/"
|
|
|
|
},
|
2017-01-05 13:17:40 +00:00
|
|
|
"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-25 07:41:11 +00:00
|
|
|
"development": "cross-env ENV=dev npm run build && npm-run-all -p sass:watch js:watch",
|
2017-07-20 17:07:07 +00:00
|
|
|
"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-25 17:26:40 +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 $npm_package_config_jsInputDir/**/*.js $npm_package_config_jsInputDir/main.js -o $npm_package_config_jsOutputDir$npm_package_config_jsOutputFile",
|
2017-07-17 20:17:49 +00:00
|
|
|
"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-25 07:41:11 +00:00
|
|
|
"production": "cross-env ENV=prod npm run build",
|
|
|
|
"sass": "npm run sass:$ENV:compile && npm run sass:concat && npm run sass:$ENV:move",
|
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: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",
|
2017-07-25 07:41:11 +00:00
|
|
|
"sass:dev:compile": "node-sass assets/sass/main.sass $npm_package_config_cssOutputFile --source-map true",
|
|
|
|
"sass:dev:move": "mv $npm_package_config_cssOutputFile $npm_package_config_cssOutputFile.map $npm_package_config_cssOutputDir",
|
|
|
|
"sass:prod:compile": "node-sass assets/sass/main.sass $npm_package_config_cssOutputFile",
|
|
|
|
"sass:prod:move": "mv $npm_package_config_cssOutputFile $npm_package_config_cssOutputDir && npm run sass:uglify",
|
|
|
|
"sass:uglify": "uglifycss --ugly-comments $npm_package_config_cssOutputDir/$npm_package_config_cssOutputFile --output $npm_package_config_cssOutputDir/$npm_package_config_cssOutputFile",
|
2017-07-17 20:17:49 +00:00
|
|
|
"sass:watch": "onchange $npm_package_config_sassDir -v -- npm run sass"
|
2017-01-05 13:17:40 +00:00
|
|
|
},
|
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",
|
2017-07-25 07:41:11 +00:00
|
|
|
"cross-env": "^5.0.1",
|
2017-07-17 20:17:49 +00:00
|
|
|
"node-sass": "^4.5.3",
|
|
|
|
"npm-run-all": "^4.0.2",
|
|
|
|
"onchange": "^3.2.1",
|
2017-07-25 07:41:11 +00:00
|
|
|
"purify-css": "^1.2.5",
|
|
|
|
"uglifycss": "^0.0.27"
|
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
|
|
|
}
|
|
|
|
}
|