Skip to content

Commit

Permalink
chore: daily development
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtao25 committed Dec 19, 2024
1 parent 0e5e4c5 commit 4b515a5
Show file tree
Hide file tree
Showing 311 changed files with 12,709 additions and 20,009 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

root = true

[*]
{*.js,*.ts,*.jsx,*.tsx,*mjs}
indent_style = space
indent_size = 2
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
Expand Down
38 changes: 0 additions & 38 deletions .github/workflows/generate-package-lock.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/publish-babel-plugin-canyon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: pnpm install
- run: pnpm --filter=babel-plugin-canyon publish -f --no-git-checks --access=public --filter || echo "Version already published. Skipping."
- run: pnpm --filter=babel-plugin-canyon publish -f --no-git-checks --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
- run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-canyon-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ jobs:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: pnpm install
- run: pnpm --filter=canyon-data publish -f --no-git-checks --access=public --filter || echo "Version already published. Skipping."
- run: pnpm --filter=canyon-data publish -f --no-git-checks --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
2 changes: 1 addition & 1 deletion .github/workflows/publish-canyon-map.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ jobs:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: pnpm install
- run: pnpm --filter=canyon-map publish -f --no-git-checks --access=public --filter || echo "Version already published. Skipping."
- run: pnpm --filter=canyon-map publish -f --no-git-checks --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
2 changes: 1 addition & 1 deletion .github/workflows/publish-canyon-uploader.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ jobs:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: pnpm install
- run: pnpm --filter=canyon-uploader publish -f --no-git-checks --access=public --filter || echo "Version already published. Skipping."
- run: pnpm --filter=canyon-uploader publish -f --no-git-checks --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
2 changes: 1 addition & 1 deletion .github/workflows/publish-swc-plugin-canyon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
id: changesets
uses: changesets/action@v1
with:
publish: pnpm --filter=swc-plugin-canyon publish -f --no-git-checks --access=public --filter || echo "Version already published. Skipping."
publish: pnpm --filter=swc-plugin-canyon publish -f --no-git-checks --access=public
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ target/
#Cargo.lock

.turbo
#pnpm-lock.yaml
pnpm-lock.yaml
14 changes: 2 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,11 @@
"author": "[email protected]",
"license": "MIT",
"scripts": {
"build": "turbo build",
"build:report": "turbo build:report",
"start:platform": "turbo start:platform",
"dev": "turbo dev",
"build": "pnpm -r do-build",
"clean": "node ./scripts/clean.mjs",
"preinstall": "node ./scripts/check.mjs && node ./scripts/prisma.mjs"
},
"packageManager": "[email protected]",
"devDependencies": {
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"fs-extra": "^11.2.0",
"husky": "^9.1.6",
"turbo": "latest",
"typescript": "latest",
"pnpm": "latest"
"fs-extra": "^11.2.0"
}
}
25 changes: 25 additions & 0 deletions packages/canyon-backend/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
project: "tsconfig.json",
tsconfigRootDir: __dirname,
sourceType: "module",
},
plugins: ["@typescript-eslint/eslint-plugin"],
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
],
root: true,
env: {
node: true,
jest: true,
},
ignorePatterns: [".eslintrc.js"],
rules: {
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
},
};
43 changes: 43 additions & 0 deletions packages/canyon-backend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# compiled output
/dist
/node_modules

# Logs
logs
*.log
npm-debug.log*
pnpm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# OS
.DS_Store

# Tests
/coverage
/.nyc_output

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

db/sql

public

!schema.gql

prisma/schema.prisma
3 changes: 3 additions & 0 deletions packages/canyon-backend/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"tabWidth": 4
}
8 changes: 8 additions & 0 deletions packages/canyon-backend/nest-cli.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://json.schemastore.org/nest-cli",
"collection": "@nestjs/schematics",
"sourceRoot": "src",
"compilerOptions": {
"deleteOutDir": true
}
}
97 changes: 97 additions & 0 deletions packages/canyon-backend/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{
"name": "canyon-backend",
"version": "0.0.0",
"description": "",
"private": true,
"scripts": {
"do-build": "prisma generate && nest build",
"start": "nest start",
"dev-backend": "nest start --watch",
"preinstall": "prisma generate && nest build",
"format": "prettier --write '**/*.{js,ts,jsx,tsx}'",
"do-test": "jest"
},
"dependencies": {
"@mongodb-js/zstd": "^1.2.2",
"@nestjs/apollo": "^12.2.1",
"@nestjs/common": "^10.4.9",
"@nestjs/config": "^3.3.0",
"@nestjs/core": "^10.4.9",
"@nestjs/graphql": "^12.2.1",
"@nestjs/jwt": "^10.2.0",
"@nestjs/passport": "^10.0.3",
"@nestjs/platform-express": "^10.4.9",
"@nestjs/schedule": "^4.1.1",
"@nestjs/serve-static": "^4.0.2",
"@nestjs/typeorm": "^10.0.2",
"@prisma/client": "5.16.1",
"axios": "^1.7.8",
"body-parser": "^1.20.3",
"canyon-data": "^2.0.0-beta.6",
"canyon-map": "^2.0.0-beta.5",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"dayjs": "^1.11.13",
"diff": "^7.0.0",
"dotenv": "^16.4.5",
"express": "^4.21.1",
"graphql": "^16.9.0",
"istanbul-lib-coverage": "^3.2.2",
"istanbul-lib-report": "^3.0.1",
"istanbul-lib-source-maps": "^5.0.6",
"istanbul-reports": "^3.1.7",
"passport-jwt": "^4.0.1",
"passport-local": "^1.0.0",
"prisma": "5.16.1",
"protobufjs": "^7.4.0",
"reflect-metadata": "^0.2.2",
"rxjs": "^7.8.1",
"sqlite3": "^5.1.7",
"test-exclude": "^7.0.1",
"typeorm": "^0.3.20",
"zod": "^3.23.8"
},
"devDependencies": {
"@nestjs/cli": "^10.4.8",
"@nestjs/schematics": "^10.2.3",
"@types/express": "^5.0.0",
"@types/istanbul-lib-coverage": "^2.0.6",
"@types/istanbul-lib-source-maps": "^4.0.4",
"@types/jest": "^29.5.14",
"@types/node": "^22.10.0",
"@types/test-exclude": "^6.0.2",
"@typescript-eslint/eslint-plugin": "^8.16.0",
"@typescript-eslint/parser": "^8.16.0",
"ejs": "^3.1.10",
"eslint": "^9.15.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"jest": "^29.7.0",
"prettier": "^3.4.1",
"source-map-support": "^0.5.21",
"ts-jest": "^29.2.5",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.7.2"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"preset": "ts-jest",
"clearMocks": true,
"collectCoverage": true,
"coverageDirectory": "coverage",
"coverageProvider": "v8",
"rootDir": "test",
"moduleNameMapper": {
"^src/(.*)$": "<rootDir>/$1"
},
"transform": {
"^.+\\.(t|j)sx?$": "@swc/jest"
}
}
}
Loading

0 comments on commit 4b515a5

Please sign in to comment.