Skip to content

Commit

Permalink
Update to new dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
queicherius committed Oct 23, 2016
1 parent 40cbd38 commit 2fdb924
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 30 deletions.
10 changes: 9 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
{
"presets": ["es2015", "stage-0", "stage-3"]
"presets": ["latest", "stage-0"],
"env": {
"test": {
"plugins": [
["istanbul", {"include": ["src/**"]}],
"rewire"
]
}
}
}
18 changes: 17 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Logs
npm-debug.log*

# Coverage directories
coverage/
.nyc_output/

# Compiled code
build/

# Dependencies
node_modules/

# Optional npm cache directory
.npm/

# Webflow
.idea/
build/

# Operating System
.DS_Store
3 changes: 0 additions & 3 deletions .istanbul.yml

This file was deleted.

21 changes: 18 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
# Logs
npm-debug.log*

# Coverage directories
coverage/
.nyc_output/

# Source code
src/

# Dependencies
node_modules/

# Optional npm cache directory
.npm/

# Webflow
.idea/
src/
tests/
.DS_Store

# Operating System
.DS_Store
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
language: node_js
node_js:
- "4"
- "5"
- "6"
after_script: "./node_modules/.bin/codecov"
after_script: "$(npm bin)/codecov"
branches:
only:
- master
- master
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ npm install gw2e-playerbase-statistics
## Usage

```js
const playerbaseStatistics = require('gw2e-playerbase-statistics')
import playerbaseStatistics from 'gw2e-playerbase-statistics'

// An **ordered** array of values with their playtime attached
let playerbase = [
Expand Down
22 changes: 5 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "Calculate statistics and distributions of a value across the playerbase",
"main": "./build/index.js",
"scripts": {
"prepublish": "npm run build",
"build": "./node_modules/.bin/babel src/ -d build/",
"test": "./node_modules/babel-cli/bin/babel-node.js ./node_modules/.bin/isparta cover --include-all-sources ./node_modules/.bin/_mocha -- tests/ --recursive && node node_modules/snazzy/bin/cmd.js"
"prepublish": "abc build",
"build": "abc build",
"test": "abc test && abc lint"
},
"author": "[email protected]",
"license": "MIT",
Expand All @@ -15,22 +15,10 @@
"url": "https://github.com/gw2efficiency/playerbase-statistics"
},
"devDependencies": {
"babel-eslint": "^4.1.6",
"chai": "^3.4.1",
"codecov": "^1.0.1",
"isparta": "^4.0.0",
"mocha": "^2.3.4",
"snazzy": "^2.0.1",
"babel-cli": "^6.4.5",
"babel-preset-es2015": "^6.3.13",
"babel-preset-stage-0": "^6.3.13",
"babel-preset-stage-3": "^6.3.13"
},
"standard": {
"parser": "babel-eslint"
"abc-environment": "^1.0.8"
},
"dependencies": {
"round-to": "^1.1.0",
"simple-statistics": "^2.1.0"
}
}
}

0 comments on commit 2fdb924

Please sign in to comment.