Skip to content

Commit

Permalink
resolving conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
pdehaan committed Sep 3, 2014
1 parent 683d3a1 commit 9f3d80f
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 22 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/**
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ services: redis-server

before_install:
- "sudo apt-get install python-virtualenv"
- npm i grunt-cli -g

script: make travis

after_script:
- npm install nsp -g
- npm run outdated
- npm run audit-shrinkwrap

Expand Down
45 changes: 45 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
module.exports = function (grunt) {
"use strict";

require("load-grunt-tasks")(grunt);

grunt.initConfig({
"APP": {
"CODE_DIRS": "{,config/**/,loop/**/,test/**/}",
"COPYRIGHT": "This Source Code Form is subject to the terms of the Mozilla Public"
},
"pkg": require("./package.json"),

"copyright": {
"options": {
"pattern": "<%= APP.COPYRIGHT %>"
},
"src": "<%= eslint.src %>"
},

"eslint": {
"src": "<%= APP.CODE_DIRS %>*.js"
},

"jsonlint": {
"src": "<%= APP.CODE_DIRS %>*.json"
},

"shell": {
"shrinkwrap": {
"command": "npm shrinkwrap --dev"
}
},

"todo": {
"src": "<%= eslint.src %>"
},

"validate-shrinkwrap": {
}
});

grunt.registerTask("lint", ["eslint", "jsonlint"]);
grunt.registerTask("audit-shrinkwrap", ["shell:shrinkwrap", "validate-shrinkwrap"]);
grunt.registerTask("default", ["lint", "copyright"]);
};
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ install:
@npm install

.PHONY: lint
lint: eslint
lint:
@grunt lint

clean:
rm -rf .venv node_modules coverage lib-cov html-report
Expand All @@ -32,7 +33,7 @@ cover-mocha:

.PHONY: eslint
eslint:
@$(NODE_LOCAL_BIN)/eslint test/*.js loop/*.js loop/*/*.js
@grunt eslint

.PHONY: mocha
mocha:
Expand Down
2 changes: 0 additions & 2 deletions loop/fxa.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
var https = require('https');
var request = require('request');
var conf = require('./config').conf;
/*eslint-disable */
var atob = require('atob');
/* eslint-enable */
var sendError = require("./utils").sendError;
var errors = require("./errno.json");

Expand Down
42 changes: 25 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,44 +14,52 @@
"npm": "1.3.x"
},
"dependencies": {
"async": "0.9.0",
"atob": "1.1.2",
"body-parser": "1.6.5",
"connect-validation": "0.2.0",
"convict": "0.4.2",
"cors": "2.4.1",
"eslint": "0.7.x",
"express": "4.x",
"strftime": "0.8.1",
"express-hawkauth": "0.3.0",
"hiredis": "0.1.17",
"opentok": "2.2.4",
"phone": "git://github.com/Natim/node-phone.git#83a4f48",
"raven": "0.7.0",
"request": "2.40.0",
"urlsafe-base64": "0.0.2",
"hiredis": "0.1.17",
"redis": "0.11.0",
"statsd-node": "0.2.3",
"async": "0.9.0",
"ws": "0.4.31",
"request": "2.40.0",
"sodium": "1.0.11",
"atob": "1.1.2",
"express-hawkauth": "0.3.0",
"eslint": "0.7.x",
"statsd-node": "0.2.3",
"strftime": "0.8.1",
"urlsafe-base64": "0.0.2",
"winston": "0.7.3",
"yargs": "1.3.1",
"phone": "git://github.com/Natim/node-phone.git#83a4f48"
"ws": "0.4.31",
"yargs": "1.3.1"
},
"devDependencies": {
"chai": "1.9.x",
"grunt": "0.4.5",
"grunt-copyright": "0.1.0",
"grunt-eslint": "1.0.0",
"grunt-jsonlint": "1.0.4",
"grunt-nsp-shrinkwrap": "0.0.3",
"grunt-shell": "1.0.1",
"grunt-todo": "0.4.0",
"istanbul": "*",
"jshint": "2.x",
"load-grunt-tasks": "0.6.0",
"mocha": "1.20.x",
"sinon": "1.10.3",
"supertest": "0.13.0",
"superagent-hawk": "0.0.4"
"superagent-hawk": "0.0.4",
"supertest": "0.13.0"
},
"scripts": {
"test": "make test",
"start": "make runserver",
"eslint": "make lint",
"lint": "make lint",
"outdated": "npm outdated --depth 0",
"audit-shrinkwrap": "npm shrinkwrap --dev && nsp audit-shrinkwrap || true"
"audit-shrinkwrap": "grunt audit-shrinkwrap --force",
"jsdoc-lint": "eslint loop --rule 'valid-jsdoc: [1, {requireReturn: false, requireParamDescription: false}]'"
},
"license": "MPL-2.0",
"keywords": []
Expand Down

0 comments on commit 9f3d80f

Please sign in to comment.