chore(xo-remote-parser): update all deps
This commit is contained in:
parent
3a02fc99a2
commit
d548503590
10
packages/xo-remote-parser/.gitignore
vendored
10
packages/xo-remote-parser/.gitignore
vendored
@ -1,9 +1,9 @@
|
|||||||
/.nyc_output/
|
/coverage/
|
||||||
/bower_components/
|
|
||||||
/dist/
|
/dist/
|
||||||
|
/node_modules/
|
||||||
|
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
npm-debug.log.*
|
npm-debug.log.*
|
||||||
|
pnpm-debug.log
|
||||||
!node_modules/*
|
pnpm-debug.log.*
|
||||||
node_modules/*/
|
yarn-error.log
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
Error.stackTraceLimit = 100
|
|
||||||
|
|
||||||
try { require('trace') } catch (_) {}
|
|
||||||
try { require('clarify') } catch (_) {}
|
|
||||||
try { require('source-map-support/register') } catch (_) {}
|
|
@ -1 +0,0 @@
|
|||||||
--require ./.mocha.js
|
|
@ -1,10 +1,24 @@
|
|||||||
|
/benchmark/
|
||||||
|
/benchmarks/
|
||||||
|
*.bench.js
|
||||||
|
*.bench.js.map
|
||||||
|
|
||||||
/examples/
|
/examples/
|
||||||
example.js
|
example.js
|
||||||
example.js.map
|
example.js.map
|
||||||
*.example.js
|
*.example.js
|
||||||
*.example.js.map
|
*.example.js.map
|
||||||
|
|
||||||
|
/fixture/
|
||||||
|
/fixtures/
|
||||||
|
*.fixture.js
|
||||||
|
*.fixture.js.map
|
||||||
|
*.fixtures.js
|
||||||
|
*.fixtures.js.map
|
||||||
|
|
||||||
/test/
|
/test/
|
||||||
/tests/
|
/tests/
|
||||||
*.spec.js
|
*.spec.js
|
||||||
*.spec.js.map
|
*.spec.js.map
|
||||||
|
|
||||||
|
__snapshots__/
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- 'stable'
|
- stable
|
||||||
- '4'
|
- 6
|
||||||
- '0.12'
|
- 4
|
||||||
|
|
||||||
# Use containers.
|
# Use containers.
|
||||||
# http://docs.travis-ci.com/user/workers/container-based-infrastructure/
|
# http://docs.travis-ci.com/user/workers/container-based-infrastructure/
|
||||||
|
@ -16,24 +16,21 @@ Installation of the [npm package](https://npmjs.org/package/${pkg.name}):
|
|||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
### Installing dependencies
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
# Install dependencies
|
||||||
> npm install
|
> npm install
|
||||||
```
|
|
||||||
|
|
||||||
### Compilation
|
# Run the tests
|
||||||
|
> npm test
|
||||||
|
|
||||||
The sources files are watched and automatically recompiled on changes.
|
# Continuously compile
|
||||||
|
|
||||||
```
|
|
||||||
> npm run dev
|
> npm run dev
|
||||||
```
|
|
||||||
|
|
||||||
### Tests
|
# Continuously run the tests
|
||||||
|
> npm run dev-test
|
||||||
|
|
||||||
```
|
# Build for production (automatically called by npm install)
|
||||||
> npm run test-dev
|
> npm run build
|
||||||
```
|
```
|
||||||
|
|
||||||
## Contributions
|
## Contributions
|
||||||
|
@ -21,42 +21,57 @@
|
|||||||
"dist/"
|
"dist/"
|
||||||
],
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.12"
|
"node": ">=4"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"lodash": "^4.13.1"
|
"lodash": "^4.13.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-cli": "^6.3.17",
|
"babel-cli": "^6.18.0",
|
||||||
"babel-eslint": "^7.0.0",
|
"babel-eslint": "^7.1.1",
|
||||||
"babel-preset-es2015": "^6.3.13",
|
"babel-plugin-lodash": "^3.2.11",
|
||||||
"babel-preset-stage-0": "^6.3.13",
|
"babel-preset-env": "^1.1.7",
|
||||||
"clarify": "^2.0.0",
|
"babel-preset-stage-3": "^6.17.0",
|
||||||
"deep-freeze": "0.0.1",
|
"cross-env": "^3.1.4",
|
||||||
"dependency-check": "^2.5.1",
|
"deep-freeze": "^0.0.1",
|
||||||
"mocha": "^3.0.0",
|
"dependency-check": "^2.7.0",
|
||||||
"must": "^0.13.1",
|
"jest": "^18.1.0",
|
||||||
"nyc": "^10.0.0",
|
"rimraf": "^2.5.4",
|
||||||
"source-map-support": "^0.4.0",
|
"standard": "^8.6.0"
|
||||||
"standard": "^8.0.0",
|
|
||||||
"trace": "^2.1.0"
|
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
|
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
|
||||||
"depcheck": "dependency-check ./package.json",
|
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
|
||||||
"dev": "babel --watch --source-maps --out-dir=dist/ src/",
|
"dev-test": "jest --bail --watch",
|
||||||
"dev-test": "mocha --opts .mocha.opts --watch --reporter=min \"dist/**/*.spec.js\"",
|
"posttest": "standard && dependency-check ./package.json",
|
||||||
"lint": "standard",
|
"prebuild": "rimraf dist/",
|
||||||
"posttest": "npm run lint && npm run depcheck",
|
"predev": "npm run prebuild",
|
||||||
"prepublish": "npm run build",
|
"prepublish": "npm run build",
|
||||||
"test": "nyc mocha --opts .mocha.opts \"dist/**/*.spec.js\""
|
"test": "jest"
|
||||||
},
|
},
|
||||||
"babel": {
|
"babel": {
|
||||||
|
"plugins": [
|
||||||
|
"lodash"
|
||||||
|
],
|
||||||
"presets": [
|
"presets": [
|
||||||
"stage-0",
|
[
|
||||||
"es2015"
|
"env",
|
||||||
|
{
|
||||||
|
"targets": {
|
||||||
|
"browsers": "> 5%",
|
||||||
|
"node": 4
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"stage-3"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"jest": {
|
||||||
|
"testPathDirs": [
|
||||||
|
"<rootDir>/src"
|
||||||
|
],
|
||||||
|
"testRegex": "\\.spec\\.js$"
|
||||||
|
},
|
||||||
"standard": {
|
"standard": {
|
||||||
"ignore": [
|
"ignore": [
|
||||||
"dist"
|
"dist"
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
/* eslint-env mocha */
|
/* eslint-env jest */
|
||||||
|
|
||||||
import deepFreeze from 'deep-freeze'
|
import deepFreeze from 'deep-freeze'
|
||||||
import expect from 'must'
|
|
||||||
|
|
||||||
// ===================================================================
|
|
||||||
|
|
||||||
import { parse, format } from './'
|
import { parse, format } from './'
|
||||||
|
|
||||||
@ -77,7 +74,7 @@ describe('format', () => {
|
|||||||
for (const name in formatData) {
|
for (const name in formatData) {
|
||||||
const datum = formatData[name]
|
const datum = formatData[name]
|
||||||
it(name, () => {
|
it(name, () => {
|
||||||
expect(format(datum.object)).to.equal(datum.string)
|
expect(format(datum.object)).toBe(datum.string)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -86,7 +83,7 @@ describe('parse', () => {
|
|||||||
for (const name in parseData) {
|
for (const name in parseData) {
|
||||||
const datum = parseData[name]
|
const datum = parseData[name]
|
||||||
it(name, () => {
|
it(name, () => {
|
||||||
expect(parse(datum.string)).to.eql(datum.object)
|
expect(parse(datum.string)).toEqual(datum.object)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
3426
packages/xo-remote-parser/yarn.lock
Normal file
3426
packages/xo-remote-parser/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user