Skip to content

Commit fedbe0b

Browse files
committed
chore: update configs
1 parent 71bba4f commit fedbe0b

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<div style="width: 100%; height: 300px; display: flex; justify-content: center; align-items: center; margin: 32px 0; background: RGBA(249, 249, 249, 1.00);">
2-
<img src="./icon.png"/>
3-
</div>
1+
<div align="center">
42

5-
<h1 style="text-align: center;">react-intl-linter💡</h1>
3+
![](./icon.png)
4+
# react-intl-linter💡
5+
自动替换中文字符串为 react-intl 代码的 VS Code 插件
66

7-
<p style="text-align: center;">自动替换中文字符串为 react-intl 代码的 VS Code 插件</p>
7+
</div>
88

99

1010
## 功能

package.json

+2-6
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,8 @@
2626
},
2727
"main": "./client/out/extension",
2828
"scripts": {
29-
"vscode:prepublish": "npm run webpack",
30-
"webpack": "npm run clean && webpack --mode production --config ./client/webpack.config.js && webpack --mode production --config ./server/webpack.config.js",
31-
"webpack:dev": "npm run clean && webpack --mode none --config ./client/webpack.config.js && webpack --mode none --config ./server/webpack.config.js",
32-
"compile": "rimraf server/out && rimraf client/out && tsc -b",
33-
"compile:client": "tsc -b ./client/tsconfig.json",
34-
"compile:server": "tsc -b ./server/tsconfig.json",
29+
"vscode:prepublish": "yarn compile",
30+
"compile": "rimraf server/out && rimraf client/out && tsc -b && cp -r server/out client/out/server && cp -r server/node_modules client/out/server/node_modules",
3531
"watch": "tsc -b -w",
3632
"lint": "npm run lint:client && npm run lint:server",
3733
"lint:client": "eslint --config ./client/.eslintrc.json ./client/src/*.ts",

0 commit comments

Comments
 (0)