Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Commit

Permalink
prepend gherkin license to each file
Browse files Browse the repository at this point in the history
  • Loading branch information
chmontgomery committed Apr 2, 2015
1 parent e2537db commit 38525ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions javascript/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ var wrap = require('gulp-wrap-amd');
var through = require('through2');
var path = require('path');
var fs = require('fs');
var insert = require('gulp-insert');
var license = fs.readFileSync(path.join(__dirname, '../LICENSE'), 'utf8');

function replaceAll(str, find, replace) {
return str.split(find).join(replace);
Expand Down Expand Up @@ -35,6 +37,7 @@ gulp.task('wrap:gherkin', function () {
.pipe(wrap({
exports: 'module.exports'
}))
.pipe(insert.prepend('/*\n' + license + '*/\n'))
.pipe(gulp.dest('./dist/'))
});

Expand Down
1 change: 1 addition & 0 deletions javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"devDependencies": {
"browserify": "^9.0.3",
"gulp": "^3.8.11",
"gulp-insert": "^0.4.0",
"gulp-wrap-amd": "^0.5.0",
"mocha": "^2.1.0",
"through2": "^0.6.3",
Expand Down

0 comments on commit 38525ab

Please sign in to comment.