Skip to content

Commit d781ca4

Browse files
config changes
1 parent f6c60b7 commit d781ca4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: node_js
22
node_js:
3-
- "10"
3+
- "12"
44
jobs:
55
include:
66
- stage: build

sharedGruntConfig.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ module.exports = (grunt, dir, dependencies, type, lib) => {
4040
grunt.loadNpmTasks('grunt-coveralls');
4141

4242
//------ Add Doc Tasks
43-
grunt.registerTask('doc', ['copy:docs', 'typedoc', 'sourceCode', 'copy:docs2NPM']);
43+
grunt.registerTask('noTask', []);
44+
grunt.registerTask('doc', ['copy:docs', 'typedoc', 'sourceCode', `${(type === 'app')? 'copy:docs2NPM' : 'noTask'}`]);
4445

4546
//------ Add Staging Tasks
4647
grunt.registerTask('stage', [`${(type === 'app')? 'copy:app2NPM': 'copy:lib2NPM'}`]);
@@ -135,13 +136,13 @@ module.exports = (grunt, dir, dependencies, type, lib) => {
135136
]},
136137
lib2NPM: { files: [
137138
{ expand:true, cwd: 'bin', // copy everything from bin
138-
src:['**/*'], dest:`node_modules/${libPath}/` },
139+
src:['**/*.*', '!cache/**.*.*'], dest:`node_modules/${libPath}/` },
139140
{ expand:true, cwd: './', // copy css and map
140141
src:['*.css*'], dest:`node_modules/${libPath}/` },
141142
]},
142143
app2NPM: { files: [
143144
{ expand:true, cwd: 'bin', // copy everything from bin
144-
src:['**/*'], dest:`node_modules/${libPath}/` },
145+
src:['**/*.*'], dest:`node_modules/${libPath}/` },
145146
{ expand:true, cwd: 'bin', // copy everything from bin
146147
src:[`**/${lib}.*`], dest:`docs` },
147148
{ expand:true, cwd: devPath+'/staging/', // index.html

0 commit comments

Comments
 (0)