Skip to content

Commit bc3e703

Browse files
author
hs
committed
fixed travis and coveralls
1 parent 12368f0 commit bc3e703

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

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)