Skip to content

Commit

Permalink
add version info and add files to npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
williamngan committed May 15, 2018
1 parent 7647010 commit cc6f7ec
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 9 deletions.
2 changes: 0 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ mocha.opts
index.html
CNAME
dist/files
dist/pts.js
dist/pts.min.js
.vscode
favicon.ico
.babelrc
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* pts.js - Copyright © 2017-2018 William Ngan and contributors.
* pts.js 0.4.2 - Copyright © 2017-2018 William Ngan and contributors.
* Licensed under Apache 2.0 License.
* See https://github.com/williamngan/pts for details.
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/pts.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/pts.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports = {
},

plugins: [
new webpack.BannerPlugin("pts.js - Copyright © 2017-2018 William Ngan and contributors.\nLicensed under Apache 2.0 License.\nSee https://github.com/williamngan/pts for details.")
new webpack.BannerPlugin( `pts.js ${require("./package.json").version} - Copyright © 2017-2018 William Ngan and contributors.\nLicensed under Apache 2.0 License.\nSee https://github.com/williamngan/pts for details.` )
]

};
2 changes: 1 addition & 1 deletion webpack.mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = {
},

plugins: [
new webpack.BannerPlugin("pts.js - Copyright © 2017-2018 William Ngan and contributors.\nLicensed under Apache 2.0 License.\nSee https://github.com/williamngan/pts for details.")
new webpack.BannerPlugin( `pts.js ${require("./package.json").version} - Copyright © 2017-2018 William Ngan and contributors.\nLicensed under Apache 2.0 License.\nSee https://github.com/williamngan/pts for details.` )
]

};
3 changes: 1 addition & 2 deletions webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ module.exports = {
new MinifyPlugin({}, {
comments: false
}),
new webpack.BannerPlugin("pts.js (minified es6) - Copyright © 2017-2018 William Ngan and contributors.\nLicensed under Apache 2.0 License.\nSee https://github.com/williamngan/pts for details.")

new webpack.BannerPlugin( `pts.js ${require("./package.json").version} (minified es6) - Copyright © 2017-2018 William Ngan and contributors.\nLicensed under Apache 2.0 License.\nSee https://github.com/williamngan/pts for details.`)
]

};

0 comments on commit cc6f7ec

Please sign in to comment.