Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node package #10

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
language: python
python: 3.5
sudo: false

env:
- TOXENV=py27
- TOXENV=py35
- TOXENV=py27
- TOXENV=py35
install:
- pip install -U tox twine wheel codecov
script: tox
- pip install -U tox twine wheel codecov;
- sudo apt-get update;
- curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -;
- sudo apt-get install -y nodejs;
script:
- make test
after_success:
- codecov
- codecov
- make lint
cache:
directories:
- $HOME/.cache/pip
directories:
- $HOME/.cache/pip
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
NODE_DIR = helpers/nodejs

test:
tox
$(MAKE) -C $(NODE_DIR) test

lint:
$(MAKE) -C $(NODE_DIR) lint

.PHONY: test lint
1 change: 1 addition & 0 deletions helpers/nodejs/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test/*
24 changes: 24 additions & 0 deletions helpers/nodejs/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"env": {
"node": true
},
"extends": "eslint:recommended",
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
}
}
38 changes: 38 additions & 0 deletions helpers/nodejs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules
jspm_packages

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history
12 changes: 12 additions & 0 deletions helpers/nodejs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
requirements:
npm install

test: requirements
./node_modules/.bin/mocha --reporter spec

lint: requirements
./node_modules/eslint/bin/eslint.js *.js

check: test lint

.PHONY: requirements test lint check
Loading