@nickaux/form-configurator 1.1.190 → 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.module.js +1 -1
- 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
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sourceFile": "package/vite.config.js",
|
|
3
|
+
"activeCommit": 0,
|
|
4
|
+
"commits": [
|
|
5
|
+
{
|
|
6
|
+
"activePatchIndex": 0,
|
|
7
|
+
"patches": [
|
|
8
|
+
{
|
|
9
|
+
"date": 1707322621667,
|
|
10
|
+
"content": "Index: \n===================================================================\n--- \n+++ \n"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"date": 1707322621667,
|
|
14
|
+
"name": "Commit-0",
|
|
15
|
+
"content": "import { defineConfig } from 'vite';\nimport react from '@vitejs/plugin-react';\nimport { builtinModules } from 'module';\n\nexport default defineConfig({\n build: {\n minify: true,\n rollupOptions: {\n external: ['ace-builds'].concat(builtinModules.filter((m) => !m.startsWith('node:'))),\n },\n },\n plugins: [react()],\n});\n"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
package/.lh/package.json.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"activeCommit": 0,
|
|
4
4
|
"commits": [
|
|
5
5
|
{
|
|
6
|
-
"activePatchIndex":
|
|
6
|
+
"activePatchIndex": 6,
|
|
7
7
|
"patches": [
|
|
8
8
|
{
|
|
9
9
|
"date": 1707302740336,
|
|
@@ -12,6 +12,26 @@
|
|
|
12
12
|
{
|
|
13
13
|
"date": 1707302759091,
|
|
14
14
|
"content": "Index: \n===================================================================\n--- \n+++ \n@@ -11,9 +11,9 @@\n \"scripts\": {\n \"dev\": \"vite\",\n \"build\": \"VITE_ENV=production microbundle --jsx=React.createElement --css-module true --css inline --no-sourcemap --no-pretty --define process.env.NODE_ENV=\\\"'production'\\\"\",\n \"preview\": \"vite preview\",\n- \"build:publish\": \"git add . && git commit -m 'publish_npm' && npm version patch && npm publish\",\n+ \"build:publish\": \"git add . && git commit -m 'publish_npm' && npm version patch && npm publish\"\n },\n \"dependencies\": {\n \"@yaireo/tagify\": \"^4.12.0\",\n \"ace-builds\": \"^1.23.1\",\n"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"date": 1707322167103,
|
|
18
|
+
"content": "Index: \n===================================================================\n--- \n+++ \n@@ -1,31 +1,34 @@\n {\n \"name\": \"@nickaux/form-configurator\",\n+ \"version\": \"1.1.191\",\n \"description\": \"A React form manager\",\n- \"private\": false,\n- \"version\": \"1.1.188\",\n- \"source\": \"./src/FormConfigurator/lib.package.js\",\n \"type\": \"module\",\n- \"main\": \"./dist/FormConfigurator.cjs\",\n- \"module\": \"./dist/FormConfigurator.module.js\",\n- \"unpkg\": \"./dist/FormConfigurator.umd.js\",\n+ \"main\": \"dist/FormConfigurator.cjs.js\",\n+ \"module\": \"dist/FormConfigurator.esm.js\",\n+ \"unpkg\": \"dist/FormConfigurator.umd.js\",\n+ \"exports\": {\n+ \".\": {\n+ \"import\": \"./dist/FormConfigurator.esm.js\",\n+ \"require\": \"./dist/FormConfigurator.cjs.js\"\n+ }\n+ },\n \"scripts\": {\n \"dev\": \"vite\",\n- \"build\": \"VITE_ENV=production microbundle --jsx=React.createElement --css-module true --css inline --no-sourcemap --no-pretty --define process.env.NODE_ENV=\\\"'production'\\\"\",\n+ \"build\": \"microbundle --jsx React.createElement --css-modules true --no-source-map --compress\",\n \"preview\": \"vite preview\",\n- \"build:publish\": \"git add . && git commit -m 'publish_npm' && npm version patch && npm publish\"\n+ \"update-browserslist\": \"npx browserslist@latest --update-db\",\n+ \"build:publish\": \"npm run update-browserslist && git add . && git commit -m 'publish_npm' && npm version patch && npm publish\"\n },\n+ \"peerDependencies\": {\n+ \"react\": \"^18.0.0\",\n+ \"react-dom\": \"^18.0.0\"\n+ },\n \"dependencies\": {\n \"@yaireo/tagify\": \"^4.12.0\",\n \"ace-builds\": \"^1.23.1\",\n- \"i\": \"^0.3.7\",\n \"jsoneditor\": \"^9.10.0\",\n \"jsoneditor-react\": \"^3.1.2\",\n- \"loose-envify\": \"^1.4.0\",\n- \"npm\": \"^8.19.4\",\n- \"quill-delta\": \"^5.0.0\",\n- \"quill-html-edit-button\": \"^2.2.12\",\n- \"rc-collapse\": \"^3.1.1\",\n \"react-circular-progressbar\": \"^2.0.4\",\n \"react-dnd\": \"^14.0.2\",\n \"react-dnd-html5-backend\": \"^14.0.0\",\n \"react-draggable\": \"^4.4.5\",\n@@ -33,21 +36,19 @@\n \"react-quill\": \"^2.0.0\",\n \"react-router-dom\": \"^6.3.0\",\n \"react-tabs\": \"^3.2.2\",\n \"react-tag-input\": \"^6.8.0\",\n+ \"sass\": \"^1.69.5\",\n+ \"quill-delta\": \"^5.0.0\",\n+ \"quill-html-edit-button\": \"^2.2.12\",\n+ \"rc-collapse\": \"^3.1.1\",\n \"remove\": \"^0.1.5\",\n- \"sass\": \"^1.69.5\",\n \"worker-loader\": \"^3.0.8\",\n \"worker-plugin\": \"^5.0.1\"\n },\n- \"peerDependencies\": {\n- \"react\": \"^18.0.0\",\n- \"react-dom\": \"^18.0.0\"\n- },\n \"devDependencies\": {\n \"@brightcove/react-player-loader\": \"^1.4.1\",\n \"@vitejs/plugin-react\": \"^1.3.0\",\n- \"@vitejs/plugin-react-refresh\": \"^1.3.6\",\n \"axios\": \"^0.27.2\",\n \"deepmerge\": \"^4.2.2\",\n \"firebase\": \"^9.8.4\",\n \"gsap\": \"^3.10.4\",\n"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"date": 1707322242642,
|
|
22
|
+
"content": "Index: \n===================================================================\n--- \n+++ \n@@ -0,0 +1,81 @@\n+{\n+ \"name\": \"@nickaux/form-configurator\",\n+ \"version\": \"1.1.191\",\n+ \"description\": \"A React form manager\",\n+ \"type\": \"module\",\n+ \"license\": \"MIT\",\n+ \"main\": \"dist/FormConfigurator.cjs.js\",\n+ \"module\": \"dist/FormConfigurator.esm.js\",\n+ \"unpkg\": \"dist/FormConfigurator.umd.js\",\n+ \"exports\": {\n+ \".\": {\n+ \"import\": \"./dist/FormConfigurator.esm.js\",\n+ \"require\": \"./dist/FormConfigurator.cjs.js\"\n+ }\n+ },\n+ \"scripts\": {\n+ \"dev\": \"vite\",\n+ \"build\": \"microbundle --jsx React.createElement --css-modules true --no-source-map --compress\",\n+ \"preview\": \"vite preview\",\n+ \"update-browserslist\": \"npx browserslist@latest --update-db\",\n+ \"build:publish\": \"npm run update-browserslist && git add . && git commit -m 'publish_npm' && npm version patch && npm publish\"\n+ },\n+ \"peerDependencies\": {\n+ \"react\": \"^18.0.0\",\n+ \"react-dom\": \"^18.0.0\"\n+ },\n+ \"dependencies\": {\n+ \"@yaireo/tagify\": \"^4.12.0\",\n+ \"ace-builds\": \"^1.23.1\",\n+ \"jsoneditor\": \"^9.10.0\",\n+ \"jsoneditor-react\": \"^3.1.2\",\n+ \"react-circular-progressbar\": \"^2.0.4\",\n+ \"react-dnd\": \"^14.0.2\",\n+ \"react-dnd-html5-backend\": \"^14.0.0\",\n+ \"react-draggable\": \"^4.4.5\",\n+ \"react-number-format\": \"^5.1.2\",\n+ \"react-quill\": \"^2.0.0\",\n+ \"react-router-dom\": \"^6.3.0\",\n+ \"react-tabs\": \"^3.2.2\",\n+ \"react-tag-input\": \"^6.8.0\",\n+ \"sass\": \"^1.69.5\",\n+ \"quill-delta\": \"^5.0.0\",\n+ \"quill-html-edit-button\": \"^2.2.12\",\n+ \"rc-collapse\": \"^3.1.1\",\n+ \"remove\": \"^0.1.5\",\n+ \"worker-loader\": \"^3.0.8\",\n+ \"worker-plugin\": \"^5.0.1\"\n+ },\n+ \"devDependencies\": {\n+ \"@brightcove/react-player-loader\": \"^1.4.1\",\n+ \"@vitejs/plugin-react\": \"^1.3.0\",\n+ \"axios\": \"^0.27.2\",\n+ \"deepmerge\": \"^4.2.2\",\n+ \"firebase\": \"^9.8.4\",\n+ \"gsap\": \"^3.10.4\",\n+ \"handlebars\": \"^4.7.7\",\n+ \"html-react-parser\": \"^1.2.7\",\n+ \"microbundle\": \"^0.15.0\",\n+ \"papaparse\": \"^5.3.2\",\n+ \"react\": \"^18.0.0\",\n+ \"react-ace\": \"^10.1.0\",\n+ \"react-beautiful-dnd\": \"^13.1.0\",\n+ \"react-color\": \"^2.19.3\",\n+ \"react-datepicker\": \"^4.8.0\",\n+ \"react-dom\": \"^18.0.0\",\n+ \"react-hook-form\": \"^7.8.5\",\n+ \"react-json-editor-ajrm\": \"^2.5.13\",\n+ \"react-json-pretty\": \"^2.2.0\",\n+ \"react-json-view\": \"^1.21.3\",\n+ \"react-modal\": \"^3.15.1\",\n+ \"react-paginate\": \"^8.1.2\",\n+ \"react-select\": \"^5.4.0\",\n+ \"react-switch\": \"^7.0.0\",\n+ \"react-toggle\": \"^4.1.2\",\n+ \"slate-react\": \"^0.81.0\",\n+ \"uuid\": \"^8.3.2\",\n+ \"uuidv4\": \"^6.2.10\",\n+ \"vite\": \"^2.9.9\",\n+ \"wouter\": \"^2.8.0-alpha.2\"\n+ }\n+}\n"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"date": 1707322251191,
|
|
26
|
+
"content": "Index: \n===================================================================\n--- \n+++ \n@@ -0,0 +1,80 @@\n+{\n+ \"name\": \"@nickaux/form-configurator\",\n+ \"version\": \"1.1.191\",\n+ \"description\": \"A React form manager\",\n+ \"type\": \"module\",\n+ \"main\": \"dist/FormConfigurator.cjs.js\",\n+ \"module\": \"dist/FormConfigurator.esm.js\",\n+ \"unpkg\": \"dist/FormConfigurator.umd.js\",\n+ \"exports\": {\n+ \".\": {\n+ \"import\": \"./dist/FormConfigurator.esm.js\",\n+ \"require\": \"./dist/FormConfigurator.cjs.js\"\n+ }\n+ },\n+ \"scripts\": {\n+ \"dev\": \"vite\",\n+ \"build\": \"microbundle --jsx React.createElement --css-modules true --no-source-map --compress\",\n+ \"preview\": \"vite preview\",\n+ \"update-browserslist\": \"npx browserslist@latest --update-db\",\n+ \"build:publish\": \"npm run update-browserslist && git add . && git commit -m 'publish_npm' && npm version patch && npm publish\"\n+ },\n+ \"peerDependencies\": {\n+ \"react\": \"^18.0.0\",\n+ \"react-dom\": \"^18.0.0\"\n+ },\n+ \"dependencies\": {\n+ \"@yaireo/tagify\": \"^4.12.0\",\n+ \"ace-builds\": \"^1.23.1\",\n+ \"jsoneditor\": \"^9.10.0\",\n+ \"jsoneditor-react\": \"^3.1.2\",\n+ \"react-circular-progressbar\": \"^2.0.4\",\n+ \"react-dnd\": \"^14.0.2\",\n+ \"react-dnd-html5-backend\": \"^14.0.0\",\n+ \"react-draggable\": \"^4.4.5\",\n+ \"react-number-format\": \"^5.1.2\",\n+ \"react-quill\": \"^2.0.0\",\n+ \"react-router-dom\": \"^6.3.0\",\n+ \"react-tabs\": \"^3.2.2\",\n+ \"react-tag-input\": \"^6.8.0\",\n+ \"sass\": \"^1.69.5\",\n+ \"quill-delta\": \"^5.0.0\",\n+ \"quill-html-edit-button\": \"^2.2.12\",\n+ \"rc-collapse\": \"^3.1.1\",\n+ \"remove\": \"^0.1.5\",\n+ \"worker-loader\": \"^3.0.8\",\n+ \"worker-plugin\": \"^5.0.1\"\n+ },\n+ \"devDependencies\": {\n+ \"@brightcove/react-player-loader\": \"^1.4.1\",\n+ \"@vitejs/plugin-react\": \"^1.3.0\",\n+ \"axios\": \"^0.27.2\",\n+ \"deepmerge\": \"^4.2.2\",\n+ \"firebase\": \"^9.8.4\",\n+ \"gsap\": \"^3.10.4\",\n+ \"handlebars\": \"^4.7.7\",\n+ \"html-react-parser\": \"^1.2.7\",\n+ \"microbundle\": \"^0.15.0\",\n+ \"papaparse\": \"^5.3.2\",\n+ \"react\": \"^18.0.0\",\n+ \"react-ace\": \"^10.1.0\",\n+ \"react-beautiful-dnd\": \"^13.1.0\",\n+ \"react-color\": \"^2.19.3\",\n+ \"react-datepicker\": \"^4.8.0\",\n+ \"react-dom\": \"^18.0.0\",\n+ \"react-hook-form\": \"^7.8.5\",\n+ \"react-json-editor-ajrm\": \"^2.5.13\",\n+ \"react-json-pretty\": \"^2.2.0\",\n+ \"react-json-view\": \"^1.21.3\",\n+ \"react-modal\": \"^3.15.1\",\n+ \"react-paginate\": \"^8.1.2\",\n+ \"react-select\": \"^5.4.0\",\n+ \"react-switch\": \"^7.0.0\",\n+ \"react-toggle\": \"^4.1.2\",\n+ \"slate-react\": \"^0.81.0\",\n+ \"uuid\": \"^8.3.2\",\n+ \"uuidv4\": \"^6.2.10\",\n+ \"vite\": \"^2.9.9\",\n+ \"wouter\": \"^2.8.0-alpha.2\"\n+ }\n+}\n"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"date": 1707322283298,
|
|
30
|
+
"content": "Index: \n===================================================================\n--- \n+++ \n@@ -5,14 +5,9 @@\n \"type\": \"module\",\n \"main\": \"dist/FormConfigurator.cjs.js\",\n \"module\": \"dist/FormConfigurator.esm.js\",\n \"unpkg\": \"dist/FormConfigurator.umd.js\",\n- \"exports\": {\n- \".\": {\n- \"import\": \"./dist/FormConfigurator.esm.js\",\n- \"require\": \"./dist/FormConfigurator.cjs.js\"\n- }\n- },\n+ \"source\": \"src/FormConfigurator/lib.package.js\",\n \"scripts\": {\n \"dev\": \"vite\",\n \"build\": \"microbundle --jsx React.createElement --css-modules true --no-source-map --compress\",\n \"preview\": \"vite preview\",\n@@ -77,165 +72,4 @@\n \"vite\": \"^2.9.9\",\n \"wouter\": \"^2.8.0-alpha.2\"\n }\n }\n-{\n- \"name\": \"@nickaux/form-configurator\",\n- \"version\": \"1.1.191\",\n- \"description\": \"A React form manager\",\n- \"type\": \"module\",\n- \"license\": \"MIT\",\n- \"main\": \"dist/FormConfigurator.cjs.js\",\n- \"module\": \"dist/FormConfigurator.esm.js\",\n- \"unpkg\": \"dist/FormConfigurator.umd.js\",\n- \"exports\": {\n- \".\": {\n- \"import\": \"./dist/FormConfigurator.esm.js\",\n- \"require\": \"./dist/FormConfigurator.cjs.js\"\n- }\n- },\n- \"scripts\": {\n- \"dev\": \"vite\",\n- \"build\": \"microbundle --jsx React.createElement --css-modules true --no-source-map --compress\",\n- \"preview\": \"vite preview\",\n- \"update-browserslist\": \"npx browserslist@latest --update-db\",\n- \"build:publish\": \"npm run update-browserslist && git add . && git commit -m 'publish_npm' && npm version patch && npm publish\"\n- },\n- \"peerDependencies\": {\n- \"react\": \"^18.0.0\",\n- \"react-dom\": \"^18.0.0\"\n- },\n- \"dependencies\": {\n- \"@yaireo/tagify\": \"^4.12.0\",\n- \"ace-builds\": \"^1.23.1\",\n- \"jsoneditor\": \"^9.10.0\",\n- \"jsoneditor-react\": \"^3.1.2\",\n- \"react-circular-progressbar\": \"^2.0.4\",\n- \"react-dnd\": \"^14.0.2\",\n- \"react-dnd-html5-backend\": \"^14.0.0\",\n- \"react-draggable\": \"^4.4.5\",\n- \"react-number-format\": \"^5.1.2\",\n- \"react-quill\": \"^2.0.0\",\n- \"react-router-dom\": \"^6.3.0\",\n- \"react-tabs\": \"^3.2.2\",\n- \"react-tag-input\": \"^6.8.0\",\n- \"sass\": \"^1.69.5\",\n- \"quill-delta\": \"^5.0.0\",\n- \"quill-html-edit-button\": \"^2.2.12\",\n- \"rc-collapse\": \"^3.1.1\",\n- \"remove\": \"^0.1.5\",\n- \"worker-loader\": \"^3.0.8\",\n- \"worker-plugin\": \"^5.0.1\"\n- },\n- \"devDependencies\": {\n- \"@brightcove/react-player-loader\": \"^1.4.1\",\n- \"@vitejs/plugin-react\": \"^1.3.0\",\n- \"axios\": \"^0.27.2\",\n- \"deepmerge\": \"^4.2.2\",\n- \"firebase\": \"^9.8.4\",\n- \"gsap\": \"^3.10.4\",\n- \"handlebars\": \"^4.7.7\",\n- \"html-react-parser\": \"^1.2.7\",\n- \"microbundle\": \"^0.15.0\",\n- \"papaparse\": \"^5.3.2\",\n- \"react\": \"^18.0.0\",\n- \"react-ace\": \"^10.1.0\",\n- \"react-beautiful-dnd\": \"^13.1.0\",\n- \"react-color\": \"^2.19.3\",\n- \"react-datepicker\": \"^4.8.0\",\n- \"react-dom\": \"^18.0.0\",\n- \"react-hook-form\": \"^7.8.5\",\n- \"react-json-editor-ajrm\": \"^2.5.13\",\n- \"react-json-pretty\": \"^2.2.0\",\n- \"react-json-view\": \"^1.21.3\",\n- \"react-modal\": \"^3.15.1\",\n- \"react-paginate\": \"^8.1.2\",\n- \"react-select\": \"^5.4.0\",\n- \"react-switch\": \"^7.0.0\",\n- \"react-toggle\": \"^4.1.2\",\n- \"slate-react\": \"^0.81.0\",\n- \"uuid\": \"^8.3.2\",\n- \"uuidv4\": \"^6.2.10\",\n- \"vite\": \"^2.9.9\",\n- \"wouter\": \"^2.8.0-alpha.2\"\n- }\n-}\n-{\n- \"name\": \"@nickaux/form-configurator\",\n- \"version\": \"1.1.191\",\n- \"description\": \"A React form manager\",\n- \"type\": \"module\",\n- \"main\": \"dist/FormConfigurator.cjs.js\",\n- \"module\": \"dist/FormConfigurator.esm.js\",\n- \"unpkg\": \"dist/FormConfigurator.umd.js\",\n- \"exports\": {\n- \".\": {\n- \"import\": \"./dist/FormConfigurator.esm.js\",\n- \"require\": \"./dist/FormConfigurator.cjs.js\"\n- }\n- },\n- \"scripts\": {\n- \"dev\": \"vite\",\n- \"build\": \"microbundle --jsx React.createElement --css-modules true --no-source-map --compress\",\n- \"preview\": \"vite preview\",\n- \"update-browserslist\": \"npx browserslist@latest --update-db\",\n- \"build:publish\": \"npm run update-browserslist && git add . && git commit -m 'publish_npm' && npm version patch && npm publish\"\n- },\n- \"peerDependencies\": {\n- \"react\": \"^18.0.0\",\n- \"react-dom\": \"^18.0.0\"\n- },\n- \"dependencies\": {\n- \"@yaireo/tagify\": \"^4.12.0\",\n- \"ace-builds\": \"^1.23.1\",\n- \"jsoneditor\": \"^9.10.0\",\n- \"jsoneditor-react\": \"^3.1.2\",\n- \"react-circular-progressbar\": \"^2.0.4\",\n- \"react-dnd\": \"^14.0.2\",\n- \"react-dnd-html5-backend\": \"^14.0.0\",\n- \"react-draggable\": \"^4.4.5\",\n- \"react-number-format\": \"^5.1.2\",\n- \"react-quill\": \"^2.0.0\",\n- \"react-router-dom\": \"^6.3.0\",\n- \"react-tabs\": \"^3.2.2\",\n- \"react-tag-input\": \"^6.8.0\",\n- \"sass\": \"^1.69.5\",\n- \"quill-delta\": \"^5.0.0\",\n- \"quill-html-edit-button\": \"^2.2.12\",\n- \"rc-collapse\": \"^3.1.1\",\n- \"remove\": \"^0.1.5\",\n- \"worker-loader\": \"^3.0.8\",\n- \"worker-plugin\": \"^5.0.1\"\n- },\n- \"devDependencies\": {\n- \"@brightcove/react-player-loader\": \"^1.4.1\",\n- \"@vitejs/plugin-react\": \"^1.3.0\",\n- \"axios\": \"^0.27.2\",\n- \"deepmerge\": \"^4.2.2\",\n- \"firebase\": \"^9.8.4\",\n- \"gsap\": \"^3.10.4\",\n- \"handlebars\": \"^4.7.7\",\n- \"html-react-parser\": \"^1.2.7\",\n- \"microbundle\": \"^0.15.0\",\n- \"papaparse\": \"^5.3.2\",\n- \"react\": \"^18.0.0\",\n- \"react-ace\": \"^10.1.0\",\n- \"react-beautiful-dnd\": \"^13.1.0\",\n- \"react-color\": \"^2.19.3\",\n- \"react-datepicker\": \"^4.8.0\",\n- \"react-dom\": \"^18.0.0\",\n- \"react-hook-form\": \"^7.8.5\",\n- \"react-json-editor-ajrm\": \"^2.5.13\",\n- \"react-json-pretty\": \"^2.2.0\",\n- \"react-json-view\": \"^1.21.3\",\n- \"react-modal\": \"^3.15.1\",\n- \"react-paginate\": \"^8.1.2\",\n- \"react-select\": \"^5.4.0\",\n- \"react-switch\": \"^7.0.0\",\n- \"react-toggle\": \"^4.1.2\",\n- \"slate-react\": \"^0.81.0\",\n- \"uuid\": \"^8.3.2\",\n- \"uuidv4\": \"^6.2.10\",\n- \"vite\": \"^2.9.9\",\n- \"wouter\": \"^2.8.0-alpha.2\"\n- }\n-}\n"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"date": 1707323824652,
|
|
34
|
+
"content": "Index: \n===================================================================\n--- \n+++ \n@@ -11,19 +11,25 @@\n \"dev\": \"vite\",\n \"build\": \"microbundle --jsx React.createElement --css-modules true --no-source-map --compress\",\n \"preview\": \"vite preview\",\n \"update-browserslist\": \"npx browserslist@latest --update-db\",\n- \"build:publish\": \"npm run update-browserslist && git add . && git commit -m 'publish_npm' && npm version patch && npm publish\"\n+ \"build:publish\": \"npm run update-browserslist && git add . && git commit -m 'publish_npm' && npm version patch && npm publish\",\n+ \"watch\": \"chokidar \\\"src/**/*.{js,jsx,ts,tsx}\\\" -c \\\"npm run build\\\"\"\n },\n \"peerDependencies\": {\n \"react\": \"^18.0.0\",\n \"react-dom\": \"^18.0.0\"\n },\n \"dependencies\": {\n \"@yaireo/tagify\": \"^4.12.0\",\n \"ace-builds\": \"^1.23.1\",\n+ \"chokidar-cli\": \"^3.0.0\",\n+ \"install\": \"^0.13.0\",\n \"jsoneditor\": \"^9.10.0\",\n \"jsoneditor-react\": \"^3.1.2\",\n+ \"quill-delta\": \"^5.0.0\",\n+ \"quill-html-edit-button\": \"^2.2.12\",\n+ \"rc-collapse\": \"^3.1.1\",\n \"react-circular-progressbar\": \"^2.0.4\",\n \"react-dnd\": \"^14.0.2\",\n \"react-dnd-html5-backend\": \"^14.0.0\",\n \"react-draggable\": \"^4.4.5\",\n@@ -31,13 +37,10 @@\n \"react-quill\": \"^2.0.0\",\n \"react-router-dom\": \"^6.3.0\",\n \"react-tabs\": \"^3.2.2\",\n \"react-tag-input\": \"^6.8.0\",\n+ \"remove\": \"^0.1.5\",\n \"sass\": \"^1.69.5\",\n- \"quill-delta\": \"^5.0.0\",\n- \"quill-html-edit-button\": \"^2.2.12\",\n- \"rc-collapse\": \"^3.1.1\",\n- \"remove\": \"^0.1.5\",\n \"worker-loader\": \"^3.0.8\",\n \"worker-plugin\": \"^5.0.1\"\n },\n \"devDependencies\": {\n"
|
|
15
35
|
}
|
|
16
36
|
],
|
|
17
37
|
"date": 1707302740336,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sourceFile": "vite.config.js",
|
|
3
|
+
"activeCommit": 0,
|
|
4
|
+
"commits": [
|
|
5
|
+
{
|
|
6
|
+
"activePatchIndex": 0,
|
|
7
|
+
"patches": [
|
|
8
|
+
{
|
|
9
|
+
"date": 1707321478082,
|
|
10
|
+
"content": "Index: \n===================================================================\n--- \n+++ \n"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"date": 1707321478082,
|
|
14
|
+
"name": "Commit-0",
|
|
15
|
+
"content": "import { defineConfig } from 'vite';\nimport react from '@vitejs/plugin-react';\nimport { builtinModules } from 'module';\n\nexport default defineConfig({\n build: {\n minify: true,\n rollupOptions: {\n external: ['ace-builds'].concat(builtinModules.filter((m) => !m.startsWith('node:'))),\n },\n },\n plugins: [react()],\n});\n"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
package/build.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
const { build } = require("esbuild");
|
|
2
|
+
const { nodeExternalsPlugin } = require("esbuild-node-externals");
|
|
3
|
+
const { peerDependencies,devDependencies } = require("./package.json");
|
|
4
|
+
|
|
5
|
+
const entryFile = "src/index.js"; // Remplacez par le chemin de votre fichier d'entrée principal
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
console.log([...Object.keys(peerDependencies),...Object.keys(devDependencies)])
|
|
9
|
+
const shared = {
|
|
10
|
+
entryPoints: [entryFile],
|
|
11
|
+
bundle: true,
|
|
12
|
+
minify: true,
|
|
13
|
+
sourcemap: true,
|
|
14
|
+
external: [...Object.keys(peerDependencies),...Object.keys(devDependencies)], // Externaliser React et ReactDOM
|
|
15
|
+
platform: 'browser',
|
|
16
|
+
|
|
17
|
+
// loader: {
|
|
18
|
+
// ".js": "jsx", // Prise en charge de JSX
|
|
19
|
+
// ".ts": "tsx", // Prise en charge de TypeScript, si nécessaire
|
|
20
|
+
// },
|
|
21
|
+
// plugins: [nodeExternalsPlugin()], // Exclure tous les modules Node.js du bundle
|
|
22
|
+
// logLevel: "info",
|
|
23
|
+
// treeShaking: true,
|
|
24
|
+
// platform: 'node',
|
|
25
|
+
format: 'cjs',
|
|
26
|
+
target: 'node14',
|
|
27
|
+
plugins: [nodeExternalsPlugin()],
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
// Configuration pour le bundle ESM
|
|
31
|
+
build({
|
|
32
|
+
...shared,
|
|
33
|
+
format: "esm",
|
|
34
|
+
outfile: "./dist/index.esm.js",
|
|
35
|
+
target: ["esnext"], // Cible les environnements modernes pour ESM
|
|
36
|
+
}).catch(() => process.exit(1));
|
|
37
|
+
|
|
38
|
+
// Configuration pour le bundle CommonJS
|
|
39
|
+
build({
|
|
40
|
+
...shared,
|
|
41
|
+
format: "cjs",
|
|
42
|
+
outfile: "./dist/index.cjs.js",
|
|
43
|
+
target: ["esnext"], // Cible une version spécifique de Node.js pour CJS
|
|
44
|
+
}).catch(() => process.exit(1));
|