normalize-space-x
v1.3.2 es6 normalize-space module javascript nodejs browser
clean
rimraf README.md lib/*
clean:jasmine
rimraf tests/index.html tests/run.js
clean:all
npm run clean:jasmine && npm run clean
build
npm run clean && npm run lint && npm run browserify && npm run uglify && npm run docs && npm test && npm run security
build:jasmine
npm run clean:jasmine && make-jasmine-spec-runner-html
build:setver
replace-x " @version .*" " @version $(node -p -e "require('./package.json').version")" index.js
build:name
replace-x " @module .*" " @module $(node -p -e "require('./package.json').name")" index.js
build:description
replace-x " @file .*" " @file $(node -p -e "require('./package.json').description")" index.js
build:replace
npm run build:setver && npm run build:name && npm run build:description
production
npm run clean:all && npm run build:jasmine && npm run build:replace && npm run build
start
parallelshell "serve" "nodemon --watch index.js --exec 'npm run build'"
docs:name
replace-x "@{PACKAGE-NAME}" "$(node -p -e "require('./package.json').name")" README.md
docs:badges
ncp badges.html README.md && npm run docs:name
docs
npm run docs:badges && jsdoc2md --name-format --example-lang js index.js >> README.md
lint
eslint *.js tests/spec/*.js
lint-fix
npm run lint -- --fix
security
nsp check
test
jasmine-node --matchall tests/spec/
browserify
browserify -p browserify-derequire -e index.js -o lib/normalize-space-x.js -u 'crypto' -s returnExports
uglify
uglifyjs lib/normalize-space-x.js -o lib/normalize-space-x.min.js --config-file .uglifyjsrc.json
precommit
npm run production
prepush
npm run production