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 npm-debug.log
bower_components bower_components
node_modules node_modules

View File

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