Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
69 lines (68 sloc) 2.58 KB
"name": "npm-compiler",
"version": "1.0.3",
"description": "A compiler for scss, js and asset sync, built with npm scripts.",
"main": "index.js",
"author": "nervewax <>",
"license": "ISC",
"browserslist": [
"> 5%",
"last 2 versions",
"not dead"
"repository": {
"type": "git",
"url": ""
"bugs": "",
"keywords": [
"npm scripts",
"sass compiler"
"config": {
"out": "public/assets"
"scripts": {
"scss": "node-sass -o $npm_package_config_out/css/ src/scss/",
"postcss": "postcss $npm_package_config_out/css/main.css -m -o $npm_package_config_out/css/main.min.css",
"terser": "mkdirp $npm_package_config_out/js && terser src/js/*.js -o $npm_package_config_out/js/main.js && terser src/js/*.js -m -c -o $npm_package_config_out/js/main.min.js",
"imagemin": "imagemin src/image/* --out-dir=$npm_package_config_out/image",
"svgo": "mkdirp $npm_package_config_out/svg && svgo -f src/svg -o $npm_package_config_out/svg",
"livereload": "livereload .",
"clean:all": "rimraf $npm_package_config_out/",
"clean:code": "rimraf $npm_package_config_out/{css,js}",
"clean": "run-s clean:*",
"copy:fonts": "cp -a src/font $npm_package_config_out/",
"copy:assets": "cp -a src/{font,image,svg} $npm_package_config_out/",
"build:css": "run-s scss postcss",
"build:js": "run-s terser",
"build:assets": "run-s imagemin svgo copy:fonts",
"build:markup": "html-minifier --input-dir src --output-dir public --collapse-whitespace --remove-comments --remove-optional-tags --remove-tag-whitespace --use-short-doctype --minify-css true --minify-js true --file-ext html",
"build": "mkdirp $npm_package_config_out && run-s clean build:*",
"dev": "mkdirp $npm_package_config_out && run-p build:css build:js copy:fonts copy:assets build:markup",
"watch:css": "onchange 'src/scss' -- run-s build:css",
"watch:js": "onchange 'src/js' -- run-s build:js",
"watch:assets": "onchange 'src/font' 'src/image' 'src/svg' -- run-s copy:assets",
"watch:markup": "onchange 'src/**/*.html' -- run-s build:markup",
"watch": "mkdirp $npm_package_config_out && run-p watch:* livereload"
"devDependencies": {
"autoprefixer": "latest",
"cssnano": "latest",
"html-minifier": "latest",
"imagemin-cli": "latest",
"livereload": "latest",
"mkdirp": "latest",
"node-sass": "latest",
"npm-run-all": "latest",
"onchange": "latest",
"pixrem": "latest",
"postcss-cli": "latest",
"rimraf": "latest",
"svgo": "latest",
"terser": "latest"
You can’t perform that action at this time.