Skip to content

Commit

Permalink
Updating build script to generate spdx.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Apr 19, 2018
1 parent 9170a5f commit b8d0bb3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "app/license-list"]
path = app/license-list
url = https://github.com/spdx/license-list-data.git
[submodule "license-list"]
path = license-list
url = https://github.com/spdx/license-list-data
12 changes: 9 additions & 3 deletions tasks/license-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ import gulpif from 'gulp-if'
import livereload from 'gulp-livereload'
import args from './lib/args'
var fs = require('fs');


var exec = require('child_process').exec;
gulp.task('license-list', () => {
return gulp.src(['app/license-list/spdx.txt','app/license-list/text/*.txt'])
process.chdir('license-list/text')
exec('ls *.txt > ../spdx.txt', function (err, stdout, stderr) {
console.log(stdout);
console.log(stderr);
});
process.chdir('../..')
return gulp.src(['license-list/spdx.txt','license-list/text/*.txt'])
.pipe(gulp.dest(`dist/${args.vendor}/license-list`))
.pipe(gulpif(args.watch, livereload()))
})
Expand Down

0 comments on commit b8d0bb3

Please sign in to comment.