chore: various updates
This commit is contained in:
parent
75bb7d5a2d
commit
9328518bbc
@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"comments": false,
|
|
||||||
"compact": true,
|
|
||||||
"plugins": [
|
|
||||||
"transform-runtime"
|
|
||||||
],
|
|
||||||
"presets": [
|
|
||||||
"stage-0",
|
|
||||||
"es2015"
|
|
||||||
]
|
|
||||||
}
|
|
1
packages/xo-server-auth-ldap/.gitignore
vendored
1
packages/xo-server-auth-ldap/.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
|
/.nyc_output/
|
||||||
/bower_components/
|
/bower_components/
|
||||||
/dist/
|
/dist/
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
try { require('clarify') } catch (_) {}
|
Error.stackTraceLimit = 100
|
||||||
|
|
||||||
try { require('trace') } catch (_) {}
|
try { require('trace') } catch (_) {}
|
||||||
|
try { require('clarify') } catch (_) {}
|
||||||
try { require('source-map-support/register') } catch (_) {}
|
try { require('source-map-support/register') } catch (_) {}
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- 'iojs'
|
- 'stable'
|
||||||
|
- '4'
|
||||||
- '0.12'
|
- '0.12'
|
||||||
- '0.10'
|
|
||||||
|
# Use containers.
|
||||||
|
# http://docs.travis-ci.com/user/workers/container-based-infrastructure/
|
||||||
|
sudo: false
|
||||||
|
@ -25,6 +25,9 @@
|
|||||||
"files": [
|
"files": [
|
||||||
"dist/"
|
"dist/"
|
||||||
],
|
],
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.12"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"babel-runtime": "^6.3.19",
|
"babel-runtime": "^6.3.19",
|
||||||
"event-to-promise": "^0.7.0",
|
"event-to-promise": "^0.7.0",
|
||||||
@ -40,25 +43,44 @@
|
|||||||
"babel-preset-es2015": "^6.3.13",
|
"babel-preset-es2015": "^6.3.13",
|
||||||
"babel-preset-stage-0": "^6.3.13",
|
"babel-preset-stage-0": "^6.3.13",
|
||||||
"clarify": "^1.0.5",
|
"clarify": "^1.0.5",
|
||||||
|
"dependency-check": "^2.5.1",
|
||||||
|
"ghooks": "^1.2.1",
|
||||||
"mocha": "^2.2.5",
|
"mocha": "^2.2.5",
|
||||||
"must": "^0.13.1",
|
"must": "^0.13.1",
|
||||||
|
"nyc": "^6.4.2",
|
||||||
"sinon": "^1.15.3",
|
"sinon": "^1.15.3",
|
||||||
"source-map-support": "^0.4.0",
|
"source-map-support": "^0.4.0",
|
||||||
"standard": "^7.0.0",
|
"standard": "^7.0.0",
|
||||||
"trace": "^2.1.1"
|
"trace": "^2.1.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"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": "babel --watch --source-maps --out-dir=dist/ src/",
|
||||||
|
"dev-test": "mocha --opts .mocha.opts --watch --reporter=min \"dist/**/*.spec.js\"",
|
||||||
"lint": "standard",
|
"lint": "standard",
|
||||||
|
"posttest": "npm run lint && npm run depcheck",
|
||||||
"prepublish": "npm run build",
|
"prepublish": "npm run build",
|
||||||
"test": "npm run lint && mocha --opts .mocha.opts \"dist/**/*.spec.js\"",
|
"test": "nyc mocha --opts .mocha.opts \"dist/**/*.spec.js\""
|
||||||
"test-dev": "mocha --opts .mocha.opts --watch --reporter=min \"dist/**/*.spec.js\""
|
},
|
||||||
|
"babel": {
|
||||||
|
"plugins": [
|
||||||
|
"transform-runtime"
|
||||||
|
],
|
||||||
|
"presets": [
|
||||||
|
"stage-0",
|
||||||
|
"es2015"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"standard": {
|
"standard": {
|
||||||
"ignore": [
|
"ignore": [
|
||||||
"dist/**"
|
"dist"
|
||||||
],
|
],
|
||||||
"parser": "babel-eslint"
|
"parser": "babel-eslint"
|
||||||
|
},
|
||||||
|
"config": {
|
||||||
|
"ghooks": {
|
||||||
|
"commit-msg": "npm test"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
17
packages/xo-server-auth-ldap/src/index.spec.js
Normal file
17
packages/xo-server-auth-ldap/src/index.spec.js
Normal 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()
|
||||||
|
})
|
||||||
|
})
|
Loading…
Reference in New Issue
Block a user