Skip to content
This repository was archived by the owner on Jul 2, 2020. It is now read-only.
Merged
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
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ scripts/**
submodules/**
generators/app/templates/**
generators/web/templates/**
temp
5 changes: 3 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"extends": "springworks",
"rules": {
"no-sync": 0,
"dot-location": 0,
"dot-location": 1,
"no-console": 0,
"no-process-exit": 0
"no-process-exit": 0,
"object-curly-spacing": 1
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ results

npm-debug.log
node_modules
temp

# IntelliJ
.idea
Expand Down
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
language: node_js
node_js:
- '0.12'
- "0.10"
- "0.12"
- "iojs"
script:
- npm run lint
- npm test
Expand All @@ -10,3 +12,4 @@ notifications:
email: false
slack:
secure: V3v+RTLnSF0V1cXRvQTsluiBusOIp2pR/54uD6CjQhv16GCjd2iB7orhbCcynMeaDR5e1eiJLybCKGeXFcfg/M/cZUk+H93nIGvK2jzj0xHAEB6cCOjEAf3BCqD9F3kX/EnMO7TgXO+5ZNK7SvcUw7qhJhYcjPgjdP9ihIwXChU=
sudo: false
10 changes: 5 additions & 5 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ module.exports = yeoman.generators.Base.extend({
}
},

testFiles: function() {
this.copy('.istanbul.yml', '.istanbul.yml');
this.copy('test/mocha.opts', 'test/mocha.opts');
},

lintFiles: function() {
this.copy('eslintignore', '.eslintignore');
this.copy('eslintrc', '.eslintrc');
this.copy('test/eslintrc', 'test/.eslintrc');
this.copy('gjslintrc', '.gjslintrc'); // Skoog specific ;)
},

npmFiles: function() {
this.copy('npmignore', '.npmignore');
}
},

Expand Down
8 changes: 8 additions & 0 deletions generators/app/templates/.istanbul.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
instrumentation:
include-all-sources: true

reporting:
print: summary
reports:
- lcov
- teamcity
35 changes: 14 additions & 21 deletions generators/app/templates/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,15 @@
"description": "<%= projectDescription %>",
"private": <%= privateProject %>,<% if (!privateProject) { %>
"license": "MIT",<% } %>
"engines": {
"node": ">=0.10.33"
},
"scripts": {
"test": "NODE_ENV=test istanbul cover --report teamcity --report lcov _mocha -- --ui bdd --check-leaks --recursive --slow 200 --reporter spec --globals 'Intl,IntlPolyfill' test",
"test": "NODE_ENV=test istanbul cover _mocha",
"lint": "eslint .",<% if (!privateProject) { %>
"coveralls": "NODE_ENV=test istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --recursive -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"<% } else { %>
"inspectjs": "jsinspect --threshold 30 ./lib",
"buddyjs": "buddy ./lib",
"quality": "npm run buddyjs && npm run inspectjs && npm run lint",
"test-acceptance": "NODE_ENV=test istanbul cover --report teamcity --report lcov _mocha -- --ui bdd --check-leaks --recursive --slow 200 --reporter spec --globals 'Intl,IntlPolyfill' $(find test/**/acceptance test/acceptance -name '*.js' 2>/dev/null)",
"test-changed": "NODE_ENV=test mocha --ui bdd --check-leaks --recursive --slow 200 --reporter spec --globals 'Intl,IntlPolyfill' $(git diff --name-only test | grep -E '(\\.js)$')",
"test-component": "NODE_ENV=test istanbul cover --report teamcity --report lcov _mocha -- --ui bdd --check-leaks --recursive --slow 200 --reporter spec --globals 'Intl,IntlPolyfill' $(find test/**/component test/component -name *.js 2>/dev/null)",
"test-no-cov": "NODE_ENV=test mocha --ui bdd --check-leaks --recursive --slow 200 --reporter spec --globals 'Intl,IntlPolyfill' test",
"test-unit": "NODE_ENV=test istanbul cover --report teamcity --report lcov _mocha -- --ui bdd --check-leaks --recursive --slow 200 --reporter spec --globals 'Intl,IntlPolyfill' $(find test/**/unit test/unit -name '*.js' 2>/dev/null)"<% } %>
"coveralls": "cat ./coverage/lcov.info | coveralls"<% } else { %>
"test-acceptance": "NODE_ENV=test istanbul cover _mocha -- $(find test/**/acceptance test/acceptance -name '*.js' 2>/dev/null)",
"test-changed": "NODE_ENV=test istanbul cover _mocha -- $(git diff --name-only test | grep -E '(\\.js)$')",
"test-component": "NODE_ENV=test istanbul cover _mocha -- $(find test/**/component test/component -name *.js 2>/dev/null)",
"test-no-cov": "NODE_ENV=test mocha",
"test-unit": "NODE_ENV=test istanbul cover _mocha -- $(find test/**/unit test/unit -name '*.js' 2>/dev/null)"<% } %>
},
"repository": {
"type": "git",
Expand All @@ -31,14 +25,13 @@
"dependencies": {
},
"devDependencies": {
"buddy.js": "^0.8.0",<% if (!privateProject) { %>
<% if (!privateProject) { %>
"coveralls": "^2.11.2",<% } %>
"istanbul": "^0.3.13",
"eslint": "^0.21.2",
"eslint-config-springworks": "^1.0.1",
"eslint-plugin-mocha": "^0.2.2",
"jsinspect": "^0.5.0",
"mocha": "^2.2.1",
"chai": "^2.2.0"
"eslint": "0.23.0",
"eslint-config-springworks": "2.1.2",
"eslint-plugin-mocha": "0.2.2",
"istanbul": "^0.3.15",
"mocha": "^2.2.5",
"@springworks/test-harness": "^1.0.0"
}
}
6 changes: 2 additions & 4 deletions generators/app/templates/gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@ pids
logs
results

npm-debug.log
node_modules

# IntelliJ
.idea/workspace.xml
.idea/tasks.xml
/.idea/misc.xml
.idea
*.iml

coverage

Expand Down
4 changes: 0 additions & 4 deletions generators/app/templates/gjslintrc

This file was deleted.

2 changes: 0 additions & 2 deletions generators/app/templates/npmignore

This file was deleted.

6 changes: 6 additions & 0 deletions generators/app/templates/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
--ui bdd
--check-leaks
--recursive
--slow 200
--reporter spec
--require @springworks/test-harness
5 changes: 5 additions & 0 deletions generators/app/templates/travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
language: node_js
node_js:
- "0.10"
- "0.12"
- "iojs"
script:
- npm run lint
- npm test
after_success:
- npm run coveralls
notifications:
email: false
sudo: false
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
"devDependencies": {
"chai": "^2.2.0",
"coveralls": "^2.11.2",
"eslint": "^0.21.2",
"eslint-config-springworks": "^1.0.1",
"eslint-plugin-mocha": "^0.2.2",
"eslint": "0.23.0",
"eslint-config-springworks": "2.1.2",
"eslint-plugin-mocha": "0.3.0",
"istanbul": "^0.3.13",
"mocha": "^2.2.1",
"mocha-lcov-reporter": "0.0.1"
Expand Down
5 changes: 3 additions & 2 deletions test/private-project-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ describe('springworks:app (private)', function() {
'.gitattributes',
'.eslintignore',
'.eslintrc',
'.gjslintrc',
'.npmignore',
'test/.eslintrc',
'test/mocha.opts',
'.istanbul.yml',
'README.md'
];
assert.file(expected);
Expand Down
2 changes: 0 additions & 2 deletions test/public-project-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ describe('springworks:app (public)', function() {
'LICENSE',
'.eslintignore',
'.eslintrc',
'.gjslintrc',
'.npmignore',
'README.md'
];
assert.file(expected);
Expand Down