Skip to content

Commit 65b2083

Browse files
committed
small change
1 parent c6dcce5 commit 65b2083

File tree

37 files changed

+32
-11
lines changed

37 files changed

+32
-11
lines changed

README.md

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,29 @@
22

33
# 统一事项
44

5-
- 尽量使用yarn安装 --> 不需要更换路径重新安装依赖
5+
- 尽量使用yarn安装 --> 不需要因为更换路径而重新安装依赖
66
- 打包目录统一为dist
7-
- 命名格式
7+
- 工程命名格式
8+
9+
```
10+
构建工具v
11+
+ js-framework
12+
+ UI/技术特点
13+
+ author
14+
+ 应用场景(h5/pc/IE?)
15+
+ mpa/spa
16+
```
17+
818
- 尽量带UI示范,没有UI的加`simple`标识
19+
- 命令
20+
21+
```shell
22+
# 开发
23+
npm run dev/serve
24+
25+
# 打包
26+
npm run build/dist
27+
```
928

1029
# TODO
1130

@@ -39,9 +58,10 @@
3958
以下操作仅当遇到坑的时候考虑一下, 不确定😂
4059
```
4160

42-
- 不要用nvm切换版本 --> 可能环境上有点问题
43-
- node版本可以降到 v8.9.0 -> 可能webpack与版本有关
44-
- 安装依赖时Proxy
61+
- yarn/npm/cnpm install 都试试看
62+
- 用nvm切换版本之后, 环境上也许并没有彻底切换过来 --> nodejs重装
63+
- nodejs也许可以降到 v8.9.0 -> 可能webpack与node.js版本有关
64+
- 安装依赖时记得翻墙Proxy
4565
- 不要用IDEA的命令行按钮直接运行 -> 可能有坑
4666

4767

_react14/webpack1-react14-rc-tanggd7-ie8-spa/.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ typings/
5757
# dotenv environment variables file
5858
.env
5959

60-
build/
60+
#build/
61+
dist/
6162
.vscode/
62-
.sonarlint/
63+
.sonarlint/

_react14/webpack1-react14-rc-tanggd7-ie8-spa/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## 兼容 ie8 的 React 脚手架
22

33
### 程序命令
4+
45
- npm install 安装依赖
56
- npm run dev 开发模式(热加载)
67
- npm run build 项目打包

_react14/webpack1-react14-rc-tanggd7-ie8-spa/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
"license": "MIT",
77
"scripts": {
88
"install": "npm install",
9-
"install:yarn": "yarn install",
109
"remove": "rimraf node_modules",
11-
"preview": "serve -s dist -p 9567",
10+
"preview": "serve -s dist -p 9527",
1211

1312
"dev": "node ./script/dev.js",
1413
"build": "node ./script/build.js",

_react14/webpack1-react14-rc-tanggd7-ie8-spa/script/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const webpackConfig = webpackMerge(basicConfig, {
4444
copyUnmodified: true,
4545
}),
4646
// 清理dist文件夹
47-
new CleanWebpackPlugin(['build'], {
47+
new CleanWebpackPlugin(['dist'], {
4848
root: paths.appRoot,
4949
verbose: false,
5050
}),

_react14/webpack1-react14-rc-tanggd7-ie8-spa/script/paths.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const path = require('path');
33
module.exports = {
44
appRoot: path.resolve(__dirname, '../'),
55
appSrc: path.resolve(__dirname, '../src'),
6-
appBuild: path.resolve(__dirname, '../build'),
6+
appBuild: path.resolve(__dirname, '../dist'),
77
appDev: path.resolve(__dirname, '../dev'),
88
appCommunal: path.resolve(__dirname, '../src/components/communal'),
99
appStatic: path.resolve(__dirname, '../src/static'),

_react14/webpack1-react-family-simple-brickspert-ie8-spa/.babelrc renamed to _react14/webpack1-react14-simple-brickspert-ie8-spa/.babelrc

File renamed without changes.

_react14/webpack1-react-family-simple-brickspert-ie8-spa/README.MD renamed to _react14/webpack1-react14-simple-brickspert-ie8-spa/README.MD

File renamed without changes.

_react14/webpack1-react-family-simple-brickspert-ie8-spa/package-lock.json renamed to _react14/webpack1-react14-simple-brickspert-ie8-spa/package-lock.json

File renamed without changes.

_react14/webpack1-react-family-simple-brickspert-ie8-spa/package.json renamed to _react14/webpack1-react14-simple-brickspert-ie8-spa/package.json

File renamed without changes.

0 commit comments

Comments
 (0)