UNPKG

snack.js

Version:

Lightweight toast notifications module

80 lines (79 loc) 2.13 kB
{ "name": "snack.js", "version": "1.0.1", "description": "Lightweight toast notifications module", "main": "src/index.js", "keywords": [ "toast", "toasts", "snack", "snacks", "notifications", "notification", "browserify" ], "scripts": { "show:gz-min-so": "echo \"js minified and gzipped: \" && gzip -c dist/snack.min.js | wc -c", "uglify:dist": "uglifyjs ./dist/snack.js --screw-ie8 -mc > ./dist/snack.min.js", "uglify": "npm run uglify:dist && npm run show:gz-min-so", "min:css": "csso styles/snack.css > styles/snack.min.css", "hint": "jshint --reporter=node_modules/jshint-stylish src/*.js", "test:visual-standalone": "beefy --index=test/visual/standalone.html", "test:visual-browserify": "beefy test/visual/browserify-test.js", "build:prepare": "npm run hint && rm -rf ./dist && mkdirp dist && npm run min:css", "build": "npm run build:prepare && browserify src/index.js --standalone Snack > dist/snack.js && npm run uglify" }, "repository": "stbaer/snack.js", "author": "Steffen Bär<stbaer.pup@gmail.com", "license": "MIT", "bugs": { "url": "https://github.com/stbaer/snack.js/issues" }, "homepage": "https://github.com/stbaer/snack.js#readme", "dependencies": { "cssify": "^1.0.2" }, "devDependencies": { "browserify": "latest", "csso": "latest", "jshint": "latest", "jshint-stylish": "latest", "mkdirp": "latest", "uglify-js": "latest" }, "browserify": { "transform": [ "cssify" ] }, "jshintConfig": { "node": true, "bitwise": true, "camelcase": true, "curly": true, "eqeqeq": true, "forin": true, "freeze": true, "immed": true, "latedef": true, "newcap": true, "noarg": true, "sub": true, "eqnull": true, "browser": true, "laxcomma": true, "trailing": true, "smarttabs": true, "nonew": true, "quotmark": false, "nonbsp": true, "undef": true, "jquery": true, "unused": "vars", "esversion": 5, "browserify": true, "globals": { "console": false } } }