Skip to content

Commit

Permalink
use short date format in copyright header (katspaugh#1479)
Browse files Browse the repository at this point in the history
* update dev dependencies

* use YYYY-MM-DD format
  • Loading branch information
thijstriemstra committed Oct 4, 2018
1 parent 8b50f11 commit 463f887
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
7 changes: 4 additions & 3 deletions build-config/fragments/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

const path = require('path');
const webpack = require('webpack');
const datefns = require('date-fns');

const time = new Date();
var rootDir = path.resolve(__dirname, '..', '..');
const rootDir = path.resolve(__dirname, '..', '..');
const pckg = require(path.join(rootDir, 'package.json'));
const date = datefns.format(new Date(), 'YYYY-MM-DD');

// add JS banner with copyright and version info
// prettier-ignore
const jsBanner = `${pckg.name} ${pckg.version} (${time})
const jsBanner = `${pckg.name} ${pckg.version} (${date})
${pckg.homepage}
@license ${pckg.license}`;
const jsBannerPlugin = new webpack.BannerPlugin({
Expand Down
15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,24 @@
"url": "https://github.com/katspaugh/wavesurfer.js/issues"
},
"keywords": [
"waveform", "audio", "music", "player", "webaudio", "microphone", "visualization"
"waveform",
"audio",
"music",
"player",
"webaudio",
"microphone",
"visualization"
],
"devDependencies": {
"@babel/core": "^7.1.0",
"@babel/core": "^7.1.2",
"@babel/preset-env": "^7.1.0",
"@babel/register": "^7.0.0",
"babel-eslint": "^10.0.1",
"babel-loader": "^8.0.4",
"babel-plugin-add-module-exports": "^1.0.0",
"babel-plugin-istanbul": "^5.0.1",
"babel-plugin-transform-class-properties": "^6.24.1",
"date-fns": "^1.29.0",
"debounce": "^1.2.0",
"esdoc": "^1.1.0",
"esdoc-accessor-plugin": "^1.0.0",
Expand All @@ -60,7 +67,7 @@
"eslint": "^5.6.1",
"eslint-config-prettier": "^3.1.0",
"eslint-loader": "^2.1.1",
"eslint-plugin-prettier": "^2.7.0",
"eslint-plugin-prettier": "^3.0.0",
"htmlhint": "^0.10.1",
"in-publish": "^2.0.0",
"jasmine-core": "^3.2.1",
Expand All @@ -79,7 +86,7 @@
"prettier": "^1.14.3",
"uglifyjs-webpack-plugin": "^2.0.1",
"webpack": "^4.20.2",
"webpack-cli": "^3.1.1",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.9",
"webpack-merge": "^4.1.4"
},
Expand Down

0 comments on commit 463f887

Please sign in to comment.