chore(package): update all dependencies

This commit is contained in:
Julien Fontanet 2016-11-02 15:03:45 +01:00
parent 70e73a5a65
commit 87daf0271c
14 changed files with 70 additions and 67 deletions

View File

@ -1,15 +0,0 @@
{
"comments": false,
"compact": true,
"optional": [
// Experimental features.
// "minification.constantFolding",
// "minification.deadCodeElimination",
"es7.asyncFunctions",
"es7.decorators",
"es7.exportExtensions",
"es7.functionBind",
"runtime"
]
}

View File

@ -41,7 +41,7 @@ indent_style = space
#
# Two spaces seems to be the standard most common style, at least in
# Node.js (http://nodeguide.com/style.html#tabs-vs-spaces).
[*.js]
[*.{js,jsx,ts,tsx}]
indent_size = 2
indent_style = space

View File

@ -1,8 +1,7 @@
/bower_components/
/dist/
/node_modules/
npm-debug.log
npm-debug.log.*
!node_modules/*
node_modules/*/
pnpm-debug.log
pnpm-debug.log.*

View File

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

View File

@ -232,24 +232,21 @@ const myView = new View(parentCollection, function predicate (value, key) {
## Development
### Installing dependencies
```
# Install dependencies
> npm install
```
### Compilation
# Run the tests
> npm test
The sources files are watched and automatically recompiled on changes.
```
# Continuously compile
> npm run dev
```
### Tests
# Continuously run the tests
> npm run dev-test
```
> npm run test-dev
# Build for production (automatically called by npm install)
> npm run build
```
## Contributions

View File

@ -21,44 +21,67 @@
"dist/",
"*.js"
],
"engines": {
"node": ">=4"
},
"dependencies": {
"babel-runtime": "^5.6.11",
"babel-runtime": "^6.18.0",
"kindof": "^2.0.0",
"lodash.bind": "^3.1.0",
"lodash.callback": "^3.3.0",
"lodash.foreach": "^3.0.3",
"lodash": "^3.10.1",
"make-error": "^1.0.2"
},
"devDependencies": {
"babel": "^5.6.11",
"babel-eslint": "^4.1.3",
"clarify": "^1.0.5",
"event-to-promise": "^0.3.2",
"ghooks": "^0.3.2",
"mocha": "^2.2.5",
"must": "^0.12.0",
"babel-cli": "^6.18.0",
"babel-eslint": "^7.1.0",
"babel-plugin-lodash": "^3.2.9",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-preset-latest": "^6.16.0",
"babel-preset-stage-0": "^6.16.0",
"clarify": "^2.0.0",
"cross-env": "^3.1.3",
"dependency-check": "^2.6.0",
"event-to-promise": "^0.7.0",
"ghooks": "^1.3.2",
"mocha": "^3.1.2",
"must": "^0.13.2",
"rimraf": "^2.4.3",
"sinon": "^1.14.1",
"source-map-support": "^0.3.2",
"standard": "^5.3.1",
"trace": "^1.2.0"
"source-map-support": "^0.4.6",
"standard": "^8.5.0",
"trace": "^2.3.3"
},
"scripts": {
"build": "babel --source-maps --out-dir=dist/ src/",
"dev": "babel --watch --source-maps --out-dir=dist/ src/",
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"clean": "rimraf dist/",
"depcheck": "dependency-check ./package.json --entry dist/collection.js index.js unique-index.js view.js",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"lint": "standard",
"posttest": "npm run lint && npm run depcheck",
"prebuild": "npm run clean",
"predev": "npm run clean",
"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\""
},
"babel": {
"plugins": [
"lodash",
"transform-runtime"
],
"presets": [
"latest",
"stage-0"
]
},
"standard": {
"ignore": [
"dist/**"
"dist"
],
"parser": "babel-eslint"
},
"config": {
"ghooks": {
"pre-commit": "npm test"
"commit-msg": "npm test"
}
}
}

View File

@ -1,7 +1,7 @@
import forEach from 'lodash.foreach'
import kindOf from 'kindof'
import {BaseError} from 'make-error'
import {EventEmitter} from 'events'
import {forEach} from 'lodash'
import isEmpty from './is-empty'
import isObject from './is-object'

View File

@ -2,8 +2,8 @@
import eventToPromise from 'event-to-promise'
import expect from 'must'
import forEach from 'lodash.foreach'
import sinon from 'sinon'
import { forEach } from 'lodash'
// ===================================================================

View File

@ -1,5 +1,4 @@
import bind from 'lodash.bind'
import callback from 'lodash.callback'
import { bind, iteratee } from 'lodash'
import clearObject from './clear-object'
import isEmpty from './is-empty'
@ -15,7 +14,7 @@ import {
export default class Index {
constructor (computeHash) {
if (computeHash) {
this.computeHash = callback(computeHash)
this.computeHash = iteratee(computeHash)
}
this._itemsByHash = Object.create(null)

View File

@ -2,7 +2,7 @@
import eventToPromise from 'event-to-promise'
import expect from 'must'
import forEach from 'lodash.foreach'
import { forEach } from 'lodash'
// ===================================================================

View File

@ -1,5 +1,4 @@
import bind from 'lodash.bind'
import callback from 'lodash.callback'
import { bind, iteratee } from 'lodash'
import clearObject from './clear-object'
import NotImplemented from './not-implemented'
@ -14,7 +13,7 @@ import {
export default class UniqueIndex {
constructor (computeHash) {
if (computeHash) {
this.computeHash = callback(computeHash)
this.computeHash = iteratee(computeHash)
}
this._itemByHash = Object.create(null)

View File

@ -2,7 +2,7 @@
import eventToPromise from 'event-to-promise'
import expect from 'must'
import forEach from 'lodash.foreach'
import { forEach } from 'lodash'
// ===================================================================

View File

@ -1,4 +1,4 @@
import forEach from 'lodash.foreach'
import { forEach } from 'lodash'
import Collection from '..'
import View from '../view'

View File

@ -1,6 +1,4 @@
import bind from 'lodash.bind'
import createCallback from 'lodash.callback'
import forEach from 'lodash.foreach'
import { bind, forEach, iteratee as createCallback } from 'lodash'
import Collection, {
ACTION_ADD,