{ "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": { "build": "npm run clean && npm-run-all -p sass js fonts:copy", "clean": "npm-run-all -p sass:clean fonts:clean js:clean", "dev": "npm run development", "development": "cross-env ENV=dev npm run build && npm-run-all -p sass:watch js:watch", "fonts:clean": "rm -rf $npm_package_config_fontsDir output_*/assets/fonts/", "fonts:copy": "mkdir -p $npm_package_config_fontsDir && cp -R node_modules/font-awesome/fonts/* $npm_package_config_fontsDir", "js": "npm run js:concat", "js:clean": "rm -rf $npm_package_config_jsOutputDir output_*/assets/js/", "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.js node_modules/prismjs/components/prism-bash.js node_modules/prismjs/components/prism-css.js node_modules/prismjs/components/prism-diff.js node_modules/prismjs/components/prism-ini.js node_modules/prismjs/components/prism-json.js node_modules/prismjs/components/prism-json.js node_modules/prismjs/components/prism-less.js node_modules/prismjs/components/prism-nginx.js node_modules/prismjs/components/prism-php.js node_modules/prismjs/components/prism-sass.js node_modules/prismjs/components/prism-scss.js node_modules/prismjs/components/prism-sql.js node_modules/prismjs/components/prism-twig.js node_modules/prismjs/components/prism-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", "prod": "npm run production", "production": "cross-env ENV=prod npm run build", "sass": "npm run sass:$ENV:compile && npm run sass:concat && npm run sass:$ENV:move", "sass:clean": "rm -rf $npm_package_config_cssOutputDir output_*/assets/css/", "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: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", "sass:watch": "onchange $npm_package_config_sassDir -v -- npm run sass" }, "devDependencies": { "autoprefixer": "^7.1.2", "concat": "^1.0.3", "copy": "^0.3.0", "cross-env": "^5.0.1", "node-sass": "^4.5.3", "npm-run-all": "^4.0.2", "onchange": "^3.2.1", "purify-css": "^1.2.5", "uglifycss": "^0.0.27" }, "dependencies": { "bootstrap-sass": "^3.3.7", "font-awesome": "^4.7.0", "jquery.2": "^1.0.0", "prismjs": "^1.6.0" } }