Skip to content

Commit

Permalink
Ease working with latest IntelliJ IDEA
Browse files Browse the repository at this point in the history
Added the *.iml file to .gitignore.

Split the grunt task "spec" into "preSpec" and "spec," the difference
being that "preSpec" does not run mocha tests due to its afterBuild
event.  This separation makes it easier to create a build configuration
in IntelliJ IDEA from which to debug mocha tests using IDEA's
test runner.
  • Loading branch information
abrobston committed Nov 14, 2015
1 parent 20853de commit 73810b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,4 +1,5 @@
.idea/
*.iml
node_modules/
build/
DRAFT/
Expand Down
7 changes: 4 additions & 3 deletions Gruntfile.coffee
Expand Up @@ -20,7 +20,7 @@ module.exports = gruntFunction = (grunt) ->
template: banner: true
resources: [ 'inject-version' ]

spec:
preSpec:
path: 'source/spec'
dstPath: 'build/spec'
copy: /./
Expand All @@ -35,8 +35,9 @@ module.exports = gruntFunction = (grunt) ->
equal, notEqual, ok, notOk, tru, fals, deepEqual, notDeepEqual, exact, notExact, iqual,
notIqual, ixact, notIxact, like, notLike, likeBA, notLikeBA, equalSet, notEqualSet"""
chai: 'expect' ] ]
afterBuild: require('urequire-ab-specrunner').options
mochaOptions: "-t 10000 --bail"

spec: derive: 'preSpec', afterBuild: require('urequire-ab-specrunner').options
mochaOptions: "-t 10000 --bail"

specWatch: derive: 'spec', watch: after: 'copy'

Expand Down

0 comments on commit 73810b0

Please sign in to comment.