diff --git a/.babelrc b/.babelrc index 41bd6204d..74e92d193 100644 --- a/.babelrc +++ b/.babelrc @@ -1,28 +1,15 @@ { - "presets": [ - [ "es2015", { "loose": true, "modules" : false } ], - "stage-0", - "react" - ], + "presets": ["@babel/preset-env", "@babel/preset-react"], "plugins": [ - "transform-decorators-legacy", - "emotion" + "@babel/plugin-proposal-object-rest-spread", + "@babel/plugin-proposal-class-properties", + "babel-plugin-emotion" ], "env": { - "production": { - "plugins": [ - "transform-es2015-modules-commonjs", - "transform-react-remove-prop-types", - "transform-react-constant-elements", - "transform-react-inline-elements", - "transform-runtime", - "transform-decorators-legacy", - "emotion" - ] - }, - "test": { - "plugins": [ - "transform-es2015-modules-commonjs" + "esm": { + "presets": [ + ["@babel/preset-env", { "modules": false }], + "@babel/preset-react" ] } } diff --git a/.gitignore b/.gitignore index 9303a7bff..a05bbdfb7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ node_modules dist lib +es *.log .DS_Store .vscode diff --git a/.npmignore b/.npmignore index a3ddf19f2..122f44f1f 100644 --- a/.npmignore +++ b/.npmignore @@ -2,6 +2,7 @@ !/dist/spectacle* dist/*.map !/docs +!/es !/lib !/src __snapshots__ diff --git a/.travis.yml b/.travis.yml index f86d68373..cfe28fab1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,9 @@ language: node_js node_js: - - 6 - - 8 + - "6" + - "8" + - "9" # Use container-based Travis infrastructure. sudo: false @@ -16,10 +17,6 @@ notifications: on_success: change on_failure: always -before_install: - - export DISPLAY=:99.0 - - sh -e /etc/init.d/xvfb start - script: - - yarn run lint - - yarn run test + - yarn run build + - yarn run check diff --git a/README.md b/README.md index 084711468..62fec8fb5 100644 --- a/README.md +++ b/README.md @@ -132,11 +132,11 @@ We can start with this project's sample at [`one-page.html`](./one-page.html). I
- - - - - + + + + + - - - + + +