@nickaux/form-configurator 1.1.191 → 1.1.192
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/.lh/package/vite.config.js.json +18 -0
- package/.lh/package.json.json +21 -1
- package/.lh/vite.config.js.json +18 -0
- package/build.js +44 -0
- package/dist/FormConfigurator.cjs +18 -16
- package/dist/FormConfigurator.cjs.map +1 -0
- package/dist/FormConfigurator.css +2 -0
- package/dist/FormConfigurator.css.map +1 -0
- package/dist/FormConfigurator.esm.js +22 -0
- package/dist/FormConfigurator.esm.js.map +1 -0
- package/dist/FormConfigurator.modern.js +20 -18
- package/dist/FormConfigurator.modern.js.map +1 -0
- package/dist/FormConfigurator.umd.js +22 -20
- package/dist/FormConfigurator.umd.js.map +1 -0
- package/package/vite.config.js +8 -21
- package/package.json +15 -16
- package/serve.js +48 -0
- package/vite.config.js +8 -21
package/package/vite.config.js
CHANGED
|
@@ -1,26 +1,13 @@
|
|
|
1
|
-
import { defineConfig } from 'vite'
|
|
2
|
-
import react from
|
|
3
|
-
import { builtinModules } from
|
|
1
|
+
import { defineConfig } from 'vite';
|
|
2
|
+
import react from '@vitejs/plugin-react';
|
|
3
|
+
import { builtinModules } from 'module';
|
|
4
4
|
|
|
5
|
-
// https://vitejs.dev/config/
|
|
6
5
|
export default defineConfig({
|
|
7
6
|
build: {
|
|
8
7
|
minify: true,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
// },
|
|
8
|
+
rollupOptions: {
|
|
9
|
+
external: ['ace-builds'].concat(builtinModules.filter((m) => !m.startsWith('node:'))),
|
|
10
|
+
},
|
|
13
11
|
},
|
|
14
|
-
plugins: [
|
|
15
|
-
|
|
16
|
-
// NODE_ENV: "production",
|
|
17
|
-
// global: true,
|
|
18
|
-
// }),
|
|
19
|
-
|
|
20
|
-
react(),
|
|
21
|
-
],
|
|
22
|
-
|
|
23
|
-
// esbuild: {
|
|
24
|
-
// logOverride: { "this-is-undefined-in-esm": "silent" },
|
|
25
|
-
// },
|
|
26
|
-
})
|
|
12
|
+
plugins: [react()],
|
|
13
|
+
});
|
package/package.json
CHANGED
|
@@ -1,27 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nickaux/form-configurator",
|
|
3
|
+
"version": "1.1.192",
|
|
3
4
|
"description": "A React form manager",
|
|
4
|
-
"private": false,
|
|
5
|
-
"version": "1.1.191",
|
|
6
|
-
"source": "./src/FormConfigurator/lib.package.js",
|
|
7
5
|
"type": "module",
|
|
8
|
-
"main": "
|
|
9
|
-
"module": "
|
|
10
|
-
"unpkg": "
|
|
6
|
+
"main": "dist/FormConfigurator.cjs.js",
|
|
7
|
+
"module": "dist/FormConfigurator.esm.js",
|
|
8
|
+
"unpkg": "dist/FormConfigurator.umd.js",
|
|
9
|
+
"source": "src/FormConfigurator/lib.package.js",
|
|
11
10
|
"scripts": {
|
|
12
11
|
"dev": "vite",
|
|
13
|
-
"build": "
|
|
12
|
+
"build": "microbundle --jsx React.createElement --css-modules true --no-source-map --compress",
|
|
14
13
|
"preview": "vite preview",
|
|
15
|
-
"
|
|
14
|
+
"update-browserslist": "npx browserslist@latest --update-db",
|
|
15
|
+
"build:publish": "npm run update-browserslist && git add . && git commit -m 'publish_npm' && npm version patch && npm publish",
|
|
16
|
+
"watch": "chokidar \"src/**/*.{js,jsx,ts,tsx}\" -c \"npm run build\""
|
|
17
|
+
},
|
|
18
|
+
"peerDependencies": {
|
|
19
|
+
"react": "^18.0.0",
|
|
20
|
+
"react-dom": "^18.0.0"
|
|
16
21
|
},
|
|
17
22
|
"dependencies": {
|
|
18
23
|
"@yaireo/tagify": "^4.12.0",
|
|
19
24
|
"ace-builds": "^1.23.1",
|
|
20
|
-
"
|
|
25
|
+
"chokidar-cli": "^3.0.0",
|
|
26
|
+
"install": "^0.13.0",
|
|
21
27
|
"jsoneditor": "^9.10.0",
|
|
22
28
|
"jsoneditor-react": "^3.1.2",
|
|
23
|
-
"loose-envify": "^1.4.0",
|
|
24
|
-
"npm": "^8.19.4",
|
|
25
29
|
"quill-delta": "^5.0.0",
|
|
26
30
|
"quill-html-edit-button": "^2.2.12",
|
|
27
31
|
"rc-collapse": "^3.1.1",
|
|
@@ -39,14 +43,9 @@
|
|
|
39
43
|
"worker-loader": "^3.0.8",
|
|
40
44
|
"worker-plugin": "^5.0.1"
|
|
41
45
|
},
|
|
42
|
-
"peerDependencies": {
|
|
43
|
-
"react": "^18.0.0",
|
|
44
|
-
"react-dom": "^18.0.0"
|
|
45
|
-
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@brightcove/react-player-loader": "^1.4.1",
|
|
48
48
|
"@vitejs/plugin-react": "^1.3.0",
|
|
49
|
-
"@vitejs/plugin-react-refresh": "^1.3.6",
|
|
50
49
|
"axios": "^0.27.2",
|
|
51
50
|
"deepmerge": "^4.2.2",
|
|
52
51
|
"firebase": "^9.8.4",
|
package/serve.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Live Reloading MVP:
|
|
3
|
+
* https://github.com/zaydek/esbuild-hot-reload/blob/master/serve.js
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
const { build } = require("esbuild");
|
|
7
|
+
const chokidar = require("chokidar");
|
|
8
|
+
const liveServer = require("live-server");
|
|
9
|
+
|
|
10
|
+
(async () => {
|
|
11
|
+
const builder = await build({
|
|
12
|
+
bundle: true,
|
|
13
|
+
// Defines env variables for bundled JavaScript; here `process.env.NODE_ENV`
|
|
14
|
+
// is propagated with a fallback.
|
|
15
|
+
define: {
|
|
16
|
+
"process.env.NODE_ENV": JSON.stringify(
|
|
17
|
+
process.env.NODE_ENV || "development"
|
|
18
|
+
),
|
|
19
|
+
},
|
|
20
|
+
entryPoints: ["example/src/main.jsx"],
|
|
21
|
+
// Uses incremental compilation (see `chokidar.on`).
|
|
22
|
+
incremental: true,
|
|
23
|
+
// Removes whitespace, etc. depending on `NODE_ENV=...`.
|
|
24
|
+
minify: process.env.NODE_ENV === "production",
|
|
25
|
+
outfile: "public/script.js",
|
|
26
|
+
sourcemap: true,
|
|
27
|
+
});
|
|
28
|
+
// `chokidar` watcher source changes.
|
|
29
|
+
chokidar
|
|
30
|
+
// Watches TypeScript and React TypeScript.
|
|
31
|
+
.watch(["src/**/*.{js,jsx}","example/src/*.{js,jsx}"], {
|
|
32
|
+
interval: 0, // No delay
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
// Rebuilds esbuild (incrementally -- see `build.incremental`).
|
|
36
|
+
.on("all", () => {
|
|
37
|
+
builder.rebuild();
|
|
38
|
+
});
|
|
39
|
+
// `liveServer` local server for hot reload.
|
|
40
|
+
liveServer.start({
|
|
41
|
+
// Opens the local server on start.
|
|
42
|
+
open: true,
|
|
43
|
+
// Uses `PORT=...` or 8080 as a fallback.
|
|
44
|
+
port: +process.env.PORT || 8080,
|
|
45
|
+
// Uses `public` as the local server folder.
|
|
46
|
+
root: "public",
|
|
47
|
+
});
|
|
48
|
+
})();
|
package/vite.config.js
CHANGED
|
@@ -1,26 +1,13 @@
|
|
|
1
|
-
import { defineConfig } from 'vite'
|
|
2
|
-
import react from
|
|
3
|
-
import { builtinModules } from
|
|
1
|
+
import { defineConfig } from 'vite';
|
|
2
|
+
import react from '@vitejs/plugin-react';
|
|
3
|
+
import { builtinModules } from 'module';
|
|
4
4
|
|
|
5
|
-
// https://vitejs.dev/config/
|
|
6
5
|
export default defineConfig({
|
|
7
6
|
build: {
|
|
8
7
|
minify: true,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
// },
|
|
8
|
+
rollupOptions: {
|
|
9
|
+
external: ['ace-builds'].concat(builtinModules.filter((m) => !m.startsWith('node:'))),
|
|
10
|
+
},
|
|
13
11
|
},
|
|
14
|
-
plugins: [
|
|
15
|
-
|
|
16
|
-
// NODE_ENV: "production",
|
|
17
|
-
// global: true,
|
|
18
|
-
// }),
|
|
19
|
-
|
|
20
|
-
react(),
|
|
21
|
-
],
|
|
22
|
-
|
|
23
|
-
// esbuild: {
|
|
24
|
-
// logOverride: { "this-is-undefined-in-esm": "silent" },
|
|
25
|
-
// },
|
|
26
|
-
})
|
|
12
|
+
plugins: [react()],
|
|
13
|
+
});
|