Skip to content

Commit

Permalink
Automatically update the copyright year span in LICENSE when publishi…
Browse files Browse the repository at this point in the history
…ng a release #2040
  • Loading branch information
maxkfranz committed Jan 16, 2018
1 parent 145209d commit 2cc665e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
6 changes: 4 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Copyright (c) 2016 The Cytoscape Consortium


Copyright (c) 2016-2018, The Cytoscape Consortium.

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the “Software”), to deal in
Expand All @@ -16,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
6 changes: 5 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ gulp.task('dist', ['build'], function(){
});

gulp.task('pubprep', function(next){
runSequence('pkgver', 'dist', 'docs-pub', 'pubpush', next);
runSequence('pkgver', 'dist', 'copyright', 'docs-pub', 'pubpush', next);
});

gulp.task('pubpush', $.shell.task( replaceShellVars([
Expand Down Expand Up @@ -436,6 +436,10 @@ gulp.task('sniper', ['build-min'], $.shell.task( replaceShellVars([
'$NPM run sniper'
]) ));

gulp.task('copyright', $.shell.task( replaceShellVars([
'$NPM run copyright'
]) ));

gulp.task('npm', $.shell.task( replaceShellVars([
'$NPM publish .'
]) ));
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"build-cjs": "gulp build-cjs",
"build-min": "gulp build-min",
"build-unmin": "gulp build-unmin",
"copyright": "update license",
"dist": "gulp dist",
"watch": "gulp watch",
"watch-babel": "gulp watch-babel",
Expand All @@ -90,18 +91,18 @@
"benchmark-single": "gulp benchmark-single"
},
"devDependencies": {
"bluebird": "^3.5.0",
"gulp-download": "0.0.1",
"babel-core": "^6.24.1",
"babel-loader": "^7.0.0",
"babel-preset-env": "^1.5.2",
"benchmark": "^1.0.0",
"bluebird": "^3.5.0",
"chai": "^1.9.0",
"del": "^2.2.0",
"gulp": "^3.9.1",
"gulp-benchmark": "^1.1.1",
"gulp-concat": "^2.6.0",
"gulp-cssmin": "^0.1.4",
"gulp-download": "0.0.1",
"gulp-eslint": "^3.0.1",
"gulp-htmlmin": "^1.3.0",
"gulp-inject": "^4.0.0",
Expand All @@ -125,6 +126,8 @@
"require-uncached": "^1.0.3",
"run-sequence": "^1.1.5",
"sniper": "^0.2.17",
"update": "^0.7.4",
"updater-license": "^1.0.0",
"vinyl-paths": "^2.1.0",
"webpack": "^2.6.1"
},
Expand Down

0 comments on commit 2cc665e

Please sign in to comment.