Skip to content

Commit 9d54343

Browse files
author
hs
committed
2 parents 7348f08 + bc3e703 commit 9d54343

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hsdatab",
3-
"version": "2.3.0",
3+
"version": "2.4.0",
44
"main": "./index.js",
55
"types": "./index.d.ts",
66
"keywords": [
@@ -43,7 +43,9 @@
4343
"grunt-tslint": "^4.0.1",
4444
"grunt-typedoc": "^0.2.4",
4545
"grunt-webpack": "^3.1.2",
46+
"jest": "^23.4.2",
4647
"tslint": "^4.5.1",
48+
"ts-jest": "^23.0.1",
4749
"typedoc": "^0.11.1",
4850
"typescript": "^2.9.2",
4951
"uglifyjs-webpack-plugin": "^1.2.5",

sharedGruntConfig.js

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,21 @@ module.exports = (grunt, dir, dependencies, type, lib) => {
2323
grunt.loadNpmTasks('grunt-contrib-clean');
2424
grunt.loadNpmTasks('grunt-contrib-copy');
2525
grunt.loadNpmTasks('grunt-contrib-less');
26-
grunt.loadNpmTasks('grunt-coveralls');
2726
grunt.loadNpmTasks('grunt-typedoc');
2827
grunt.loadNpmTasks('grunt-tslint');
2928
grunt.loadNpmTasks('grunt-ts');
3029
grunt.loadNpmTasks('grunt-webpack');
3130
grunt.loadNpmTasks('jest');
3231

3332
//------ Add Doc Tasks
34-
grunt.registerTask('doc', ['clean:docs', 'copy:html', 'typedoc', 'sourceCode']);
33+
grunt.registerTask('doc', ['clean:docs', 'copy:htmlGH', 'typedoc', 'sourceCode', 'copy:docs2NPM']);
3534

3635
//------ Add Staging Tasks
37-
grunt.registerTask('stage', ['copy:docs2NPM', `${(type === 'app')? 'copy:app2NPM': 'copy:lib2NPM'}`]);
36+
grunt.registerTask('stage', [`${(type === 'app')? 'copy:app2NPM': 'copy:lib2NPM'}`]);
3837

3938
//------ Add Test Tasks
4039
grunt.registerTask('ospec', () => { require('child_process').spawnSync('./node_modules/.bin/ospec', {stdio: 'inherit'}); });
41-
grunt.registerTask('jest', () => { require('child_process').spawnSync('./node_modules/.bin/jest',
42-
['-c=jest.config.json', '-i'],
43-
{stdio: 'inherit'}); });
40+
grunt.registerTask('jest', () => { require('child_process').spawnSync('./node_modules/.bin/jest', ['-c=jest.config.json', '-i'], {stdio: 'inherit'}); });
4441
grunt.registerTask('test', ['clean:cov', 'jest', 'copy:coverage', 'cleanupCoverage']);
4542

4643
//------ Add Build Tasks
@@ -94,7 +91,7 @@ module.exports = (grunt, dir, dependencies, type, lib) => {
9491
src:['*.md', 'package.json'], dest:'bin'
9592
}
9693
]},
97-
html: { files: [
94+
htmlGH: { files: [
9895
{ expand:true, cwd: devPath+'/staging/', // index.html
9996
src:['index.html'], dest:'docs'
10097
}
@@ -253,13 +250,6 @@ module.exports = (grunt, dir, dependencies, type, lib) => {
253250
}
254251
},
255252

256-
coveralls: {
257-
options: { force: false },
258-
target: {
259-
src: `./docs/data/src/${lib}/coverage/lcov.info`,
260-
options: {}
261-
}
262-
},
263253
watch: {
264254
dependencies: {
265255
files: dependencies.map(d => `./node_modules/${d.toLowerCase()}/index.js`),

src/Data.jest.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
require('coveralls');
2-
31
import * as hsdatab from './';
42
import { Data } from './Data';
53

0 commit comments

Comments
 (0)