2016-01-04 11:35:36 +00:00
|
|
|
{
|
2017-10-24 21:40:41 +00:00
|
|
|
"config": {
|
2017-11-07 13:04:59 +00:00
|
|
|
"jsPath": "assets/js",
|
|
|
|
"lessPath": "assets/less",
|
2017-11-07 13:06:47 +00:00
|
|
|
"outputCss": "source/assets/css",
|
|
|
|
"outputFonts": "source/assets/fonts",
|
|
|
|
"outputJs": "source/assets/js"
|
2017-10-24 21:40:41 +00:00
|
|
|
},
|
|
|
|
"scripts": {
|
|
|
|
"build": "npm run init && npm-run-all -p build:css build:js copy:fonts",
|
2017-11-08 22:27:30 +00:00
|
|
|
"build:css": "npm run less -- && npm run postcss",
|
2017-11-07 13:06:47 +00:00
|
|
|
"build:js": "concat -o $npm_package_config_outputJs/site.js node_modules/jquery/dist/jquery.js node_modules/highlightjs/highlight.pack.js $npm_package_config_jsPath/vendor/*.js $npm_package_config_jsPath/main.js",
|
|
|
|
"copy:fonts": "cp -R node_modules/font-awesome/fonts/* $npm_package_config_outputFonts",
|
2017-10-24 21:40:41 +00:00
|
|
|
"dev": "npm run build && npm-run-all -p watch:css watch:js",
|
|
|
|
"init": "mkdir -p $npm_package_config_outputCss $npm_package_config_outputFonts $npm_package_config_outputJs",
|
|
|
|
"less": "lessc --npm-import='prefix=~' $npm_package_config_lessPath/main.less $npm_package_config_outputCss/site.css",
|
2017-11-08 22:27:30 +00:00
|
|
|
"postcss": "postcss -u autoprefixer tailwindcss -r $npm_package_config_outputCss/*.css",
|
2017-10-24 21:40:41 +00:00
|
|
|
"prod": "npm run build",
|
2017-10-28 15:23:57 +00:00
|
|
|
"watch": "npm-run-all -p watch:css watch:js",
|
2017-10-24 21:40:41 +00:00
|
|
|
"watch:css": "onchange $npm_package_config_lessPath -v -- npm-run-all -p build:css",
|
|
|
|
"watch:js": "onchange $npm_package_config_jsPath -v -- npm-run-all -p build:js"
|
|
|
|
},
|
2017-06-15 17:22:11 +00:00
|
|
|
"dependencies": {
|
2017-10-24 21:40:41 +00:00
|
|
|
"autoprefixer": "^7.1.5",
|
|
|
|
"concat": "^1.0.3",
|
2017-06-15 17:22:11 +00:00
|
|
|
"font-awesome": "^4.7.0",
|
2017-10-24 21:40:41 +00:00
|
|
|
"graceful-fs": "^4.1.11",
|
2017-11-01 21:06:56 +00:00
|
|
|
"highlightjs": "^9.10.0",
|
2017-06-15 17:22:11 +00:00
|
|
|
"jquery.2": "^1.0.0",
|
2017-10-24 21:40:41 +00:00
|
|
|
"less": "2.7.1",
|
|
|
|
"less-plugin-clean-css": "^1.5.1",
|
|
|
|
"less-plugin-npm-import": "^2.1.0",
|
|
|
|
"npm-run-all": "^4.1.1",
|
|
|
|
"onchange": "^3.2.1",
|
|
|
|
"postcss-cli": "^4.1.1",
|
2017-11-08 22:27:30 +00:00
|
|
|
"tailwindcss": "^0.1.4"
|
2016-01-04 11:35:36 +00:00
|
|
|
}
|
|
|
|
}
|