mirror of
https://github.com/swc-project/swc.git
synced 2024-09-11 08:45:34 +03:00
chore(repo): Make git commit faster (#4353)
This commit is contained in:
parent
320e27fb52
commit
f7df3d8f24
@ -3,9 +3,9 @@
|
|||||||
|
|
||||||
yarn lint-staged
|
yarn lint-staged
|
||||||
|
|
||||||
|
# Remove empty directories
|
||||||
if command -v find &> /dev/null
|
if command -v fd &> /dev/null
|
||||||
then
|
then
|
||||||
find . -name '.DS_Store' -type f -delete
|
fd -H '^\.DS_Store$' -tf -X rm
|
||||||
find . -type d -empty -delete
|
fd -te -td -X rmdir
|
||||||
fi
|
fi
|
||||||
|
@ -65,7 +65,18 @@ Steps to get started:
|
|||||||
|
|
||||||
## Getting your development environment set up
|
## Getting your development environment set up
|
||||||
|
|
||||||
After cloning the project there are a few steps required to get the project running.
|
### Optional CLI tools
|
||||||
|
|
||||||
|
CLI tools below will help development.
|
||||||
|
Note that these tools are optional.
|
||||||
|
|
||||||
|
- [fd](https://github.com/sharkdp/fd)
|
||||||
|
|
||||||
|
This is used for performant file operations in git hooks.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
After cloning the project there are a few steps required to get the project running.
|
||||||
For running all tests, take the following steps:
|
For running all tests, take the following steps:
|
||||||
|
|
||||||
1. Fetch submodules to pull ECMAScript test suites.
|
1. Fetch submodules to pull ECMAScript test suites.
|
||||||
@ -76,7 +87,7 @@ For running all tests, take the following steps:
|
|||||||
|
|
||||||
2. Install js dependencies.
|
2. Install js dependencies.
|
||||||
Ensure [Yarn Package Manager is installed](https://yarnpkg.com/getting-started/install)
|
Ensure [Yarn Package Manager is installed](https://yarnpkg.com/getting-started/install)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn
|
yarn
|
||||||
```
|
```
|
||||||
@ -95,7 +106,7 @@ For running all tests, take the following steps:
|
|||||||
|
|
||||||
5. Add wasm32-wasi target
|
5. Add wasm32-wasi target
|
||||||
|
|
||||||
`rustup target add wasm32-wasi`
|
`rustup target add wasm32-wasi`
|
||||||
|
|
||||||
6. Ensure you're using Node.JS >= 16
|
6. Ensure you're using Node.JS >= 16
|
||||||
|
|
||||||
@ -106,10 +117,12 @@ For running all tests, take the following steps:
|
|||||||
```bash
|
```bash
|
||||||
cargo test --all --no-default-features --features swc_v1
|
cargo test --all --no-default-features --features swc_v1
|
||||||
```
|
```
|
||||||
|
|
||||||
Or
|
Or
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cargo test --all --no-default-features --features swc_v2
|
cargo test --all --no-default-features --features swc_v2
|
||||||
```
|
```
|
||||||
|
|
||||||
## Running tests per package
|
## Running tests per package
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user