-
-
Notifications
You must be signed in to change notification settings - Fork 484
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: manually clone git modules instead of using submodules (#2274)
closes #2231 Submodules are a blocker for beginners, we should make it clone on demand. It is also a blocker for people who wants to target this repo as a crate for testing purposes, cargo will do a full clone if you specify oxc_parser = { git = "this repo" } in Cargo.toml
- Loading branch information
Showing
9 changed files
with
28 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,10 +23,12 @@ ready: | |
just lint | ||
git status | ||
|
||
# Update our local branch with the remote branch (this is for you to sync the git submodules) | ||
update: | ||
git submodule sync | ||
git submodule update --init --recursive | ||
# Clone or update submodules | ||
submodules: | ||
just clone-submodule tasks/coverage/test262 [email protected]:tc39/test262.git 17ba9aea47e496f5b2bc6ce7405b3f32e3cfbf7a | ||
just clone-submodule tasks/coverage/babel [email protected]:babel/babel.git eccbd203383487f6957dcf086aa83d773691560b | ||
just clone-submodule tasks/coverage/typescript [email protected]:microsoft/TypeScript.git 64d2eeea7b9c7f1a79edf42cb99f302535136a2e | ||
just clone-submodule tasks/prettier_conformance/prettier [email protected]:prettier/prettier.git ff83d55d05e92ceef10ec0cb1c0272ab894a00a0 | ||
|
||
# --no-vcs-ignores: cargo-watch has a bug loading all .gitignores, including the ones listed in .gitignore | ||
# use .ignore file getting the ignore list | ||
|
@@ -115,10 +117,10 @@ new-react-perf-rule name: | |
new-n-rule name: | ||
cargo run -p rulegen {{name}} n | ||
|
||
# Sync all submodules with their own remote repos (this is for Boshen updating the submodules) | ||
sync-submodules: | ||
git submodule update --init --remote | ||
|
||
# Upgrade all Rust dependencies | ||
upgrade: | ||
cargo upgrade --incompatible | ||
|
||
clone-submodule dir url sha: | ||
git clone --depth=1 {{url}} {{dir}} || true | ||
cd {{dir}} && git fetch origin {{sha}} && git reset --hard {{sha}} |
Submodule babel
deleted from
eccbd2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule test262
deleted from
17ba9a
Submodule typescript
deleted from
64d2ee
Submodule prettier
deleted from
ff83d5