Skip to content

Commit d1f44ce

Browse files
authored
Merge pull request #18 from jaebradley/convert-to-rollup
Convert to rollup
2 parents 0f9db6a + fce622b commit d1f44ce

File tree

5 files changed

+597
-24
lines changed

5 files changed

+597
-24
lines changed

.babelrc

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
11
{
2-
"presets": [
3-
"@babel/preset-env"
4-
],
2+
"env": {
3+
"test": {
4+
"presets": [
5+
[
6+
"@babel/preset-env",
7+
{ "modules": "umd" }
8+
]
9+
]
10+
},
11+
"production": {
12+
"presets": [
13+
[
14+
"@babel/preset-env",
15+
{ "modules": false }
16+
]
17+
]
18+
}
19+
},
520
"ignore": [
6-
"node_modules"
7-
],
8-
"plugins": [
9-
"add-module-exports"
21+
"node_modules/**"
1022
]
1123
}

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ jobs:
1515
script:
1616
- npm run lint
1717
- npm run test
18-
- npm run compile:prod
18+
- npm run build
1919
- npm run is-es5
2020
before_script: greenkeeper-lockfile-update
2121
after_script: greenkeeper-lockfile-upload
2222
- stage: deploy
2323
if: branch = master
24+
before_script: npm run build
2425
script: npm run travis-deploy-once "npm run semantic-release"

0 commit comments

Comments
 (0)