@elliemae/pui-cli 9.0.0-alpha.11 → 9.0.0-alpha.13
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 +6 -4
- package/build/docs/404.html +4 -4
- package/build/docs/api/functions/loadRoutes/index.html +9 -9
- package/build/docs/api/index.html +8 -8
- package/build/docs/api/type-aliases/LIB_NAME/index.html +5 -5
- package/build/docs/api/variables/babelConfig/index.html +5 -28
- package/build/docs/api/variables/commitlintConfig/index.html +5 -8
- package/build/docs/api/variables/eslintFlatBaseConfig/index.html +6 -6
- package/build/docs/api/variables/eslintFlatBaseConfigStrict/index.html +6 -6
- package/build/docs/api/variables/eslintFlatConfig/index.html +6 -6
- package/build/docs/api/variables/eslintFlatConfigStrict/index.html +6 -6
- package/build/docs/api/variables/jestConfig/index.html +86 -86
- package/build/docs/api/variables/jestNodeConfig/index.html +86 -86
- package/build/docs/api/variables/lintStagedConfig/index.html +22 -12
- package/build/docs/api/variables/prettierConfig/index.html +5 -18
- package/build/docs/api/variables/stylelintConfig/index.html +5 -5
- package/build/docs/api/variables/vitestConfig/index.html +5 -5
- package/build/docs/assets/css/{styles.74603f39.css → styles.3cba4e67.css} +1 -1
- package/build/docs/assets/js/04ee7372.c6c3d513.js +1 -0
- package/build/docs/assets/js/0551d4dd.a6b1d9fa.js +1 -0
- package/build/docs/assets/js/0a1d0315.43980061.js +1 -0
- package/build/docs/assets/js/13097d8d.4ac8ef79.js +1 -0
- package/build/docs/assets/js/{16b7bc88.c3779e27.js → 16b7bc88.2ac57556.js} +1 -1
- package/build/docs/assets/js/{17896441.84339068.js → 17896441.705d85a0.js} +1 -1
- package/build/docs/assets/js/{1b9df811.aaa95da1.js → 1b9df811.ec75cfdc.js} +1 -1
- package/build/docs/assets/js/{232a0286.33b2782b.js → 232a0286.6f749ae5.js} +1 -1
- package/build/docs/assets/js/{2399.cc5803e0.js → 2399.5d123cba.js} +1 -1
- package/build/docs/assets/js/{37d86055.47211796.js → 37d86055.1e73f036.js} +1 -1
- package/build/docs/assets/js/3992.b9b54f94.js +2 -0
- package/build/docs/assets/js/4fb6949f.13bde4a8.js +1 -0
- package/build/docs/assets/js/5befad71.96f04f67.js +1 -0
- package/build/docs/assets/js/5d5f1db0.e7607cd2.js +1 -0
- package/build/docs/assets/js/5e8c322a.0b86bf5a.js +1 -0
- package/build/docs/assets/js/5e95c892.de377e27.js +1 -0
- package/build/docs/assets/js/{5fb3c522.da5628e8.js → 5fb3c522.3ec831ee.js} +1 -1
- package/build/docs/assets/js/6bd11e52.c61bfcd5.js +1 -0
- package/build/docs/assets/js/6e96545e.1b545333.js +1 -0
- package/build/docs/assets/js/{71f6d02b.cfd98385.js → 71f6d02b.4b381360.js} +1 -1
- package/build/docs/assets/js/{6704.2615a5c6.js → 7843.f4b19776.js} +1 -1
- package/build/docs/assets/js/80e87108.8c451f49.js +1 -0
- package/build/docs/assets/js/{8585.3cb09ff7.js → 8585.e2298db3.js} +1 -1
- package/build/docs/assets/js/{a7bd4aaa.30ffad02.js → a7bd4aaa.aceac89c.js} +1 -1
- package/build/docs/assets/js/a94703ab.248144c2.js +1 -0
- package/build/docs/assets/js/b7b585d8.7d50f3f6.js +1 -0
- package/build/docs/assets/js/{bde5209a.f5bca8b2.js → bde5209a.480cc8d8.js} +1 -1
- package/build/docs/assets/js/c377a04b.c6b6b394.js +1 -0
- package/build/docs/assets/js/{dfd75424.51c4e2cb.js → dfd75424.459da76b.js} +1 -1
- package/build/docs/assets/js/f736c962.ab424879.js +1 -0
- package/build/docs/assets/js/main.3ae939d4.js +2 -0
- package/build/docs/assets/js/runtime~main.9ecf1839.js +1 -0
- package/build/docs/eslint-rules-migration/index.html +43 -43
- package/build/docs/index.html +70 -71
- package/build/docs/pui-cli-9-migration/index.html +191 -70
- package/build/docs/sitemap.xml +1 -1
- package/build/docs/ssl-certificate-setup/index.html +23 -23
- package/build/docs/stylelint-migration/index.html +19 -21
- package/build/docs/usage-guide/index.html +91 -91
- package/dist/cjs/babel.config.js +124 -0
- package/dist/cjs/commands/storybook.js +33 -4
- package/dist/cjs/index.js +5 -9
- package/dist/cjs/lint-config/commitlint/export.mjs +1 -0
- package/dist/cjs/lint-config/commitlint.config.mjs +6 -0
- package/dist/cjs/lint-config/eslint/common.cjs +8 -1
- package/dist/cjs/lint-config/eslint/flat/compat.mjs +5 -5
- package/dist/cjs/lint-config/eslint/flat/rules.mjs +1 -0
- package/dist/cjs/lint-config/lint-staged.config.js +17 -5
- package/dist/cjs/lint-config/prettier/export.mjs +1 -0
- package/dist/cjs/lint-config/{prettier.config.cjs → prettier.config.mjs} +4 -1
- package/dist/cjs/skills/migrate-storybook-out-of-cjs/SKILL.md +242 -0
- package/dist/cjs/skills/migrate-to-pui-cli-9/SKILL.md +188 -25
- package/dist/cjs/testing/{jest.config.cjs → jest.config.mjs} +14 -6
- package/dist/{esm/testing/jest.node.config.cjs → cjs/testing/jest.node.config.mjs} +3 -2
- package/dist/cjs/testing/setup-textencoder.cjs +4 -0
- package/dist/cjs/webpack/webpack.storybook.js +62 -0
- package/dist/esm/babel.config.js +94 -0
- package/dist/esm/commands/storybook.js +22 -4
- package/dist/esm/index.js +5 -9
- package/dist/esm/lint-config/commitlint/export.mjs +1 -0
- package/dist/esm/lint-config/commitlint.config.mjs +6 -0
- package/dist/esm/lint-config/eslint/common.cjs +8 -1
- package/dist/esm/lint-config/eslint/flat/compat.mjs +5 -5
- package/dist/esm/lint-config/eslint/flat/rules.mjs +1 -0
- package/dist/esm/lint-config/lint-staged.config.js +17 -5
- package/dist/esm/lint-config/prettier/export.mjs +1 -0
- package/{lib/lint-config/prettier.config.cjs → dist/esm/lint-config/prettier.config.mjs} +4 -1
- package/dist/esm/skills/migrate-storybook-out-of-cjs/SKILL.md +242 -0
- package/dist/esm/skills/migrate-to-pui-cli-9/SKILL.md +188 -25
- package/dist/esm/testing/{jest.config.cjs → jest.config.mjs} +14 -6
- package/dist/{cjs/testing/jest.node.config.cjs → esm/testing/jest.node.config.mjs} +3 -2
- package/dist/esm/testing/setup-textencoder.cjs +4 -0
- package/dist/esm/webpack/webpack.storybook.js +61 -0
- package/dist/types/lib/babel.config.d.ts +3 -0
- package/dist/types/lib/commands/storybook.d.ts +1 -0
- package/dist/types/lib/index.d.ts +5 -9
- package/dist/types/lib/lint-config/commitlint/export.d.mts +1 -0
- package/dist/types/lib/lint-config/commitlint.config.d.mts +3 -0
- package/dist/types/lib/lint-config/eslint/common.d.cts +8 -2
- package/dist/types/lib/lint-config/eslint/flat/compat.d.mts +1 -1
- package/dist/types/lib/lint-config/eslint/non-react.d.cts +8 -1
- package/dist/types/lib/lint-config/eslint/react.d.cts +8 -1
- package/dist/types/lib/lint-config/eslint/typescript/non-react.d.cts +8 -1
- package/dist/types/lib/lint-config/eslint/typescript/react.d.cts +8 -1
- package/dist/types/lib/lint-config/lint-staged.config.d.ts +2 -2
- package/dist/types/lib/lint-config/prettier/export.d.mts +1 -0
- package/dist/types/lib/lint-config/prettier.config.d.mts +3 -0
- package/dist/types/lib/testing/setup-textencoder.d.cts +1 -0
- package/dist/types/lib/utils.d.cts +1 -1
- package/dist/types/lib/utils.d.ts +1 -1
- package/dist/types/lib/webpack/webpack.storybook.d.ts +2 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/lib/lint-config/commitlint/export.mjs +1 -0
- package/lib/lint-config/commitlint.config.mjs +6 -0
- package/lib/lint-config/eslint/common.cjs +8 -1
- package/lib/lint-config/eslint/flat/compat.mjs +5 -5
- package/lib/lint-config/eslint/flat/rules.mjs +1 -0
- package/lib/lint-config/lint-staged.config.js +20 -5
- package/lib/lint-config/prettier/export.mjs +1 -0
- package/{dist/esm/lint-config/prettier.config.cjs → lib/lint-config/prettier.config.mjs} +4 -1
- package/lib/skills/migrate-storybook-out-of-cjs/SKILL.md +242 -0
- package/lib/skills/migrate-to-pui-cli-9/SKILL.md +188 -25
- package/lib/testing/jest.config.mjs +124 -0
- package/lib/testing/jest.node.config.mjs +9 -0
- package/package.json +46 -36
- package/build/docs/api/variables/eslintBaseConfig/index.html +0 -132
- package/build/docs/api/variables/eslintConfig/index.html +0 -180
- package/build/docs/assets/js/04ee7372.eaa386ed.js +0 -1
- package/build/docs/assets/js/0551d4dd.ebb18f4f.js +0 -1
- package/build/docs/assets/js/0a1d0315.fc8f91a7.js +0 -1
- package/build/docs/assets/js/13097d8d.af480dfd.js +0 -1
- package/build/docs/assets/js/3992.0ac29b2f.js +0 -2
- package/build/docs/assets/js/4fb6949f.369cc1b9.js +0 -1
- package/build/docs/assets/js/5befad71.5f19afb5.js +0 -1
- package/build/docs/assets/js/5d5f1db0.c5aa5afa.js +0 -1
- package/build/docs/assets/js/5e8c322a.ef3b894b.js +0 -1
- package/build/docs/assets/js/5e95c892.f550b901.js +0 -1
- package/build/docs/assets/js/6bd11e52.08b95209.js +0 -1
- package/build/docs/assets/js/6e96545e.30c1b801.js +0 -1
- package/build/docs/assets/js/80e87108.f9507b95.js +0 -1
- package/build/docs/assets/js/a94703ab.f1796514.js +0 -1
- package/build/docs/assets/js/b7b585d8.6d53e73f.js +0 -1
- package/build/docs/assets/js/b8ac1d98.62684003.js +0 -1
- package/build/docs/assets/js/c377a04b.0f8625c6.js +0 -1
- package/build/docs/assets/js/e5f79924.c793a74d.js +0 -1
- package/build/docs/assets/js/f736c962.dbd0d004.js +0 -1
- package/build/docs/assets/js/main.7f815b7e.js +0 -2
- package/build/docs/assets/js/runtime~main.f7c5bef0.js +0 -1
- package/dist/cjs/babel.config.cjs +0 -97
- package/dist/cjs/index.cjs +0 -35
- package/dist/cjs/lint-config/commitlint.config.cjs +0 -1
- package/dist/cjs/lint-config/stylelint.config.cjs +0 -3
- package/dist/esm/babel.config.cjs +0 -97
- package/dist/esm/index.cjs +0 -35
- package/dist/esm/lint-config/commitlint.config.cjs +0 -1
- package/dist/esm/lint-config/stylelint.config.cjs +0 -3
- package/dist/types/lib/babel.config.d.cts +0 -59
- package/dist/types/lib/index.d.cts +0 -13
- package/dist/types/lib/lint-config/commitlint.config.d.cts +0 -4
- package/dist/types/lib/lint-config/prettier.config.d.cts +0 -8
- package/dist/types/lib/lint-config/stylelint.config.d.cts +0 -2
- package/lib/lint-config/commitlint.config.cjs +0 -1
- package/lib/lint-config/stylelint.config.cjs +0 -3
- /package/build/docs/assets/js/{3992.0ac29b2f.js.LICENSE.txt → 3992.b9b54f94.js.LICENSE.txt} +0 -0
- /package/build/docs/assets/js/{main.7f815b7e.js.LICENSE.txt → main.3ae939d4.js.LICENSE.txt} +0 -0
- /package/dist/types/lib/testing/{jest.config.d.cts → jest.config.d.mts} +0 -0
- /package/dist/types/lib/testing/{jest.node.config.d.cts → jest.node.config.d.mts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(()=>{"use strict";var e,a,d,r,t,b={},c={};function f(e){var a=c[e];if(void 0!==a)return a.exports;var d=c[e]={id:e,loaded:!1,exports:{}};return b[e].call(d.exports,d,d.exports,f),d.loaded=!0,d.exports}f.m=b,f.c=c,e=[],f.O=(a,d,r,t)=>{if(!d){var b=1/0;for(i=0;i<e.length;i++){for(var[d,r,t]=e[i],c=!0,o=0;o<d.length;o++)(!1&t||b>=t)&&Object.keys(f.O).every(e=>f.O[e](d[o]))?d.splice(o--,1):(c=!1,t<b&&(b=t));if(c){e.splice(i--,1);var n=r();void 0!==n&&(a=n)}}return a}t=t||0;for(var i=e.length;i>0&&e[i-1][2]>t;i--)e[i]=e[i-1];e[i]=[d,r,t]},f.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return f.d(a,{a:a}),a},d=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,f.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var t=Object.create(null);f.r(t);var b={};a=a||[null,d({}),d([]),d(d)];for(var c=2&r&&e;("object"==typeof c||"function"==typeof c)&&!~a.indexOf(c);c=d(c))Object.getOwnPropertyNames(c).forEach(a=>b[a]=()=>e[a]);return b.default=()=>e,f.d(t,b),t},f.d=(e,a)=>{for(var d in a)f.o(a,d)&&!f.o(e,d)&&Object.defineProperty(e,d,{enumerable:!0,get:a[d]})},f.f={},f.e=e=>Promise.all(Object.keys(f.f).reduce((a,d)=>(f.f[d](e,a),a),[])),f.u=e=>"assets/js/"+({594:"5e8c322a",1019:"4fb6949f",1091:"5fb3c522",1380:"5befad71",1572:"0a1d0315",1712:"0551d4dd",1724:"e5f79924",2113:"6bd11e52",2577:"f736c962",2960:"5d5f1db0",3361:"c377a04b",3891:"71f6d02b",4676:"80e87108",5455:"13097d8d",5742:"aba21aa0",5908:"04ee7372",5983:"dfd75424",6130:"16b7bc88",6264:"b7b585d8",6688:"6e96545e",7098:"a7bd4aaa",7581:"37d86055",7589:"232a0286",7613:"b8ac1d98",8155:"bde5209a",8401:"17896441",9048:"a94703ab",9577:"1b9df811",9647:"5e95c892"}[e]||e)+"."+{97:"70eddfb5",213:"e69351b3",242:"73516ab6",247:"e1522e52",594:"ef3b894b",821:"8d4e2a80",936:"c151b43f",1019:"369cc1b9",1091:"da5628e8",1126:"fa547e9c",1127:"f28430e6",1298:"fb0939c9",1380:"5f19afb5",1572:"fc8f91a7",1617:"b2623271",1700:"4f7a9007",1712:"ebb18f4f",1724:"c793a74d",2113:"08b95209",2297:"e63290f4",2399:"cc5803e0",2577:"dbd0d004",2673:"da75a556",2805:"f0505f8c",2960:"c5aa5afa",3361:"0f8625c6",3395:"eb3dad5b",3499:"2d5c6821",3552:"9272c0d9",3720:"8e7f36d4",3891:"cfd98385",3992:"0ac29b2f",4069:"301f1115",4134:"553b3645",4257:"9afce6ac",4676:"f9507b95",4772:"6294b364",4884:"9dbe23e5",5196:"98f7e06a",5248:"ee436cea",5428:"71752e9a",5455:"af480dfd",5742:"3bbcf0cc",5908:"eaa386ed",5964:"0728ed91",5968:"5f4ccba7",5983:"51c4e2cb",6130:"c3779e27",6264:"6d53e73f",6486:"68ae0007",6688:"30c1b801",6704:"2615a5c6",7080:"efd5ba6c",7098:"30ffad02",7201:"e90ba636",7344:"95656e38",7516:"b6668d60",7525:"a8d0db87",7540:"7a4353cf",7581:"47211796",7589:"33b2782b",7613:"62684003",7985:"8c6943d6",8049:"8ba75278",8152:"f2bebb2f",8155:"f5bca8b2",8290:"a4f7a2ca",8355:"864847a1",8389:"26a9caca",8401:"84339068",8585:"3cb09ff7",8788:"03856709",9048:"f1796514",9178:"50ac2954",9210:"1ac21da8",9354:"37ad86f9",9574:"b172d607",9577:"aaa95da1",9647:"f550b901",9852:"f77caf52",9953:"f6278635"}[e]+".js",f.miniCssF=e=>{},f.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),r={},t="@elliemae/pui-cli:",f.l=(e,a,d,b)=>{if(r[e])r[e].push(a);else{var c,o;if(void 0!==d)for(var n=document.getElementsByTagName("script"),i=0;i<n.length;i++){var l=n[i];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==t+d){c=l;break}}c||(o=!0,(c=document.createElement("script")).charset="utf-8",f.nc&&c.setAttribute("nonce",f.nc),c.setAttribute("data-webpack",t+d),c.src=e),r[e]=[a];var u=(a,d)=>{c.onerror=c.onload=null,clearTimeout(s);var t=r[e];if(delete r[e],c.parentNode&&c.parentNode.removeChild(c),t&&t.forEach(e=>e(d)),a)return a(d)},s=setTimeout(u.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=u.bind(null,c.onerror),c.onload=u.bind(null,c.onload),o&&document.head.appendChild(c)}},f.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.dn=e=>{(Object.getOwnPropertyDescriptor(e,"name")||{}).writable||Object.defineProperty(e,"name",{value:"default",configurable:!0})},f.p="/cli/",f.gca=function(e){return e={17896441:"8401","5e8c322a":"594","4fb6949f":"1019","5fb3c522":"1091","5befad71":"1380","0a1d0315":"1572","0551d4dd":"1712",e5f79924:"1724","6bd11e52":"2113",f736c962:"2577","5d5f1db0":"2960",c377a04b:"3361","71f6d02b":"3891","80e87108":"4676","13097d8d":"5455",aba21aa0:"5742","04ee7372":"5908",dfd75424:"5983","16b7bc88":"6130",b7b585d8:"6264","6e96545e":"6688",a7bd4aaa:"7098","37d86055":"7581","232a0286":"7589",b8ac1d98:"7613",bde5209a:"8155",a94703ab:"9048","1b9df811":"9577","5e95c892":"9647"}[e]||e,f.p+f.u(e)},(()=>{var e={5354:0,1869:0};f.f.j=(a,d)=>{var r=f.o(e,a)?e[a]:void 0;if(0!==r)if(r)d.push(r[2]);else if(/^(1869|5354)$/.test(a))e[a]=0;else{var t=new Promise((d,t)=>r=e[a]=[d,t]);d.push(r[2]=t);var b=f.p+f.u(a),c=new Error;f.l(b,d=>{if(f.o(e,a)&&(0!==(r=e[a])&&(e[a]=void 0),r)){var t=d&&("load"===d.type?"missing":d.type),b=d&&d.target&&d.target.src;c.message="Loading chunk "+a+" failed.\n("+t+": "+b+")",c.name="ChunkLoadError",c.type=t,c.request=b,r[1](c)}},"chunk-"+a,a)}},f.O.j=a=>0===e[a];var a=(a,d)=>{var r,t,[b,c,o]=d,n=0;if(b.some(a=>0!==e[a])){for(r in c)f.o(c,r)&&(f.m[r]=c[r]);if(o)var i=o(f)}for(a&&a(d);n<b.length;n++)t=b[n],f.o(e,t)&&e[t]&&e[t][0](),e[t]=0;return f.O(i)},d=globalThis.webpackChunk_elliemae_pui_cli=globalThis.webpackChunk_elliemae_pui_cli||[];d.forEach(a.bind(null,0)),d.push=a.bind(null,d.push.bind(d))})()})();
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
const { isApp } = require('./utils.cjs');
|
|
2
|
-
|
|
3
|
-
const nodeEnvPreset = {
|
|
4
|
-
modules: process.env.ES_MODULES === 'false' ? 'commonjs' : false,
|
|
5
|
-
targets: {
|
|
6
|
-
node: 'current',
|
|
7
|
-
},
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const webEnvPreset = {
|
|
11
|
-
modules: process.env.ES_MODULES === 'false' ? 'commonjs' : false,
|
|
12
|
-
useBuiltIns: 'usage',
|
|
13
|
-
corejs: { version: '3.36', proposals: true },
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
const presetEnvOptions =
|
|
17
|
-
process.env.TARGET_ENV === 'node' ? nodeEnvPreset : webEnvPreset;
|
|
18
|
-
|
|
19
|
-
const config = {
|
|
20
|
-
ignore: [/\/core-js/],
|
|
21
|
-
sourceType: 'unambiguous',
|
|
22
|
-
presets: [
|
|
23
|
-
['@babel/preset-env', presetEnvOptions],
|
|
24
|
-
['@babel/preset-react', { runtime: 'automatic' }],
|
|
25
|
-
'@babel/preset-typescript',
|
|
26
|
-
],
|
|
27
|
-
plugins: [
|
|
28
|
-
[
|
|
29
|
-
'babel-plugin-module-resolver',
|
|
30
|
-
{
|
|
31
|
-
alias: {
|
|
32
|
-
'@': isApp() ? './app' : './lib',
|
|
33
|
-
},
|
|
34
|
-
stripExtensions: [],
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
|
-
['babel-plugin-styled-components', { displayName: true }],
|
|
38
|
-
['@babel/plugin-transform-runtime', { regenerator: true }],
|
|
39
|
-
'@babel/plugin-proposal-class-properties',
|
|
40
|
-
'@babel/plugin-syntax-dynamic-import',
|
|
41
|
-
'@babel/plugin-proposal-export-default-from',
|
|
42
|
-
'lodash',
|
|
43
|
-
'date-fns',
|
|
44
|
-
],
|
|
45
|
-
env: {
|
|
46
|
-
development: {
|
|
47
|
-
plugins: [
|
|
48
|
-
['babel-plugin-styled-components', { displayName: true }],
|
|
49
|
-
'@babel/plugin-transform-react-jsx-source',
|
|
50
|
-
],
|
|
51
|
-
},
|
|
52
|
-
production: {
|
|
53
|
-
plugins: [
|
|
54
|
-
['babel-plugin-styled-components', { displayName: false, pure: true }],
|
|
55
|
-
['transform-remove-console', { exclude: ['error', 'warn'] }],
|
|
56
|
-
'transform-react-remove-prop-types',
|
|
57
|
-
'@babel/plugin-transform-react-inline-elements',
|
|
58
|
-
'@babel/plugin-transform-react-constant-elements',
|
|
59
|
-
],
|
|
60
|
-
},
|
|
61
|
-
test: {
|
|
62
|
-
plugins: [
|
|
63
|
-
['babel-plugin-styled-components', { displayName: true }],
|
|
64
|
-
'@babel/plugin-transform-modules-commonjs',
|
|
65
|
-
'dynamic-import-node',
|
|
66
|
-
[
|
|
67
|
-
'babel-plugin-transform-strip-block',
|
|
68
|
-
{
|
|
69
|
-
requireDirective: true,
|
|
70
|
-
identifiers: [{ start: 'block:start', end: 'block:end' }],
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
'babel-plugin-import-remove-resource-query',
|
|
74
|
-
],
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
if (
|
|
80
|
-
process.env.STORYBOOK_BUILD !== 'true' &&
|
|
81
|
-
process.env.TARGET_ENV !== 'node'
|
|
82
|
-
) {
|
|
83
|
-
config.env?.development?.plugins?.push?.('react-refresh/babel');
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// ToDo: Once ECC team migrates from webpack 3 to webpack 5 remove this strip-block plugin from commonjs output. without this they are receiving error when import.meta is used in app sdk
|
|
87
|
-
if (process.env.ES_MODULES === 'false') {
|
|
88
|
-
config.plugins.push([
|
|
89
|
-
'babel-plugin-transform-strip-block',
|
|
90
|
-
{
|
|
91
|
-
requireDirective: true,
|
|
92
|
-
identifiers: [{ start: 'block:start', end: 'block:end' }],
|
|
93
|
-
},
|
|
94
|
-
]);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
exports.babelConfig = config;
|
package/dist/cjs/index.cjs
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
const { babelConfig } = require('./babel.config.cjs');
|
|
2
|
-
const {
|
|
3
|
-
eslintFlatBaseConfig,
|
|
4
|
-
eslintFlatBaseConfigStrict,
|
|
5
|
-
} = require('./lint-config/eslint/flat/non-react-export.mjs');
|
|
6
|
-
const {
|
|
7
|
-
eslintFlatConfig,
|
|
8
|
-
eslintFlatConfigStrict,
|
|
9
|
-
} = require('./lint-config/eslint/flat/react-export.mjs');
|
|
10
|
-
const {
|
|
11
|
-
esConfig: eslintBaseConfig,
|
|
12
|
-
} = require('./lint-config/eslint/non-react.cjs');
|
|
13
|
-
const {
|
|
14
|
-
esReactConfig: eslintConfig,
|
|
15
|
-
} = require('./lint-config/eslint/react.cjs');
|
|
16
|
-
const { stylelintConfig } = require('./lint-config/stylelint/export.mjs');
|
|
17
|
-
const { prettierConfig } = require('./lint-config/prettier.config.cjs');
|
|
18
|
-
const { commitlintConfig } = require('./lint-config/commitlint.config.cjs');
|
|
19
|
-
const { jestConfig } = require('./testing/jest.config.cjs');
|
|
20
|
-
const { jestNodeConfig } = require('./testing/jest.node.config.cjs');
|
|
21
|
-
|
|
22
|
-
module.exports = {
|
|
23
|
-
babelConfig,
|
|
24
|
-
eslintFlatBaseConfig,
|
|
25
|
-
eslintFlatBaseConfigStrict,
|
|
26
|
-
eslintFlatConfig,
|
|
27
|
-
eslintFlatConfigStrict,
|
|
28
|
-
eslintBaseConfig,
|
|
29
|
-
eslintConfig,
|
|
30
|
-
stylelintConfig,
|
|
31
|
-
prettierConfig,
|
|
32
|
-
commitlintConfig,
|
|
33
|
-
jestConfig,
|
|
34
|
-
jestNodeConfig,
|
|
35
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
exports.commitlintConfig = { extends: ['@commitlint/config-conventional'] };
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
const { isApp } = require('./utils.cjs');
|
|
2
|
-
|
|
3
|
-
const nodeEnvPreset = {
|
|
4
|
-
modules: process.env.ES_MODULES === 'false' ? 'commonjs' : false,
|
|
5
|
-
targets: {
|
|
6
|
-
node: 'current',
|
|
7
|
-
},
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const webEnvPreset = {
|
|
11
|
-
modules: process.env.ES_MODULES === 'false' ? 'commonjs' : false,
|
|
12
|
-
useBuiltIns: 'usage',
|
|
13
|
-
corejs: { version: '3.36', proposals: true },
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
const presetEnvOptions =
|
|
17
|
-
process.env.TARGET_ENV === 'node' ? nodeEnvPreset : webEnvPreset;
|
|
18
|
-
|
|
19
|
-
const config = {
|
|
20
|
-
ignore: [/\/core-js/],
|
|
21
|
-
sourceType: 'unambiguous',
|
|
22
|
-
presets: [
|
|
23
|
-
['@babel/preset-env', presetEnvOptions],
|
|
24
|
-
['@babel/preset-react', { runtime: 'automatic' }],
|
|
25
|
-
'@babel/preset-typescript',
|
|
26
|
-
],
|
|
27
|
-
plugins: [
|
|
28
|
-
[
|
|
29
|
-
'babel-plugin-module-resolver',
|
|
30
|
-
{
|
|
31
|
-
alias: {
|
|
32
|
-
'@': isApp() ? './app' : './lib',
|
|
33
|
-
},
|
|
34
|
-
stripExtensions: [],
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
|
-
['babel-plugin-styled-components', { displayName: true }],
|
|
38
|
-
['@babel/plugin-transform-runtime', { regenerator: true }],
|
|
39
|
-
'@babel/plugin-proposal-class-properties',
|
|
40
|
-
'@babel/plugin-syntax-dynamic-import',
|
|
41
|
-
'@babel/plugin-proposal-export-default-from',
|
|
42
|
-
'lodash',
|
|
43
|
-
'date-fns',
|
|
44
|
-
],
|
|
45
|
-
env: {
|
|
46
|
-
development: {
|
|
47
|
-
plugins: [
|
|
48
|
-
['babel-plugin-styled-components', { displayName: true }],
|
|
49
|
-
'@babel/plugin-transform-react-jsx-source',
|
|
50
|
-
],
|
|
51
|
-
},
|
|
52
|
-
production: {
|
|
53
|
-
plugins: [
|
|
54
|
-
['babel-plugin-styled-components', { displayName: false, pure: true }],
|
|
55
|
-
['transform-remove-console', { exclude: ['error', 'warn'] }],
|
|
56
|
-
'transform-react-remove-prop-types',
|
|
57
|
-
'@babel/plugin-transform-react-inline-elements',
|
|
58
|
-
'@babel/plugin-transform-react-constant-elements',
|
|
59
|
-
],
|
|
60
|
-
},
|
|
61
|
-
test: {
|
|
62
|
-
plugins: [
|
|
63
|
-
['babel-plugin-styled-components', { displayName: true }],
|
|
64
|
-
'@babel/plugin-transform-modules-commonjs',
|
|
65
|
-
'dynamic-import-node',
|
|
66
|
-
[
|
|
67
|
-
'babel-plugin-transform-strip-block',
|
|
68
|
-
{
|
|
69
|
-
requireDirective: true,
|
|
70
|
-
identifiers: [{ start: 'block:start', end: 'block:end' }],
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
'babel-plugin-import-remove-resource-query',
|
|
74
|
-
],
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
if (
|
|
80
|
-
process.env.STORYBOOK_BUILD !== 'true' &&
|
|
81
|
-
process.env.TARGET_ENV !== 'node'
|
|
82
|
-
) {
|
|
83
|
-
config.env?.development?.plugins?.push?.('react-refresh/babel');
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// ToDo: Once ECC team migrates from webpack 3 to webpack 5 remove this strip-block plugin from commonjs output. without this they are receiving error when import.meta is used in app sdk
|
|
87
|
-
if (process.env.ES_MODULES === 'false') {
|
|
88
|
-
config.plugins.push([
|
|
89
|
-
'babel-plugin-transform-strip-block',
|
|
90
|
-
{
|
|
91
|
-
requireDirective: true,
|
|
92
|
-
identifiers: [{ start: 'block:start', end: 'block:end' }],
|
|
93
|
-
},
|
|
94
|
-
]);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
exports.babelConfig = config;
|
package/dist/esm/index.cjs
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
const { babelConfig } = require('./babel.config.cjs');
|
|
2
|
-
const {
|
|
3
|
-
eslintFlatBaseConfig,
|
|
4
|
-
eslintFlatBaseConfigStrict,
|
|
5
|
-
} = require('./lint-config/eslint/flat/non-react-export.mjs');
|
|
6
|
-
const {
|
|
7
|
-
eslintFlatConfig,
|
|
8
|
-
eslintFlatConfigStrict,
|
|
9
|
-
} = require('./lint-config/eslint/flat/react-export.mjs');
|
|
10
|
-
const {
|
|
11
|
-
esConfig: eslintBaseConfig,
|
|
12
|
-
} = require('./lint-config/eslint/non-react.cjs');
|
|
13
|
-
const {
|
|
14
|
-
esReactConfig: eslintConfig,
|
|
15
|
-
} = require('./lint-config/eslint/react.cjs');
|
|
16
|
-
const { stylelintConfig } = require('./lint-config/stylelint/export.mjs');
|
|
17
|
-
const { prettierConfig } = require('./lint-config/prettier.config.cjs');
|
|
18
|
-
const { commitlintConfig } = require('./lint-config/commitlint.config.cjs');
|
|
19
|
-
const { jestConfig } = require('./testing/jest.config.cjs');
|
|
20
|
-
const { jestNodeConfig } = require('./testing/jest.node.config.cjs');
|
|
21
|
-
|
|
22
|
-
module.exports = {
|
|
23
|
-
babelConfig,
|
|
24
|
-
eslintFlatBaseConfig,
|
|
25
|
-
eslintFlatBaseConfigStrict,
|
|
26
|
-
eslintFlatConfig,
|
|
27
|
-
eslintFlatConfigStrict,
|
|
28
|
-
eslintBaseConfig,
|
|
29
|
-
eslintConfig,
|
|
30
|
-
stylelintConfig,
|
|
31
|
-
prettierConfig,
|
|
32
|
-
commitlintConfig,
|
|
33
|
-
jestConfig,
|
|
34
|
-
jestNodeConfig,
|
|
35
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
exports.commitlintConfig = { extends: ['@commitlint/config-conventional'] };
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export { config as babelConfig };
|
|
2
|
-
declare namespace config {
|
|
3
|
-
let ignore: RegExp[];
|
|
4
|
-
let sourceType: string;
|
|
5
|
-
let presets: (string | (string | {
|
|
6
|
-
modules: string | boolean;
|
|
7
|
-
targets: {
|
|
8
|
-
node: string;
|
|
9
|
-
};
|
|
10
|
-
} | {
|
|
11
|
-
modules: string | boolean;
|
|
12
|
-
useBuiltIns: string;
|
|
13
|
-
corejs: {
|
|
14
|
-
version: string;
|
|
15
|
-
proposals: boolean;
|
|
16
|
-
};
|
|
17
|
-
})[] | (string | {
|
|
18
|
-
runtime: string;
|
|
19
|
-
})[])[];
|
|
20
|
-
let plugins: (string | (string | {
|
|
21
|
-
alias: {
|
|
22
|
-
'@': string;
|
|
23
|
-
};
|
|
24
|
-
stripExtensions: never[];
|
|
25
|
-
})[] | (string | {
|
|
26
|
-
displayName: boolean;
|
|
27
|
-
})[] | (string | {
|
|
28
|
-
regenerator: boolean;
|
|
29
|
-
})[])[];
|
|
30
|
-
namespace env {
|
|
31
|
-
namespace development {
|
|
32
|
-
let plugins_1: (string | (string | {
|
|
33
|
-
displayName: boolean;
|
|
34
|
-
})[])[];
|
|
35
|
-
export { plugins_1 as plugins };
|
|
36
|
-
}
|
|
37
|
-
namespace production {
|
|
38
|
-
let plugins_2: (string | (string | {
|
|
39
|
-
displayName: boolean;
|
|
40
|
-
pure: boolean;
|
|
41
|
-
})[] | (string | {
|
|
42
|
-
exclude: string[];
|
|
43
|
-
})[])[];
|
|
44
|
-
export { plugins_2 as plugins };
|
|
45
|
-
}
|
|
46
|
-
namespace test {
|
|
47
|
-
let plugins_3: (string | (string | {
|
|
48
|
-
displayName: boolean;
|
|
49
|
-
})[] | (string | {
|
|
50
|
-
requireDirective: boolean;
|
|
51
|
-
identifiers: {
|
|
52
|
-
start: string;
|
|
53
|
-
end: string;
|
|
54
|
-
}[];
|
|
55
|
-
})[])[];
|
|
56
|
-
export { plugins_3 as plugins };
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { babelConfig } from "./babel.config.cjs";
|
|
2
|
-
import { eslintFlatBaseConfig } from "./lint-config/eslint/flat/non-react-export.mjs";
|
|
3
|
-
import { eslintFlatBaseConfigStrict } from "./lint-config/eslint/flat/non-react-export.mjs";
|
|
4
|
-
import { eslintFlatConfig } from "./lint-config/eslint/flat/react-export.mjs";
|
|
5
|
-
import { eslintFlatConfigStrict } from "./lint-config/eslint/flat/react-export.mjs";
|
|
6
|
-
import { esConfig as eslintBaseConfig } from "./lint-config/eslint/non-react.cjs";
|
|
7
|
-
import { esReactConfig as eslintConfig } from "./lint-config/eslint/react.cjs";
|
|
8
|
-
import { stylelintConfig } from "./lint-config/stylelint/export.mjs";
|
|
9
|
-
import { prettierConfig } from "./lint-config/prettier.config.cjs";
|
|
10
|
-
import { commitlintConfig } from "./lint-config/commitlint.config.cjs";
|
|
11
|
-
import { jestConfig } from "./testing/jest.config.cjs";
|
|
12
|
-
import { jestNodeConfig } from "./testing/jest.node.config.cjs";
|
|
13
|
-
export { babelConfig, eslintFlatBaseConfig, eslintFlatBaseConfigStrict, eslintFlatConfig, eslintFlatConfigStrict, eslintBaseConfig, eslintConfig, stylelintConfig, prettierConfig, commitlintConfig, jestConfig, jestNodeConfig };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
exports.commitlintConfig = { extends: ['@commitlint/config-conventional'] };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|