Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
"dependencies": {
"jshint": "latest",
"uglifyjs": "latest",
"watch": "latest"
"config": {
"github_url": "",
"maps_url": "",
"scripts": {
"clean:dist": "rm -rf dist",
"clean:tmp": "rm -rf tmp",
"clean": "npm run clean:dist && npm run clean:tmp",
"jshint:dist": "src/js/*.js'",
"jshint": "npm run jshint:dist",
"copy:dist": "cp src/!{js,css,index.html.tpl} dist/",
"copy": "npm run copy:dist",
"uglify:dist": "uglify src/js/**/*.js > dist/js/script.min.js",
"uglify": "npm run uglify:dist",
"less:dist": "lessc -x -sm=on src/css/style.less > dist/css/style.min.css",
"less": "npm run less:dist",
"curl:github": "curl -H 'Accept:application/vnd.github.v3+json' $npm_package_config_github_url > tmp/github.json",
"curl:maps": "curl $npm_package_config_maps_url > dist/img/maps.png",
"htmlmin:dist": "htmlmin -cs dist/index.html tmp/index.html",
"template": "echo Not sure what this does, so don't know, sorry!",
"build:html": "npm run curl:github && npm run template && npm run htmlmin",
"build:js": "npm run jshint && npm run uglify",
"build:css": "npm run less",
"build": "npm run clean && npm run build:html && npm run build:js && npm run build:css",
"watch": "watch 'npm run build' ."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.