mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
add add.sh helper for adding dependency and updating licenses
This commit is contained in:
parent
ace834a21b
commit
29c2fa2317
5 changed files with 27 additions and 5 deletions
|
@ -13,3 +13,8 @@ exports_files([
|
||||||
".eslintrc.js",
|
".eslintrc.js",
|
||||||
"licenses.json",
|
"licenses.json",
|
||||||
])
|
])
|
||||||
|
|
||||||
|
alias(
|
||||||
|
name = "yarn",
|
||||||
|
actual = "@nodejs//:yarn_bin",
|
||||||
|
)
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
Anki's TypeScript and Sass dependencies. Some TS/JS code is also
|
Anki's TypeScript and Sass dependencies. Some TS/JS code is also
|
||||||
stored separately in ../qt/aqt/data/web/.
|
stored separately in ../qt/aqt/data/web/.
|
||||||
|
|
||||||
|
To update all dependencies:
|
||||||
|
|
||||||
|
./update.sh
|
||||||
|
|
||||||
To add a new dev dependency, use something like:
|
To add a new dev dependency, use something like:
|
||||||
|
|
||||||
bazel run @nodejs//:yarn add @rollup/plugin-alias -- -D
|
./add.sh -D @rollup/plugin-alias
|
||||||
|
|
7
ts/add.sh
Executable file
7
ts/add.sh
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# Add a dependency (eg 'yarn add ...') and update licenses.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
bazel run yarn -- add $*
|
||||||
|
./update-licenses.sh
|
8
ts/update-licenses.sh
Executable file
8
ts/update-licenses.sh
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# Dump runtime licenses to licenses.json
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
./node_modules/.bin/license-checker-rseidelsohn --production --json \
|
||||||
|
--excludePackages anki --relativeLicensePath \
|
||||||
|
--relativeModulePath > licenses.json
|
|
@ -3,7 +3,5 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
bazel run @nodejs//:yarn upgrade
|
bazel run yarn upgrade
|
||||||
./node_modules/.bin/license-checker-rseidelsohn --production --json \
|
./update-licenses.sh
|
||||||
--excludePackages anki --relativeLicensePath \
|
|
||||||
--relativeModulePath > licenses.json
|
|
Loading…
Reference in a new issue