Permalink
Browse files

split up code-base into just-animate, just-animate-web, and just-anim…

…ate-extras

- just-animate core has all timeline and non-animation framework specific code
- just-animate-web has all WAAPI interactions as a plugin
- just-animate-extras has random, shuffle, and splitText.  This is meant to be a bucket for helpful utilities in animation that aren't critical to the main just-animate.js file
  • Loading branch information...
notoriousb1t committed Jul 26, 2017
1 parent a4d522b commit 44d372b578e4c9cab1c9ded5977942a9fed86815
Showing with 362 additions and 2,284 deletions.
  1. +2 −2 rollup-umd.config.js → config/rollup-core.config.js
  2. +30 −0 config/rollup-extras.config.js
  3. +30 −0 config/rollup-web.config.js
  4. +1 −0 karma.conf.js
  5. +8 −4 package.json
  6. +0 −7 src/constants.ts
  7. +0 −269 src/core/effects.ts
  8. +0 −6 src/core/index.ts
  9. +0 −10 src/core/plugins.ts
  10. +0 −11 src/core/resolve-property.ts
  11. +0 −77 src/core/split-text.ts
  12. +0 −493 src/core/timeline.ts
  13. +0 −69 src/core/timeloop.ts
  14. +3 −0 src/extras/index.ts
  15. +17 −0 src/extras/random.ts
  16. +12 −0 src/extras/shuffle.ts
  17. +74 −0 src/extras/split-text.ts
  18. +4 −9 src/main.ts
  19. +0 −106 src/types.ts
  20. +0 −11 src/utils/elements.ts
  21. +0 −41 src/utils/get-targets.ts
  22. +0 −134 src/utils/lists.ts
  23. +0 −15 src/utils/math.ts
  24. +0 −22 src/utils/random.ts
  25. +0 −19 src/utils/resources.ts
  26. +0 −11 src/utils/strings.ts
  27. +0 −24 src/utils/type.ts
  28. +0 −14 src/utils/units.ts
  29. +0 −19 src/utils/utils.ts
  30. +9 −0 src/web/_browser.ts
  31. +3 −3 src/{plugins/waapi → web}/animate.ts
  32. +3 −3 src/{plugins/waapi → web}/append-units.ts
  33. 0 src/{plugins/waapi → web}/constants.ts
  34. +7 −6 src/{plugins/waapi → web}/index.ts
  35. +8 −7 src/{plugins/waapi → web}/parse-unit.ts
  36. +5 −5 src/{plugins/waapi/combine-transforms.ts → web/transforms.ts}
  37. +0 −217 tests/core/basic.ts
  38. +0 −22 tests/core/resolve-property.ts
  39. +0 −275 tests/core/sequencing.ts
  40. +0 −66 tests/core/staggering.ts
  41. +0 −63 tests/core/timeline.to.ts
  42. +0 −8 tests/dom.ts
  43. +1 −1 tests/{core → extras}/random.ts
  44. +1 −12 tests/{core → extras}/split-text.ts
  45. +0 −63 tests/utils/lists.ts
  46. +0 −30 tests/utils/strings.ts
  47. +0 −81 tests/utils/type.ts
  48. +10 −8 tests/{plugins/waapi → web}/basic.ts
  49. +13 −12 tests/{plugins/waapi → web}/get-targets.ts
  50. +49 −0 tests/web/parse-unit.ts
  51. +16 −11 tests/{core/timeline.add.ts → web/timeline.ts}
  52. +47 −12 tests/{plugins/waapi → web}/transforms.ts
  53. +9 −6 tests/{plugins/waapi → web}/transitions.ts
@@ -2,8 +2,8 @@ import typescript from 'rollup-plugin-typescript';
import nodeResolve from 'rollup-plugin-node-resolve';
module.exports = {
entry: './src/main.ts',
dest: './dist/just-animate-core.js',
entry: 'src/main.ts',
dest: 'dist/just-animate.js',
format: 'iife',
moduleName: 'just',
plugins: [
@@ -0,0 +1,30 @@
import typescript from 'rollup-plugin-typescript';
import nodeResolve from 'rollup-plugin-node-resolve';
module.exports = {
entry: 'src/extras/index.ts',
dest: 'dist/just-animate-extras.js',
format: 'iife',
moduleName: 'just',
plugins: [
typescript({
tsconfig: false,
target: 'es5',
rootDir: 'src',
module: 'es2015',
preserveConstEnums: false,
removeComments: true,
declaration: false,
typescript: require('typescript'),
noImplicitAny: true
}),
nodeResolve({
module: true,
jsnext: true,
main: true,
browser: true,
extensions: [ '.js', '.json' ],
preferBuiltins: false
})
]
}
@@ -0,0 +1,30 @@
import typescript from 'rollup-plugin-typescript';
import nodeResolve from 'rollup-plugin-node-resolve';
module.exports = {
entry: 'src/web/_browser.ts',
dest: 'dist/just-animate-web.js',
format: 'iife',
moduleName: 'just',
plugins: [
typescript({
tsconfig: false,
target: 'es5',
rootDir: 'src',
module: 'es2015',
preserveConstEnums: false,
removeComments: true,
declaration: false,
typescript: require('typescript'),
noImplicitAny: true
}),
nodeResolve({
module: true,
jsnext: true,
main: true,
browser: true,
extensions: [ '.js', '.json' ],
preferBuiltins: false
})
]
}
View
@@ -33,6 +33,7 @@ module.exports = function (config) {
// list of files to exclude
exclude: [
'src/web/_browser.ts'
],
View
@@ -45,12 +45,16 @@
"url": "https://github.com/just-animate/just-animate"
},
"scripts": {
"build": "concurrently \"npm run build:node\" \"npm run build:es2015\" \"npm run build:umd\"",
"build:umd": "rollup -c rollup-umd.config.js",
"build": "concurrently \"npm run build:node\" \"npm run build:es2015\" \"npm run build:core\" \"npm run build:web\" \"npm run build:extras\"",
"build:core": "rollup -c ./config/rollup-core.config.js",
"build:extras": "rollup -c ./config/rollup-extras.config.js",
"build:web": "rollup -c ./config/rollup-web.config.js",
"build:node": "tsc -p tsconfig.node.json",
"build:es2015": "tsc -p tsconfig.es2015.json",
"compress": "npm run compress:umd",
"compress:umd": "uglifyjs --c --lift-vars --m --screw-ie8 --o dist/just-animate-core.min.js dist/just-animate-core.js",
"compress": "npm run compress:core && npm run compress:extras && npm run compress:web",
"compress:core": "uglifyjs --c --lift-vars --m --screw-ie8 --o dist/just-animate.min.js dist/just-animate.js",
"compress:extras": "uglifyjs --c --lift-vars --m --screw-ie8 --o dist/just-animate-extras.min.js dist/just-animate-extras.js",
"compress:web": "uglifyjs --c --lift-vars --m --screw-ie8 --o dist/just-animate-web.min.js dist/just-animate-web.js",
"clean": "node_modules/.bin/del-cli -f dist lib lib.es2015 types",
"format": "prettier --print-width 120 --single-quote --no-semi --list-different --write \"src/**/*.ts\"",
"preversion": "npm run rebuild",
View

This file was deleted.

Oops, something went wrong.
View

This file was deleted.

Oops, something went wrong.
View

This file was deleted.

Oops, something went wrong.
View

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 44d372b

Please sign in to comment.