Skip to content

Commit

Permalink
📝 更正贡献说明
Browse files Browse the repository at this point in the history
  • Loading branch information
neila-a committed Mar 23, 2024
1 parent 970485e commit 86b7c99
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 39 deletions.
7 changes: 3 additions & 4 deletions CONTRIBUTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,17 @@
## Create a new tool

- Write a TSX file in `/tools/`;
- Add to `/components/tools/info.tsx`;
- Add to `/components/tools/component.tsx`.
- Add to `/tools/info.tsx`.

## Add a new language

- Write a JSON file in `/locales/`;
- Add to `/pages/_app.tsx`.
- Add to `/layout/layoutClient.tsx`.

## Make a commit

- Do something;
- `npm run modifyPackage`;
- `npm run predev`;
- Push it to GitHub.

## Criteria
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "verkfi",
"version": "1.6.3",
"devVersion": "811",
"devVersion": "812",
"dev": true,
"description": "Platform for Neila's something useless tools.",
"private": true,
Expand All @@ -19,7 +19,8 @@
"url": "https://neilasite.netlify.app/"
},
"scripts": {
"dev": "npm run build:pb && VERKFI_ENV=dev node prebuild.js && next dev",
"predev": "npm run build:pb && VERKFI_ENV=dev node prebuild.js",
"dev": "npm run predev && next dev",
"prebuild": "npm run build:pb && node prebuild.js",
"build": "npm run prebuild && next build",
"build:pb": "esbuild prebuild.ts --bundle --minify --external:esbuild --platform=node --outfile=prebuild.js",
Expand Down
66 changes: 33 additions & 33 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
{
"compilerOptions": {
"target": "esnext",
"lib": [
"dom",
"dom.iterable",
"esnext",
"WebWorker"
"compilerOptions": {
"target": "esnext",
"lib": [
"dom",
"dom.iterable",
"esnext",
"WebWorker"
],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"incremental": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"plugins": [
{
"name": "next"
}
]
},
"include": [
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"incremental": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"plugins": [
{
"name": "next"
}
"exclude": [
"node_modules"
]
},
"include": [
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
],
"exclude": [
"node_modules"
]
}
}

0 comments on commit 86b7c99

Please sign in to comment.