mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[mv3] Add codemirror-ubol as submodule
This commit is contained in:
parent
ee7af6f005
commit
eee279be01
5 changed files with 16 additions and 7 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[submodule "platform/mv3/extension/lib/codemirror/codemirror-ubol"]
|
||||
path = platform/mv3/extension/lib/codemirror/codemirror-ubol
|
||||
url = https://github.com/gorhill/codemirror-ubol.git
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
Steps to build `cm6.bundle.ubol.min.js` -- command line:
|
||||
Steps to build `cm6.bundle.ubol.min.js` -- command line from repo root:
|
||||
|
||||
- `git clone https://github.com/gorhill/codemirror-quickstart.git`
|
||||
- This is a customized repo forked from <https://github.com/RPGillespie6/codemirror-quickstart>
|
||||
- `cd codemirror-quickstart`
|
||||
- `git submodule init platform/mv3/extension/lib/codemirror/codemirror-ubol`
|
||||
- `cd platform/mv3/extension/lib/codemirror/codemirror-ubol/`
|
||||
- We are now in a customized repo forked from <https://github.com/RPGillespie6/codemirror-quickstart>
|
||||
- `npm install`
|
||||
- `npm build`
|
||||
- `npm run build`
|
||||
- `cm6.bundle.ubol.min.js` should be in `dist` directory
|
||||
- This is the origin of the `cm6.bundle.ubol.min.js` in the current directory
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 7067d0c2a9745bfddceedb46e1428a0b545954bd
|
||||
|
|
@ -96,12 +96,18 @@ cp platform/mv3/extension/*.html "$UBOL_DIR"/
|
|||
cp platform/mv3/extension/*.json "$UBOL_DIR"/
|
||||
cp platform/mv3/extension/css/* "$UBOL_DIR"/css/
|
||||
cp -R platform/mv3/extension/js/* "$UBOL_DIR"/js/
|
||||
cp -R platform/mv3/extension/lib "$UBOL_DIR"/
|
||||
cp platform/mv3/"$PLATFORM"/ext-compat.js "$UBOL_DIR"/js/ 2>/dev/null || :
|
||||
cp platform/mv3/extension/img/* "$UBOL_DIR"/img/
|
||||
cp -R platform/mv3/extension/_locales "$UBOL_DIR"/
|
||||
cp platform/mv3/README.md "$UBOL_DIR/"
|
||||
|
||||
# Libraries
|
||||
mkdir -p "$UBOL_DIR"/lib/codemirror
|
||||
cp platform/mv3/extension/lib/codemirror/* \
|
||||
"$UBOL_DIR"/lib/codemirror/ 2>/dev/null || :
|
||||
cp platform/mv3/extension/lib/codemirror/codemirror-ubol/dist/cm6.bundle.ubol.min.js \
|
||||
"$UBOL_DIR"/lib/codemirror/
|
||||
|
||||
echo "*** uBOLite.mv3: Generating rulesets"
|
||||
UBOL_BUILD_DIR=$(mktemp -d)
|
||||
mkdir -p "$UBOL_BUILD_DIR"
|
||||
|
|
|
|||
Loading…
Reference in a new issue