Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: add npm actions to generate the licenses files #2116

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions client/.glf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"inputs": [
"../package.json",
"./package.json"
],
"output": "./src/www/views/licenses_view/licenses/licenses.txt",
"lineEnding": "lf",
"overwrite": true,
"replace": {
"[email protected]": "../node_modules/cordova-plugin-splashscreen/NOTICE",
"[email protected]": "../node_modules/cordova-plugin-statusbar/NOTICE"
}
}
5 changes: 4 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@outline/client",
"version": "0.0.0-debug",
"license": "Apache-2.0",
"private": true,
"comments": {
"version": "The 'version' in this file is just a placeholder for 'npx generate-license-file', please do not change it.",
Expand Down Expand Up @@ -96,6 +97,7 @@
"eslint-plugin-import": "^2.26.0",
"esm": "^3.2.25",
"file-loader": "^6.2.0",
"generate-license-file": "^3.5.0",
"folder-hash": "^4.0.4",
"html-webpack-plugin": "^5.1.0",
"husky": "^1.3.1",
Expand Down Expand Up @@ -150,6 +152,7 @@
]
},
"scripts": {
"clean": "rm -rf output node_modules www platforms plugins"
"clean": "rm -rf output node_modules www platforms plugins",
"generate-license-file": "npx generate-license-file && ./src/www/views/licenses_view/licenses/third_party.sh >> ./src/www/views/licenses_view/licenses/licenses.txt"
}
}
10 changes: 0 additions & 10 deletions client/src/www/views/licenses_view/licenses/README.md

This file was deleted.

Loading
Loading