Skip to content

Commit

Permalink
feat: use builder swc
Browse files Browse the repository at this point in the history
  • Loading branch information
9renpoto committed Jul 22, 2023
1 parent e4b7205 commit a0ade66
Show file tree
Hide file tree
Showing 14 changed files with 2,539 additions and 2,863 deletions.
1 change: 0 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
- run: npm test
env:
SLACK_WEBHOOK_URL: https://example.com
CI: true
- uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.github_token }}
22 changes: 22 additions & 0 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"jsc": {
"parser": {
"syntax": "typescript",
"decorators": true,
"dynamicImport": true
},
"target": "es2020",
"keepClassNames": true,
"transform": {
"legacyDecorator": true,
"decoratorMetadata": true
}
},
"sourceMaps": true,
"minify": false,
"module": {
"type": "commonjs",
"noInterop": true
}
}
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

![Actions Status](https://github.com/g59/nestjs-plugins/workflows/Node%20CI/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/g59/nestjs-plugins/badge.svg?branch=main)](https://coveralls.io/github/g59/nestjs-plugins?branch=main)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

## Install

Expand All @@ -21,7 +20,7 @@ This repository is managed as monorepo.

## Usage

npx lerna run start:dev --scope example
npm run start:dev --workspace example

## Contributing

Expand Down
6 changes: 5 additions & 1 deletion example/nest-cli.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"collection": "@nestjs/schematics",
"sourceRoot": "src"
"sourceRoot": "src",
"compilerOptions": {
"builder": "swc",
"typeCheck": true
}
}
3 changes: 2 additions & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"clean": "rimraf dist",
"lint": "tsc -p . --noEmit",
"start": "nest start",
"start:dev": "nest start --watch",
"start:dev": "nest start -b swc --type-check --watch",
"test": "jest"
},
"dependencies": {
Expand All @@ -19,6 +19,7 @@
"@nestjs/apollo": "^12.0.0",
"@nestjs/cli": "^10.0.0",
"@nestjs/config": "^3.0.0",
"@nestjs/graphql": "^12.0.7",
"@nestjs/platform-fastify": "^10.0.0",
"nestjs-firebase": "^10.0.0",
"nestjs-graphql-relay": "^10.0.0",
Expand Down
Loading

0 comments on commit a0ade66

Please sign in to comment.