-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
32b84b2
commit 163e1bf
Showing
38 changed files
with
240 additions
and
413 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,5 @@ node_modules/ | |
dist/ | ||
*.tmp | ||
coverage/ | ||
*.d.ts | ||
*.d.ts | ||
.tscache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
var tsconfig = require('./tsconfig.json'); | ||
|
||
module.exports = function (grunt) { | ||
"use strict"; | ||
|
||
grunt.initConfig({ | ||
ts: { | ||
options: tsconfig.compilerOptions, | ||
|
||
dev: { | ||
src: tsconfig.files, | ||
reference: 'iridium.d.ts', | ||
watch: 'lib' | ||
}, | ||
test: { | ||
src: tsconfig.files, | ||
reference: 'iridium.d.ts', | ||
options: { | ||
sourceMap: true | ||
} | ||
}, | ||
release: { | ||
src: tsconfig.files, | ||
reference: 'iridium.d.ts', | ||
options: { | ||
sourceMap: false | ||
} | ||
} | ||
}, | ||
mochacli: { | ||
options: { | ||
require: ["test/support/chai", "test/support/config"], | ||
files: "test/*.js", | ||
timeout: '10s' | ||
}, | ||
|
||
default: { | ||
|
||
} | ||
}, | ||
mocha_istanbul: { | ||
coverage: { | ||
src: 'test', | ||
root: 'lib', | ||
options: { | ||
mask: '*.js', | ||
reportFormats: ['lcovonly'], | ||
timeout: '10s', | ||
require: ["test/support/chai", "test/support/config"], | ||
check: { | ||
lines: 75, | ||
statements: 75 | ||
} | ||
} | ||
}, | ||
|
||
coveralls: { | ||
src: 'test', | ||
root: 'lib', | ||
options: { | ||
mask: '*.js', | ||
coverage: true, | ||
reportFormats: ['lcovonly'], | ||
timeout: '10s', | ||
require: ["test/support/chai", "test/support/config"] | ||
} | ||
} | ||
} | ||
}); | ||
|
||
grunt.event.on('coverage', function (lcovcontent, done) { | ||
require('coveralls').handleInput(lcovcontent, function (err) { | ||
if (err) return done(err); | ||
done(); | ||
}); | ||
}); | ||
|
||
grunt.loadNpmTasks("grunt-ts"); | ||
grunt.loadNpmTasks("grunt-mocha-cli"); | ||
grunt.loadNpmTasks("grunt-mocha-istanbul"); | ||
|
||
grunt.registerTask("default", ["ts:dev"]); | ||
grunt.registerTask("test", ["ts:test", "mochacli"]); | ||
grunt.registerTask("coverage", ["ts:test", "mocha_istanbul:coverage"]); | ||
grunt.registerTask("coveralls", ["ts:test", "mocha_istanbul:coveralls"]); | ||
grunt.registerTask("release", ["ts:release"]); | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.