Skip to content

Commit

Permalink
♥️Overall upgrade of scaffolding and dependencies, adapting to node18+
Browse files Browse the repository at this point in the history
* New: Tested in Node 18+ & npm 9+ environment, fixed commands in documentation.
* Fix: Upgrade webpack to solve its compatibility with `file-loader`.
* Tweak: Reorganize all dependencies, update to new version.
* Tweak: Performance and stability improvements under the new system.
* Tweak: Updated old sass code
  • Loading branch information
xizon committed Mar 9, 2023
1 parent 1559bce commit 8c7d565
Show file tree
Hide file tree
Showing 185 changed files with 16,425 additions and 23,234 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Changelog

#### = 5.0.0 (March 9, 2023) =

* New: Tested in Node 18+ & npm 9+ environment, fixed commands in documentation.
* Fix: Upgrade webpack to solve its compatibility with `file-loader`.
* Tweak: Reorganize all dependencies, update to new version.
* Tweak: Performance and stability improvements under the new system.
* Tweak: Updated old sass code

#### = 4.7.2 (November 27, 2022) =

Expand Down
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,25 @@ $ cd /{your_directory}/uix-kit
**Step 3.** Before doing all dev stuff make sure you have `Node 10+` installed. After that, run the following code in the main directory to install the node module dependencies.

```sh
$ sudo npm install
$ npm install
```
or

<blockquote>
The current test environment is `Node 18+`, `npm 9+`. If dependency installation fails ( Usually it is because you have upgraded your Nodejs version, currently tested to Node 18+ ), maybe the new version of npm will conflict with the old version of npm, please use following command to install dependencies:

```sh
$ sudo npm install --only=dev --unsafe-perm --production
$ npm install --legacy-peer-deps
```

If the installation still fails, please use this method: remove **devDependencies** in `package.json`, and reinstall dependencies:

```sh
$ npm install --save-dev @babel/core @babel/plugin-proposal-class-properties @babel/plugin-transform-runtime @babel/polyfill @babel/preset-env @babel/preset-flow @babel/preset-react @babel/preset-typescript babel-loader babel-plugin-module-resolver clean-webpack-plugin cross-env css-loader css-minimizer-webpack-plugin express file-loader glslify-loader html-loader include-file-webpack-plugin json-loader log-timestamp mini-css-extract-plugin moment sass postcss prettier prettier-loader random-string raw-loader react react-dom sass-loader style-loader tar terser-webpack-plugin webpack webpack-cli webpack-concat-files-plugin webpack-dev-middleware webpack-dev-server
```
</blockquote>





**Step 4.** When you’re ready to deploy to production, create a minified bundle with:
Expand Down
17 changes: 10 additions & 7 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ uix-kit/
**Step 1.** 使用 NPM(找到您当前的项目目录,然后输入以下命令), 或从 [Github]https://github.com/xizon/uix-kit)下载最新版本。

```sh
$ sudo npm install uix-kit
$ npm install uix-kit
```

Or clone the repo to get all source files including build scripts:
Expand All @@ -179,14 +179,17 @@ $ cd /{your_directory}/uix-kit
```


**Step 3.** 安装开发环境
**Step 3.** 在进行所有开发工作之前,请确保您已安装 `Node 10+`(当前测试环境为 `Node 18+``npm 9+`)。 之后,在主目录中运行以下代码来安装节点模块依赖项。

```sh
$ sudo npm install
$ npm install
```
or


如果依赖安装失败(一般是你升级了Nodejs版本,目前测试到Node 18+),可能是新版本的npm和旧版本的npm冲突,请使用如下命令安装依赖:

```sh
$ sudo npm install --only=dev --unsafe-perm --production
$ npm install --legacy-peer-deps
```


Expand Down Expand Up @@ -272,8 +275,8 @@ $ npm install [email protected]
**e) 如果升级Node版本,请执行以下代码:**

```sh
$ sudo npm install
$ sudo npm rebuild node-sass
$ npm install
$ npm rebuild node-sass
```


Expand Down
Loading

0 comments on commit 8c7d565

Please sign in to comment.