2016-01-04 11:35:36 +00:00
|
|
|
{
|
2017-10-24 21:40:41 +00:00
|
|
|
"config": {
|
2017-11-01 20:58:58 +00:00
|
|
|
"jsPath": "./js",
|
|
|
|
"lessPath": "./less",
|
2017-10-24 21:40:41 +00:00
|
|
|
"outputCss": "./source/assets/css",
|
|
|
|
"outputFonts": "./source/assets/fonts",
|
|
|
|
"outputJs": "./source/assets/js"
|
|
|
|
},
|
|
|
|
"scripts": {
|
|
|
|
"autoprefixer": "postcss -u autoprefixer -r $npm_package_config_outputCss/*.css",
|
|
|
|
"build": "npm run init && npm-run-all -p build:css build:js copy:fonts",
|
|
|
|
"build:css": "npm run less -- && npm run autoprefixer",
|
2017-10-30 16:04:05 +00:00
|
|
|
"build:js": "concat -o $npm_package_config_outputJs/site.js ./node_modules/jquery/dist/jquery.js $npm_package_config_jsPath/vendor/*.js $npm_package_config_jsPath/main.js",
|
2017-10-24 21:40:41 +00:00
|
|
|
"copy:fonts": "cp -R ./node_modules/font-awesome/fonts/* $npm_package_config_outputFonts",
|
|
|
|
"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",
|
|
|
|
"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-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-08-24 14:28:31 +00:00
|
|
|
"prismjs": "^1.6.0",
|
2017-10-24 21:40:41 +00:00
|
|
|
"tachyons-less": "^1.0.4"
|
2016-01-04 11:35:36 +00:00
|
|
|
}
|
|
|
|
}
|