Skip to content

Commit

Permalink
docs: add readme with development instructions for next/swc (#43834)
Browse files Browse the repository at this point in the history
* Creating the readme for me `@next/swc` with basic development
instructions
* Adding instructions for testing and updating the `next/swc` tests


## Documentation

- [x] Make sure the linting passes by running `pnpm build && pnpm lint`
  • Loading branch information
huozhi committed Dec 8, 2022
1 parent 98cb254 commit a6714d3
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions packages/next-swc/README.md
@@ -0,0 +1,26 @@
# `@next/swc`

This package is responsible for swc compilation customized for next.js

### Development

Run tests

```sh
cargo test

# Update snapshots and fixtures for tests
UPDATE=1 cargo test
```

Format code before submitting code

```
cargo fmt
```

Build the binary to integrate with next.js

```
pnpm build-native
```

0 comments on commit a6714d3

Please sign in to comment.