Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{
"presets": [
"es2015",
"stage-0"
],
"plugins": [
"syntax-async-functions",
"transform-regenerator"
]
}
"presets": ["@babel/preset-env"],
"plugins": ["@babel/transform-regenerator"]
}
40 changes: 22 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
"bundle": "npm run bundle_adapter && npm run bundle_tests",
"watch": "watch \"npm run bundle\" src/",
"build": "npm run lint && npm run bundle",
"mocha": "mocha -t 2000 -R dot mocha.start.js -r babel-core/register -r babel-polyfill",
"cover": "nyc --require babel-core/register --require babel-polyfill --cache mocha mocha.start.js -t 2000 -R dot && nyc report --reporter=html",
"mocha": "mocha -t 2000 -R dot mocha.start.js -r @babel/register -r @babel/polyfill",
"cover": "nyc --require @babel/register --require @babel/polyfill --cache mocha mocha.start.js -t 2000 -R dot && nyc report --reporter=html",
"test": "npm run build && npm run cover",
"release": "npm test && repo-tools updates && repo-tools changelog && repo-tools authors"
},
Expand All @@ -60,22 +60,26 @@
"js-data": ">= 3.0.0"
},
"devDependencies": {
"babel-core": "6.25.0",
"babel-eslint": "7.2.3",
"babel-plugin-external-helpers": "6.22.0",
"babel-plugin-syntax-async-functions": "6.13.0",
"babel-plugin-transform-es2015-modules-umd": "6.24.1",
"babel-plugin-transform-regenerator": "6.24.1",
"babel-polyfill": "6.23.0",
"babel-preset-es2015": "6.24.1",
"babel-preset-stage-0": "6.24.1",
"@babel/cli": "^7.8.3",
"@babel/core": "^7.8.3",
"@babel/plugin-external-helpers": "^7.8.3",
"@babel/plugin-transform-modules-umd": "^7.8.3",
"@babel/plugin-transform-regenerator": "^7.8.3",
"@babel/polyfill": "^7.8.3",
"@babel/preset-env": "^7.8.3",
"@babel/register": "^7.8.3",
"@types/chai": "^4.2.7",
"@types/mocha": "^5.2.7",
"@types/sinon": "^7.5.1",
"babel-eslint": "^10.0.3",
"chai": "^4.2.0",
"eslint": "^6.8.0",
"js-data-repo-tools": "1.0.0",
"nyc": "11.0.3",
"rollup": "0.43.0",
"rollup-plugin-babel": "2.7.1",
"standard": "10.0.2",
"sinon": "^2.3.6",
"chai": "^4.0.2",
"mocha": "^3.4.2"
"mocha": "^3.4.2",
"nyc": "^15.0.0",
"rollup": "^1.29.0",
"rollup-plugin-babel": "^4.3.3",
"sinon": "^8.1.0",
"standard": "10.0.2"
}
}
25 changes: 12 additions & 13 deletions rollup-tests.config.js
Original file line number Diff line number Diff line change
@@ -1,35 +1,34 @@
import babel from 'rollup-plugin-babel'

export default {
moduleName: 'JSDataAdapterTests',
amd: {
id: 'js-data-adapter-tests'
output: {
name: 'JSDataAdapterTests',
amd: {
id: 'js-data-adapter-tests'
},
globals: {
chai: 'chai',
sinon: 'sinon'
}
},
external: [
'chai',
'sinon'
],
globals: {
chai: 'chai',
sinon: 'sinon'
},
plugins: [
babel({
babelrc: false,
exclude: 'node_modules/**',
plugins: [
'babel-plugin-external-helpers',
'syntax-async-functions',
'transform-regenerator'
'@babel/transform-regenerator'
],
presets: [
[
'es2015',
'@babel/preset-env',
{
modules: false
}
],
'stage-0'
]
]
})
]
Expand Down
20 changes: 10 additions & 10 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
import babel from 'rollup-plugin-babel'

export default {
moduleName: 'Adapter',
amd: {
id: 'js-data-adapter'
output: {
amd: {
id: 'js-data-adapter'
},
name: 'Adapter',
globals: {
'js-data': 'JSData'
}
},
external: [
'js-data'
],
globals: {
'js-data': 'JSData'
},
plugins: [
babel({
babelrc: false,
plugins: [
'external-helpers'
],
plugins: [],
presets: [
[
'es2015',
'@babel/preset-env',
{
modules: false
}
Expand Down
Loading