This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
oliverdavies.uk-old-sculpin/package.json

39 lines
1.7 KiB
JSON

{
"config": {
"jsPath": "assets/js",
"lessPath": "assets/less",
"outputCss": "source/assets/css",
"outputFonts": "source/assets/fonts",
"outputJs": "source/assets/js"
},
"scripts": {
"build": "npm run init && npm-run-all -p build:css build:js copy:fonts",
"build:css": "npm run less -- && npm run postcss",
"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",
"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",
"postcss": "postcss -c postcss.config.js -r $npm_package_config_outputCss/*.css",
"prod": "npm run build",
"watch": "npm-run-all -p watch:css watch:js",
"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"
},
"dependencies": {
"autoprefixer": "^7.1.5",
"concat": "^1.0.3",
"font-awesome": "^4.7.0",
"graceful-fs": "^4.1.11",
"highlightjs": "^9.10.0",
"jquery.2": "^1.0.0",
"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",
"tailwindcss": "^0.1.4"
}
}