Remove lingering mentions of Bower

Bower is no longer used
This commit is contained in:
Ben Schwartz 2021-02-22 14:29:31 -05:00
parent 78407ddc69
commit 23e0600898
6 changed files with 735 additions and 2472 deletions

1
.gitignore vendored
View file

@ -1,5 +1,4 @@
.DS_Store
**/bower_components
/build
node_modules/
/src/server_manager/install_scripts/do_install_script.ts

View file

@ -42,8 +42,6 @@ Then you need to install all the NPM package dependencies:
yarn
```
Note: If you are using root (not recommended on your dev machine, maybe in a container), you need to add `{ "allow_root": true }` to your `/root/.bowerrc` file.
This project uses [Yarn workspaces](https://yarnpkg.com/blog/2017/08/02/introducing-workspaces/).

View file

@ -18,7 +18,7 @@
"do": "bash ./scripts/do_action.sh",
"lint": "yarn shellcheck && yarn tslint",
"shellcheck": "bash ./scripts/shellcheck.sh",
"tslint": "tslint 'src/**/*.ts' -e '**/node_modules/**' -e '**/bower_components/**'"
"tslint": "tslint 'src/**/*.ts' -e '**/node_modules/**'"
},
"workspaces": [
"src/*"

View file

@ -18,8 +18,7 @@
readonly WRAPPER='third_party/shellcheck/run.sh'
declare -ar START=(src scripts "${WRAPPER}")
readonly EXCLUDE='*/bower_components'
# From the specified starting points, prune excluded paths or
# From the specified starting points,
# run shellcheck over all files ending in .sh.
find "${START[@]}" -path "${EXCLUDE}" -prune -o -name '*.sh' -exec "${WRAPPER}" {} +
find "${START[@]}" -name '*.sh' -exec "${WRAPPER}" {} +

View file

@ -3,24 +3,21 @@
## Requirements
* `yarn`
* A clone of `https://github.com/Jigsaw-Code/bower-disclaimer`
## Steps
* `cd` to the root of your clone of this repo
* Ensure `bower_components` and `node_modules` are up to date and only include dependencies of the Electron app by running `yarn run clean && yarn && yarn do server_manager/web_app/build`
* `cd src/server_manager`
* `yarn workspace outline-manager licenses generate-disclaimer --prod > /tmp/yarn`
* `pushd <bower-disclaimer root> && yarn run clean && yarn && yarn licenses generate-disclaimer > /tmp/bower && popd`
* `cat /tmp/{yarn,bower} > ui_components/licenses/licenses.txt`
* `cat ui_components/licenses/db-ip_license.txt >> ui_components/licenses/licenses.txt`
* Ensure `node_modules` is up to date and only include dependencies of the Electron app by running `yarn run clean && yarn && yarn do server_manager/web_app/build`
* `cd src/server_manager/web_app/ui_components/licenses`
* `yarn workspace outline-manager licenses generate-disclaimer --prod > licenses.txt`
* `cat db-ip_license.txt >> licenses.txt`
Done!
## Check
To quickly test for non-compliant licenses:
To quickly look for non-compliant licenses:
```bash
yarn licenses list --prod|grep License:|sort -u
yarn licenses list --prod|grep -Ev \(@\|VendorUrl:\|VendorName:\|URL:\)
```

File diff suppressed because it is too large Load diff