Skip to content

Commit

Permalink
Split tween.js into separate files. Use rollup for bundling.
Browse files Browse the repository at this point in the history
  • Loading branch information
martikaljuve committed Mar 21, 2017
1 parent ae08533 commit 9841c99
Show file tree
Hide file tree
Showing 12 changed files with 900 additions and 886 deletions.
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

0 comments on commit 9841c99

Please sign in to comment.