Skip to content

Commit 4f7dec2

Browse files
authored
Added license.config.js 📥
1 parent 208b891 commit 4f7dec2

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/license.config.js

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/* Stuff for webpack config / build process
2+
Note / step for cutting release -
3+
update package.json FIRST with version - to keep updated version in license.
4+
THEN create build.
5+
*/
6+
const packageData = require('../package.json');
7+
8+
const REPONAME = `ctree.js`;
9+
10+
const LICENSE = `/**!
11+
* @license ${REPONAME} - ${packageData.description}
12+
* Originally written in GoLang by: Matt Gleich [https://github.com/gleich]
13+
* Ported to JavaScript by: Jared Van Valkengoed [https://github.com/MarketingPip]
14+
* VERSION: ${packageData.version}
15+
* LICENSED UNDER ${packageData?.license} LICENSE
16+
* MORE INFO CAN BE FOUND AT https://github.com/MarketingPipeline/${REPONAME}/
17+
*/`;
18+
19+
const packageCONFIG = {LICENSE, FILENAME:packageData.main.split("/").pop()};
20+
21+
module.exports = packageCONFIG

0 commit comments

Comments
 (0)