Skip to content

Commit 0d0edac

Browse files
committed
Prepare for 1.0.0-rc.2 release.
1 parent 4a1aadb commit 0d0edac

6 files changed

+4141
-17
lines changed

.babelrc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"presets": [
3+
"es2015"
4+
],
5+
"plugins": [
6+
"syntax-async-functions",
7+
"transform-regenerator"
8+
]
9+
}

CONTRIBUTORS

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
#
55
# Names should be added to this file as:
66
# [commit count] Name <email address>
7-
26 Jason Dobry <[email protected]>
8-
1 John Grogg <[email protected]>
7+
9 Cory Robinson <[email protected]>
8+
42 Jason Dobry <[email protected]>
9+
1 John Grogg <[email protected]>

mocha.start.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*global assert:true */
1+
/* global assert:true */
22
'use strict'
33

44
// prepare environment for js-data-adapter-tests

package.json

+21-11
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "js-data-mongodb",
33
"description": "MongoDB adapter for js-data.",
4-
"version": "1.0.0-rc.1",
4+
"version": "1.0.0-rc.2",
55
"homepage": "https://github.com/js-data/js-data-mongodb",
66
"repository": {
77
"type": "git",
@@ -41,16 +41,10 @@
4141
"dist/"
4242
]
4343
},
44-
"babel": {
45-
"presets": [
46-
"es2015"
47-
]
48-
},
4944
"scripts": {
50-
"lint": "repo-tools lint \"**/*.js\"",
51-
"bundle": "rollup -c rollup.config.js -f cjs -o dist/js-data-mongodb.js -m dist/js-data-mongodb.js.map src/index.js && repo-tools write-version dist/js-data-mongodb.js",
45+
"lint": "standard '**/*.js'",
46+
"bundle": "rollup src/index.js -c -o dist/js-data-mongodb.js -m dist/js-data-mongodb.js.map -f cjs && repo-tools write-version dist/js-data-mongodb.js",
5247
"doc": "jsdoc -c conf.json src node_modules/js-data-adapter/src",
53-
"watch": "watch \"npm run bundle\" src/",
5448
"build": "npm run lint && npm run bundle",
5549
"mocha": "mocha -t 20000 -R dot -r babel-core/register -r babel-polyfill mocha.start.js",
5650
"cover": "nyc --require babel-core/register --require babel-polyfill --cache mocha -t 20000 -R dot mocha.start.js && nyc report --reporter=html",
@@ -63,10 +57,26 @@
6357
},
6458
"peerDependencies": {
6559
"bson": ">=0.3.x",
66-
"js-data": "^3.0.0-rc.4",
60+
"js-data": "^3.0.0-rc.9",
6761
"mongodb": ">=1.3.x"
6862
},
6963
"devDependencies": {
70-
"js-data-repo-tools": "0.5.6"
64+
"babel-core": "6.24.1",
65+
"babel-eslint": "7.2.3",
66+
"babel-plugin-external-helpers": "6.22.0",
67+
"babel-plugin-syntax-async-functions": "6.13.0",
68+
"babel-plugin-transform-regenerator": "6.24.1",
69+
"babel-polyfill": "6.23.0",
70+
"babel-preset-es2015": "6.24.1",
71+
"chai": "3.5.0",
72+
"ink-docstrap": "git+https://github.com/js-data/docstrap.git#cfbe45fa313e1628c493076d5e15d2b855dfbf2c",
73+
"js-data-repo-tools": "1.0.0",
74+
"jsdoc": "3.4.3",
75+
"mocha": "3.4.2",
76+
"nyc": "10.3.2",
77+
"rollup": "0.41.6",
78+
"rollup-plugin-babel": "2.7.1",
79+
"sinon": "2.3.1",
80+
"standard": "10.0.2"
7181
}
7282
}

rollup.config.js

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
var babel = require('rollup-plugin-babel')
1+
import babel from 'rollup-plugin-babel'
22

3-
module.exports = {
3+
export default {
44
external: [
55
'mongodb',
66
'bson',
@@ -11,8 +11,16 @@ module.exports = {
1111
plugins: [
1212
babel({
1313
babelrc: false,
14+
plugins: [
15+
'external-helpers'
16+
],
1417
presets: [
15-
'es2015-rollup'
18+
[
19+
'es2015',
20+
{
21+
modules: false
22+
}
23+
]
1624
],
1725
exclude: 'node_modules/**'
1826
})

0 commit comments

Comments
 (0)