Skip to content

Commit

Permalink
Merge pull request #5 from jy95/babelV7
Browse files Browse the repository at this point in the history
Set up Babel v7
  • Loading branch information
jy95 authored Feb 21, 2018
2 parents f299ced + ad9d8ed commit 62417b0
Show file tree
Hide file tree
Showing 14 changed files with 1,214 additions and 69 deletions.
18 changes: 18 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// var env = process.env.BABEL_ENV || process.env.NODE_ENV; // Maybe later : for minify stuff
var presets = [
"@babel/env",
"@babel/preset-typescript"
];
var plugins = [
"@babel/plugin-proposal-class-properties",
"@babel/proposal-object-rest-spread"
];
var ignore = [];
var comments = false;

module.exports = {
presets: presets,
plugins: plugins,
ignore: ignore,
comments: comments
};
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ os:
- linux
before_install:
- npm i -g npm@latest
- npm install -g codecov
- npm i -g travis-deploy-once
before_script:
- npm prune
- echo "Check if TypeScript files have valid syntax/types"
- npm run type-check
after_success:
- npm run coverage
- codecov
- travis-deploy-once && npx -p node@8 npm run semantic-release
branches:
except:
Expand Down
13 changes: 0 additions & 13 deletions __tests__/__helpers__/preprocessor.js

This file was deleted.

2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
"js"
],
"transform": {
"^.+\\.(ts|tsx)$": "<rootDir>/__tests__/__helpers__/preprocessor.js"
"^.+\\.tsx?$": "ts-jest"
},
"testMatch": [
"<rootDir>/__tests__/**/*.(ts|tsx|js)"
Expand Down
Loading

0 comments on commit 62417b0

Please sign in to comment.