Skip to content

Commit

Permalink
fixed ci after-success and babel for with-script
Browse files Browse the repository at this point in the history
  • Loading branch information
dfee committed Jan 21, 2019
1 parent e5e2ec8 commit 46b337f
Show file tree
Hide file tree
Showing 14 changed files with 1,380 additions and 1,577 deletions.
7 changes: 0 additions & 7 deletions .babelrc

This file was deleted.

6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ language: node_js
node_js:
- "8"
script:
- make test # run tests
- make # ensure pkg builds
- make docs # ensure docs builds
- make test # run tests
- make examples-test # ensure examples still build
- make docs # ensure docs builds
after_success:
- make ci_publish
- make ci-coverage-publish
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,22 +82,22 @@ examples-test: \
.PHONY: examples-test

examples-test-with-create-react-app:
@cd examples/with-create-react-app/ && npm i
@cd examples/with-create-react-app/ && npm ci
@cd examples/with-create-react-app/ && CI=true npm run test
.PHONY: examples-test-with-create-react-app

examples-test-with-create-react-app-typescript:
@cd examples/with-create-react-app-typescript/ && npm i
@cd examples/with-create-react-app-typescript/ && npm ci
@cd examples/with-create-react-app-typescript/ && CI=true npm run test
.PHONY: examples-test-with-create-react-app-typescript

examples-test-with-customization:
@cd examples/with-customization/ && npm i
@cd examples/with-customization/ && npm ci
@cd examples/with-customization/ && CI=true npm run test
.PHONY: examples-test-with-customization

examples-test-with-script:
@cd examples/with-script/ && npm i
@cd examples/with-script/ && npm ci
@cd examples/with-script/ && { npm run start & echo $$! > /tmp/example-with-script.pid; }
@cd examples/with-script/ && CI=true npm run test
@cat /tmp/example-with-script.pid | xargs kill
Expand Down
7 changes: 7 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
presets: ["@babel/env", "@babel/preset-typescript"],
plugins: [
"@babel/proposal-class-properties",
"@babel/proposal-object-rest-spread",
],
};
7 changes: 0 additions & 7 deletions examples/with-script/.babelrc

This file was deleted.

4 changes: 4 additions & 0 deletions examples/with-script/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
presets: ["@babel/env"],
plugins: ["@babel/transform-runtime"],
};
25 changes: 0 additions & 25 deletions examples/with-script/index.js

This file was deleted.

Loading

0 comments on commit 46b337f

Please sign in to comment.