chore: various updates

This commit is contained in:
Julien Fontanet 2016-05-04 16:14:35 +02:00
parent 75bb7d5a2d
commit 9328518bbc
6 changed files with 53 additions and 18 deletions

View File

@ -1,11 +0,0 @@
{
"comments": false,
"compact": true,
"plugins": [
"transform-runtime"
],
"presets": [
"stage-0",
"es2015"
]
}

View File

@ -1,3 +1,4 @@
/.nyc_output/
/bower_components/
/dist/

View File

@ -1,3 +1,5 @@
try { require('clarify') } catch (_) {}
Error.stackTraceLimit = 100
try { require('trace') } catch (_) {}
try { require('clarify') } catch (_) {}
try { require('source-map-support/register') } catch (_) {}

View File

@ -1,5 +1,9 @@
language: node_js
node_js:
- 'iojs'
- 'stable'
- '4'
- '0.12'
- '0.10'
# Use containers.
# http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false

View File

@ -25,6 +25,9 @@
"files": [
"dist/"
],
"engines": {
"node": ">=0.12"
},
"dependencies": {
"babel-runtime": "^6.3.19",
"event-to-promise": "^0.7.0",
@ -40,25 +43,44 @@
"babel-preset-es2015": "^6.3.13",
"babel-preset-stage-0": "^6.3.13",
"clarify": "^1.0.5",
"dependency-check": "^2.5.1",
"ghooks": "^1.2.1",
"mocha": "^2.2.5",
"must": "^0.13.1",
"nyc": "^6.4.2",
"sinon": "^1.15.3",
"source-map-support": "^0.4.0",
"standard": "^7.0.0",
"trace": "^2.1.1"
},
"scripts": {
"build": "babel --source-maps --out-dir=dist/ src/",
"build": "NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"depcheck": "dependency-check ./package.json",
"dev": "babel --watch --source-maps --out-dir=dist/ src/",
"dev-test": "mocha --opts .mocha.opts --watch --reporter=min \"dist/**/*.spec.js\"",
"lint": "standard",
"posttest": "npm run lint && npm run depcheck",
"prepublish": "npm run build",
"test": "npm run lint && mocha --opts .mocha.opts \"dist/**/*.spec.js\"",
"test-dev": "mocha --opts .mocha.opts --watch --reporter=min \"dist/**/*.spec.js\""
"test": "nyc mocha --opts .mocha.opts \"dist/**/*.spec.js\""
},
"babel": {
"plugins": [
"transform-runtime"
],
"presets": [
"stage-0",
"es2015"
]
},
"standard": {
"ignore": [
"dist/**"
"dist"
],
"parser": "babel-eslint"
},
"config": {
"ghooks": {
"commit-msg": "npm test"
}
}
}

View File

@ -0,0 +1,17 @@
/* eslint-env mocha */
import expect from 'must'
// ===================================================================
import myLib from './'
// ===================================================================
describe.skip('myLib', () => {
it('does something', () => {
// TODO: some real tests.
expect(myLib).to.exists()
})
})