Provides a transpiled version to npm so browserify and webpack users do not have to transpile by themselves

Fixes #15 #27 #105
This commit is contained in:
Zeno Rocha 2015-10-28 12:54:29 -07:00
parent 171f438f22
commit 4b73122f81
2 changed files with 5 additions and 3 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
lib
npm-debug.log
bower_components
node_modules

View File

@ -4,8 +4,7 @@
"description": "Modern copy to clipboard. No Flash. Just 2kb",
"repository": "zenorocha/clipboard.js",
"license": "MIT",
"main": "dist/clipboard.js",
"browser": "src/clipboard.js",
"main": "lib/clipboard.js",
"browserify": {
"transform": [
[
@ -29,6 +28,7 @@
"tiny-emitter": "^1.0.0"
},
"devDependencies": {
"babel": "^5.8.29",
"karma": "^0.13.10",
"karma-browserify": "^4.4.0",
"karma-chai": "^0.1.0",
@ -48,6 +48,7 @@
"build-watch": "watchify src/clipboard.js -s Clipboard -o dist/clipboard.js -v",
"test": "npm run test-browser && npm run test-server",
"test-browser": "karma start --single-run",
"test-server": "mocha test/module-systems.js"
"test-server": "mocha test/module-systems.js",
"prepublish": "babel src --out-dir lib --loose all"
}
}