From b00df2565e852abf1d37d3881815bb42ac84de88 Mon Sep 17 00:00:00 2001 From: dalisoft Date: Mon, 25 Feb 2019 23:32:57 +0500 Subject: [PATCH] Headless tests, minor fixes and patches --- .babelrc | 15 ++++ .travis.yml | 2 +- examples/basic.html | 4 +- examples/test.html | 5 +- package.json | 17 ++++- rollup.config.js | 17 +---- src/Tween.js | 7 +- src/core.js | 16 ++-- src/index.js | 4 +- test.js | 182 +++++++++++++++++++++++++++++++++++++++++++- withPage.js | 22 ++++++ yarn.lock | 125 +++++++++++++++++++++++++++++- 12 files changed, 378 insertions(+), 38 deletions(-) create mode 100644 .babelrc create mode 100644 withPage.js diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..3136f83 --- /dev/null +++ b/.babelrc @@ -0,0 +1,15 @@ +{ + "exclude": ["node_modules/**", "bundles/**", "performance/**", "logo/**", "examples/**"], + "presets": [ + [ + "@babel/preset-env", + { + "modules": false, + "shippedProposals": true + } + ] + ], + "plugins": [ + "@babel/plugin-proposal-class-properties" + ] +} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 6449b25..a5441ab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ cache: notifications: email: false node_js: - - "8" + - 8 before_install: - npm i -g npm@^6.0.0 before_script: diff --git a/examples/basic.html b/examples/basic.html index 777c007..fd5dab1 100644 --- a/examples/basic.html +++ b/examples/basic.html @@ -18,7 +18,7 @@
- + - - + +