Skip to content

Commit

Permalink
feat(build): use rollup based buildsystem
Browse files Browse the repository at this point in the history
  • Loading branch information
sQVe committed Apr 11, 2019
1 parent 10135df commit 51699f0
Show file tree
Hide file tree
Showing 9 changed files with 1,304 additions and 2,751 deletions.
11 changes: 0 additions & 11 deletions .babelrc

This file was deleted.

24 changes: 24 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const { NODE_ENV } = process.env

const defaultPlugins = [['ramda', { useES: NODE_ENV === 'es' }]]

module.exports = {
presets: [
[
'@babel/env',
{
corejs: 3,
loose: true,
modules: NODE_ENV === 'test' ? 'auto' : false,
targets: { node: 8 },
useBuiltIns: 'usage',
},
],
],
plugins: ['es', 'cjs', 'test'].includes(NODE_ENV)
? [
...defaultPlugins,
['@babel/transform-runtime', { useESModules: NODE_ENV === 'es' }],
]
: defaultPlugins,
}
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ package.lock
.env.*

# Build generated.
build/
coverage/
dist/
es/
lib/
tmp/

# SublimeText.
*.stTheme.cache
Expand Down
5 changes: 2 additions & 3 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"compilerOptions": {
"target": "es2017",
"checkJs": true,
"allowSyntheticDefaultImports": true
"allowSyntheticDefaultImports": true,
"target": "es2017"
},
"include": ["src/**/*", "test/**/*"]
}
Loading

0 comments on commit 51699f0

Please sign in to comment.