rebuiltron 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -12
- package/createDevServer.js +1 -1
- package/helpers/logger.js +1 -1
- package/helpers/spinnies.js +1 -1
- package/loaders/javascript.js +3 -1
- package/package.json +6 -7
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ Rebuiltron uses webpack with [SWC](https://swc.rs/) to compile JavaScript instea
|
|
|
22
22
|
- Support for React, JSX, SASS, ICSS
|
|
23
23
|
|
|
24
24
|
> [!WARNING]
|
|
25
|
-
> Rebuiltron **doesn't support**:
|
|
25
|
+
> Rebuiltron **doesn't support**: TypeScript, Flow, CSS Modules, Jest, and proxying.
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
## Installation
|
|
@@ -41,14 +41,14 @@ The following documentation assume you already have a basic knowledge of how to
|
|
|
41
41
|
|
|
42
42
|
Rebuiltron expects the following folder structure:
|
|
43
43
|
|
|
44
|
-
```
|
|
44
|
+
```shell
|
|
45
45
|
my-app
|
|
46
46
|
├── electron/
|
|
47
|
-
│ └──
|
|
47
|
+
│ └── # Main and preload files
|
|
48
48
|
├── public/
|
|
49
|
-
│ └──
|
|
49
|
+
│ └── # Renderer HTML file(s)
|
|
50
50
|
├── src/
|
|
51
|
-
│ └──
|
|
51
|
+
│ └── # Renderer JS file(s)
|
|
52
52
|
└── package.json
|
|
53
53
|
```
|
|
54
54
|
|
|
@@ -91,12 +91,14 @@ At the root of your project, create a `rebuiltron.config.js` file.
|
|
|
91
91
|
|
|
92
92
|
| Option | Type | Required | Description |
|
|
93
93
|
| --- | :---: | :---: | --- |
|
|
94
|
-
| `renderers` | `object` |
|
|
95
|
-
| `preloads` | `object` |
|
|
96
|
-
| `sassOptions` | `object` |
|
|
97
|
-
| `sassOptions.additionalData` | `object` |
|
|
98
|
-
| `sassOptions.additionalData.data` | `string` |
|
|
99
|
-
| `sassOptions.additionalData.exclude` | `Regex` |
|
|
94
|
+
| `renderers` | `object` | ✓ | Renderer entries. It takes the name of the entries as keys and their paths as values. |
|
|
95
|
+
| `preloads` | `object` | ✓ | Preload entries. It takes the name of the entries as keys and their paths as values. |
|
|
96
|
+
| `sassOptions` | `object` | ✗ | Custom SASS options for `sass-loader`. |
|
|
97
|
+
| `sassOptions.additionalData` | `object` | ✗* | Configuration of `additionalData`. |
|
|
98
|
+
| `sassOptions.additionalData.data` | `string` | ✗* | Data to prepend to SASS files. |
|
|
99
|
+
| `sassOptions.additionalData.exclude` | `Regex` | ✗* | Regex matching the files to exclude from `additionalData`. This is necessary to prevent an `@import loop` error. |
|
|
100
|
+
|
|
101
|
+
<sup>*Required when `sassOptions` is defined.</sup>
|
|
100
102
|
|
|
101
103
|
#### Example:
|
|
102
104
|
|
|
@@ -150,4 +152,4 @@ yarn build
|
|
|
150
152
|
I made Rebuiltron specifically for a project of mine, and for that reason, **I have no plans to add new features nor to accept contributions**, unless required for this project in particular. If you wish to use Rebuiltron but need something that is not available in the current configuration, please feel free to create a fork and change the code to your needs.
|
|
151
153
|
|
|
152
154
|
## License
|
|
153
|
-
MIT
|
|
155
|
+
MIT
|
package/createDevServer.js
CHANGED
|
@@ -5,7 +5,7 @@ const fs = require("fs");
|
|
|
5
5
|
const webpack = require("webpack");
|
|
6
6
|
const WebpackDevServer = require("webpack-dev-server");
|
|
7
7
|
const clearConsole = require("react-dev-utils/clearConsole");
|
|
8
|
-
const { bold } = require("
|
|
8
|
+
const { bold } = require("chalk");
|
|
9
9
|
|
|
10
10
|
const webpackConfig = require("./webpack.config");
|
|
11
11
|
const devServerConfig = require("./webpackDevServer.config");
|
package/helpers/logger.js
CHANGED
package/helpers/spinnies.js
CHANGED
|
@@ -2,6 +2,6 @@ const Spinnies = require("spinnies");
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
let spinnies = null;
|
|
5
|
-
spinnies ??= new Spinnies({ spinnerColor: "
|
|
5
|
+
spinnies ??= new Spinnies({ spinnerColor: "cyanBright", color: "blue", succeedColor: "white" });
|
|
6
6
|
|
|
7
7
|
module.exports = spinnies;
|
package/loaders/javascript.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rebuiltron",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"author": "Arkellys",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -13,12 +13,11 @@
|
|
|
13
13
|
"eslint-config-arklint": "^1.0.2"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.
|
|
17
|
-
"@svgr/webpack": "^8.0
|
|
18
|
-
"@swc/core": "^1.3.
|
|
16
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
|
|
17
|
+
"@svgr/webpack": "^8.1.0",
|
|
18
|
+
"@swc/core": "^1.3.81",
|
|
19
19
|
"browserslist": "^4.18.1",
|
|
20
20
|
"case-sensitive-paths-webpack-plugin": "^2.4.0",
|
|
21
|
-
"colorette": "^2.0.20",
|
|
22
21
|
"copy-webpack-plugin": "^11.0.0",
|
|
23
22
|
"css-loader": "^6.5.1",
|
|
24
23
|
"css-minimizer-webpack-plugin": "^5.0.1",
|
|
@@ -27,11 +26,11 @@
|
|
|
27
26
|
"html-webpack-plugin": "^5.5.0",
|
|
28
27
|
"lodash": "^4.17.21",
|
|
29
28
|
"mini-css-extract-plugin": "^2.4.5",
|
|
30
|
-
"postcss": "^8.4.
|
|
29
|
+
"postcss": "^8.4.29",
|
|
31
30
|
"postcss-flexbugs-fixes": "^5.0.2",
|
|
32
31
|
"postcss-loader": "^7.3.3",
|
|
33
32
|
"postcss-normalize": "^10.0.1",
|
|
34
|
-
"postcss-preset-env": "^9.1.
|
|
33
|
+
"postcss-preset-env": "^9.1.2",
|
|
35
34
|
"react-dev-utils": "^12.0.1",
|
|
36
35
|
"react-refresh": "^0.14.0",
|
|
37
36
|
"resolve-url-loader": "^5.0.0",
|