@stanlemon/webdev 0.1.29 → 0.1.32
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/dist/index.html +1 -1
- package/dist/main.6a79c17ed660f2b389e6.js +28 -0
- package/dist/{react.406831a22cb2c6643529.js → react.ecb98e70ee6f572ad49a.js} +11 -1
- package/dist/{vendors.7c237aa4917b41a23780.js → vendors.23ff086c3836001c3436.js} +58 -28
- package/package.json +15 -8
- package/test.tsx +5 -2
- package/tsconfig.json +4 -1
- package/webpack.config.js +2 -0
- package/dist/main.6f5ba670f2a14d925423.js +0 -28
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stanlemon/webdev",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.32",
|
|
4
4
|
"description": "My typical web development setup, but without all the copy and paste.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"@stanlemon/eslint-config": "*",
|
|
29
29
|
"@testing-library/dom": "^8.13.0",
|
|
30
30
|
"@testing-library/jest-dom": "^5.16.4",
|
|
31
|
-
"@testing-library/react": "^13.
|
|
32
|
-
"@testing-library/user-event": "^14.0
|
|
31
|
+
"@testing-library/react": "^13.1.1",
|
|
32
|
+
"@testing-library/user-event": "^14.1.0",
|
|
33
33
|
"@types/jest": "^27.4.1",
|
|
34
|
-
"@types/react": "^18.0.
|
|
35
|
-
"@types/react-dom": "^18.0.
|
|
34
|
+
"@types/react": "^18.0.5",
|
|
35
|
+
"@types/react-dom": "^18.0.1",
|
|
36
36
|
"@types/webpack": "^5.28.0",
|
|
37
|
-
"@types/webpack-env": "^1.16.
|
|
37
|
+
"@types/webpack-env": "^1.16.4",
|
|
38
38
|
"babel-jest": "^27.5.1",
|
|
39
39
|
"babel-loader": "^8.2.4",
|
|
40
40
|
"clean-webpack-plugin": "^4.0.0",
|
|
@@ -46,8 +46,6 @@
|
|
|
46
46
|
"less": "^4.1.2",
|
|
47
47
|
"less-loader": "^10.2.0",
|
|
48
48
|
"prettier": "^2.6.2",
|
|
49
|
-
"react": "^18.0.0",
|
|
50
|
-
"react-dom": "^18.0.0",
|
|
51
49
|
"react-refresh": "^0.12.0",
|
|
52
50
|
"style-loader": "^3.3.1",
|
|
53
51
|
"typescript": "^4.6.3",
|
|
@@ -55,5 +53,14 @@
|
|
|
55
53
|
"webpack-bundle-analyzer": "^4.5.0",
|
|
56
54
|
"webpack-cli": "^4.9.2",
|
|
57
55
|
"webpack-dev-server": "^4.8.1"
|
|
56
|
+
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@types/react-dom": "^18.0.1",
|
|
59
|
+
"react": "^18.0.0",
|
|
60
|
+
"react-dom": "^18.0.0"
|
|
61
|
+
},
|
|
62
|
+
"peerDependencies": {
|
|
63
|
+
"react": ">=17.0.0",
|
|
64
|
+
"react-dom": ">=17.0.0"
|
|
58
65
|
}
|
|
59
66
|
}
|
package/test.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { createRoot } from "react-dom/client";
|
|
2
2
|
|
|
3
3
|
type Props = {
|
|
4
4
|
name: string;
|
|
@@ -8,4 +8,7 @@ function App({ name }: Props) {
|
|
|
8
8
|
return <div>Hello {name}!</div>;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
const root = createRoot(
|
|
12
|
+
document.body.appendChild(document.createElement("div"))
|
|
13
|
+
);
|
|
14
|
+
root.render(<App name="world" />);
|
package/tsconfig.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
+
"noEmit": true,
|
|
3
4
|
"target": "esnext",
|
|
4
5
|
"lib": [
|
|
5
6
|
"dom",
|
|
6
7
|
"dom.iterable",
|
|
7
8
|
"esnext"
|
|
8
9
|
],
|
|
10
|
+
"sourceMap": true,
|
|
11
|
+
"declaration": true,
|
|
12
|
+
"declarationMap": true,
|
|
9
13
|
"allowJs": true,
|
|
10
14
|
"esModuleInterop": true,
|
|
11
15
|
"allowSyntheticDefaultImports": true,
|
|
@@ -17,7 +21,6 @@
|
|
|
17
21
|
"moduleResolution": "node",
|
|
18
22
|
"resolveJsonModule": true,
|
|
19
23
|
"isolatedModules": true,
|
|
20
|
-
"noEmit": true,
|
|
21
24
|
"jsx": "react-jsx"
|
|
22
25
|
}
|
|
23
26
|
}
|
package/webpack.config.js
CHANGED
|
@@ -22,6 +22,7 @@ const WEBDEV_HTML = process.env.WEBDEV_HTML ?? "./index.html";
|
|
|
22
22
|
// Proxy path's can be designated as path@host, separated by semi-colons
|
|
23
23
|
// For example /api@http://localhost:3000;/auth@http://localhost:4000
|
|
24
24
|
const WEBDEV_PROXY = process.env.WEBDEV_PROXY ?? "";
|
|
25
|
+
const WEBPACK_PUBLIC_PATH = process.env.WEBPACK_PUBLIC_PATH ?? "/";
|
|
25
26
|
const NODE_ENV = process.env.NODE_ENV ?? "development";
|
|
26
27
|
|
|
27
28
|
const proxy = {};
|
|
@@ -42,6 +43,7 @@ export default {
|
|
|
42
43
|
output: {
|
|
43
44
|
filename: "[name].[contenthash].js",
|
|
44
45
|
path: path.resolve("./", "dist"),
|
|
46
|
+
publicPath: WEBPACK_PUBLIC_PATH,
|
|
45
47
|
},
|
|
46
48
|
devtool: isDevelopment ? "eval-source-map" : "source-map",
|
|
47
49
|
devServer: {
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* ATTENTION: An "eval-source-map" devtool has been used.
|
|
4
|
-
* This devtool is neither made for production nor for readable output files.
|
|
5
|
-
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
|
|
6
|
-
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
7
|
-
* or disable the default devtool with "devtool: false".
|
|
8
|
-
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
9
|
-
*/
|
|
10
|
-
(self["webpackChunk_stanlemon_webdev"] = self["webpackChunk_stanlemon_webdev"] || []).push([["main"],{
|
|
11
|
-
|
|
12
|
-
/***/ 8945:
|
|
13
|
-
/*!******************!*\
|
|
14
|
-
!*** ./test.tsx ***!
|
|
15
|
-
\******************/
|
|
16
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17
|
-
|
|
18
|
-
eval("var _home_runner_work_javascript_javascript_node_modules_react_refresh_runtime_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache;\n__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _home_runner_work_javascript_javascript_node_modules_react_refresh_runtime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../node_modules/react-refresh/runtime.js */ 9139);\n/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ 8316);\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ 2322);\n/* provided dependency */ var __react_refresh_utils__ = __webpack_require__(/*! ../../node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/runtime/RefreshUtils.js */ 5506);\n\n__webpack_require__.$Refresh$.runtime = /*#__PURE__*/ (_home_runner_work_javascript_javascript_node_modules_react_refresh_runtime_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache || (_home_runner_work_javascript_javascript_node_modules_react_refresh_runtime_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache = __webpack_require__.t(_home_runner_work_javascript_javascript_node_modules_react_refresh_runtime_js__WEBPACK_IMPORTED_MODULE_0__, 2)));\n\n\n\n\n\nfunction App({\n name\n}) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(\"div\", {\n children: [\"Hello \", name, \"!\"]\n });\n}\n\n_c = App;\nreact_dom__WEBPACK_IMPORTED_MODULE_1__.render( /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(App, {\n name: \"world\"\n}), document.getElementById(\"root\"));\n\nvar _c;\n\n__webpack_require__.$Refresh$.register(_c, \"App\");\n\nconst $ReactRefreshModuleId$ = __webpack_require__.$Refresh$.moduleId;\nconst $ReactRefreshCurrentExports$ = __react_refresh_utils__.getModuleExports(\n\t$ReactRefreshModuleId$\n);\n\nfunction $ReactRefreshModuleRuntime$(exports) {\n\tif (false) {}\n}\n\nif (typeof Promise !== 'undefined' && $ReactRefreshCurrentExports$ instanceof Promise) {\n\t$ReactRefreshCurrentExports$.then($ReactRefreshModuleRuntime$);\n} else {\n\t$ReactRefreshModuleRuntime$($ReactRefreshCurrentExports$);\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiODk0NS5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQTs7OztBQU1BLFNBQVNDLEdBQVQsQ0FBYTtBQUFFQztBQUFGLENBQWIsRUFBOEI7QUFDNUIsc0JBQU87QUFBQSx5QkFBWUEsSUFBWjtBQUFBLElBQVA7QUFDRDs7S0FGUUQ7QUFJVEQsNkNBQUEsZUFBZ0IsdURBQUMsR0FBRDtBQUFLLE1BQUksRUFBQztBQUFWLEVBQWhCLEVBQXNDSSxRQUFRLENBQUNDLGNBQVQsQ0FBd0IsTUFBeEIsQ0FBdEMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9Ac3RhbmxlbW9uL3dlYmRldi8uL3Rlc3QudHN4P2ZhYTciXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0RE9NIGZyb20gXCJyZWFjdC1kb21cIjtcblxudHlwZSBQcm9wcyA9IHtcbiAgbmFtZTogc3RyaW5nO1xufTtcblxuZnVuY3Rpb24gQXBwKHsgbmFtZSB9OiBQcm9wcykge1xuICByZXR1cm4gPGRpdj5IZWxsbyB7bmFtZX0hPC9kaXY+O1xufVxuXG5SZWFjdERPTS5yZW5kZXIoPEFwcCBuYW1lPVwid29ybGRcIiAvPiwgZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoXCJyb290XCIpKTtcbiJdLCJuYW1lcyI6WyJSZWFjdERPTSIsIkFwcCIsIm5hbWUiLCJyZW5kZXIiLCJkb2N1bWVudCIsImdldEVsZW1lbnRCeUlkIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///8945\n");
|
|
19
|
-
|
|
20
|
-
/***/ })
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
/******/ __webpack_require__ => { // webpackRuntimeModules
|
|
24
|
-
/******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
|
|
25
|
-
/******/ __webpack_require__.O(0, ["react-node_modules_react-dom_index_js-node_modules_react-refresh_runtime_js-node_modules_reac-b15b54","vendors"], () => (__webpack_exec__(794), __webpack_exec__(6101), __webpack_exec__(8945)));
|
|
26
|
-
/******/ var __webpack_exports__ = __webpack_require__.O();
|
|
27
|
-
/******/ }
|
|
28
|
-
]);
|