Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split tween.js into separate files and bundle it with rollup. #331

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
build/npm*
node_modules
npm-debug.log
dist
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "tween.js",
"description": "Super simple, fast and easy to use tweening engine which incorporates optimised Robert Penner's equations.",
"version": "0.0.0-development",
"main": "src/Tween.js",
"main": "dist/TWEEN.js",
"homepage": "https://github.com/tweenjs/tween.js",
"repository": {
"type": "git",
Expand All @@ -18,17 +18,22 @@
],
"dependencies": {},
"scripts": {
"pretest": "npm run build",
"test": "npm run test-unit && npm run test-correctness && npm run test-style",
"test-unit": "nodeunit test/unit/nodeunitheadless.js",
"test-correctness": "jshint --config test/jshintrc src/Tween.js",
"test-style": "jscs --config test/jscs.json src/Tween.js",
"test-correctness": "jshint --config test/jshintrc src",
"test-style": "jscs --config test/jscs.json src",
"build": "rollup --config",
"prepublish": "npm run test",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"author": "tween.js contributors (https://github.com/tweenjs/tween.js/graphs/contributors)",
"devDependencies": {
"jscs": "^2.2.0",
"jshint": "^2.8.0",
"nodeunit": "^0.9.1",
"rollup": "^0.41.6",
"rollup-plugin-buble": "^0.15.0",
"semantic-release": "^6.3.2"
}
}
11 changes: 11 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import buble from 'rollup-plugin-buble';

export default {
entry: 'src/index.js',
dest: 'dist/TWEEN.js',
format: 'umd',
moduleName: 'TWEEN',
plugins: [
buble()
]
};
Loading