chayns-toolkit 2.0.6 → 2.0.8
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/cli.js +1 -1
- package/lib/cli.js +2 -2
- package/package.json +2 -1
package/cli.js
CHANGED
package/lib/cli.js
CHANGED
|
@@ -34,7 +34,7 @@ attempted value: ${s}
|
|
|
34
34
|
<!-- The React Devtools connection script -->
|
|
35
35
|
<script src="http://localhost:8097"><\/script>
|
|
36
36
|
${d.substring(B)}`}if(d){let B=t==="production"?{removeComments:!0,collapseWhitespace:!0,removeRedundantAttributes:!0,useShortDoctype:!0,removeEmptyAttributes:!0,removeStyleLinkTypeAttributes:!0,keepClosingSlash:!0,minifyJS:!0,minifyCSS:!0,minifyURLs:!0}:void 0;g.push(new Bl.default({templateContent:d,minify:B}))}if(e&&g.push(new Gl.BundleAnalyzerPlugin),t==="production"&&g.push(new Ll.CleanWebpackPlugin),kl(t),t==="development"&&g.push(new Il.default({overlay:!1})),!f)throw Error("The name field in package.json has to be provided.");!n&&t!=="development"&&g.push(new Di.default({filename:`static/css/${f}.[contenthash].css`,chunkFilename:`static/css/${f}.[chunkhash].chunk.css`}));let m=t!=="production",x=Jt({packageJson:s}),_=Nl.createHash("md5").update([JSON.stringify(x),process.env.BABEL_ENV,process.env.NODE_ENV,$l.version].join("--")).digest("hex"),w=[];j.hasFile("jsconfig.json")?w.push(new ji.default({configFile:"jsconfig.json",extensions:[".js",".jsx"]})):j.hasFile("tsconfig.json")&&w.push(new ji.default({extensions:[".js",".jsx",".ts",".tsx"]}));function O(B){let b=this.domAPI.moduleCss||document.querySelector(".module-css:not(.injected)");this.domAPI.moduleCss=b,b?(b.appendChild(B),b.classList.add("injected")):document.head.appendChild(B)}return{entry:!h||!l||j.hasFile("src/index.js")||j.hasFile("src/index.jsx")||j.hasFile("src/index.ts")||j.hasFile("src/index.tsx")?{index:j.resolvePath("src/index")}:{},mode:t,target:t==="development"?"web":"browserslist",devtool:m?"eval-cheap-source-map":!1,context:j.resolvePath("."),output:{path:i!=null?i:j.resolvePath("build/"),hashDigestLength:12,filename:f1({mode:t,filename:r,singleBundle:n,packageName:f}),assetModuleFilename:"static/media/[hash][ext][query]",chunkLoadingGlobal:h&&l?`webpackChunk${f==null?void 0:f.split("-").join("_")}__${process.env.BUILD_ENV||process.env.NODE_ENV}__${process.env.VERSION}`:void 0},resolve:{extensions:[".js",".jsx",".ts",".tsx"],plugins:w},module:{rules:[{test:/\.(js|jsx)$/,use:require.resolve("source-map-loader"),include:/node_modules\/chayns-components/},{test:/\.(js|jsx|ts|tsx)$/,use:{loader:require.resolve("babel-loader"),options:{presets:[["chayns-toolkit/babel",x]],babelrc:!1,configFile:!1,compact:t==="production",cacheDirectory:!0,cacheIdentifier:_}},exclude:/node_modules/},{test:/\.(css|scss)/,use:[t==="development"||n?{loader:require.resolve("style-loader"),options:u?{insert:O}:void 0}:Di.default.loader,{loader:require.resolve("css-loader"),options:{modules:{auto:!0,localIdentName:t==="development"?"[path][name]__[local]":"[hash:base64]",exportLocalsConvention:"camelCase"}}},{loader:require.resolve("postcss-loader"),options:{postcssOptions:{plugins:[["postcss-preset-env",{autoprefixer:{flexbox:"no-2009"},stage:2}],"postcss-flexbugs-fixes",t==="production"&&"cssnano",a&&["postcss-prefix-selector",{prefix:`.${f}`}]].filter(Boolean)}}},require.resolve("sass-loader")]},{test:/\.(png|jpe?g|gif|webp)$/i,type:"asset",parser:{dataUrlCondition:{maxSize:10*1024}}},{test:/\.svg$/,use:require.resolve("@svgr/webpack")}]},plugins:g,optimization:{splitChunks:l||n?!1:{chunks:"all"}},performance:!1}}function f1({mode:t,filename:e,singleBundle:r,packageName:n}){let i=r?"":"static/js/",s=e.replace("[package]",(0,Vl.paramCase)(n));return t==="development"?`${i}[name].bundle.js`:i+s}var gt=F(Br()),D={path(t){return gt.default.hex("#16BDCA")(`\`${rn(t)}\``)},command(t){return gt.default.hex("#AC94FA")(`\`${rn(t)}\``)},code(t){return gt.default.hex("#76A9FA")(`\`${rn(t)}\``)},alt(t){return gt.default.hex("#97A6BA")(rn(t))},number(t){return gt.default.hex("#F17EB8")(t)}};function rn(t){return p1(t)?t[0]:t}function p1(t){return Array.isArray(t)}var Kg=F(require("webpack"));var J=F(Gg()),bR=J.object({host:J.string().max(255).default("adaptive").required(),port:J.number().positive().max(65535).default(1234).required(),cert:J.string().notRequired(),key:J.string().notRequired()}).required().noUnknown(),vR=J.object({singleBundle:J.boolean().default(!1).required(),filename:J.string().default("[package].[contenthash].js").required(),path:J.string().notRequired(),injectCssInPage:J.boolean().notRequired(),prefixCss:J.boolean().notRequired(),exposeModules:J.object().notRequired(),injectChaynsCss:J.boolean().notRequired(),apiVersion:J.number().notRequired()}).required().noUnknown(),Ug=J.object({development:bR,output:vR,webpack:J.mixed().notRequired().default(null).test("is-function-or-null","${path} is not a function or null",t=>typeof t=="function"||t===null),jest:J.mixed().notRequired().default(null).test("is-function-or-null","${path} is not a function or null",t=>typeof t=="function"||t===null),webpackDev:J.mixed().notRequired().default(null)}).required().noUnknown();async function Wg(){var e;let t={};if(j.hasFile(Sr))t=await Promise.resolve().then(()=>F(require(j.resolvePath(Sr))));else if(j.hasFile(zg)){let r=(e=await j.readFile(zg))!=null?e:"{}";t=JSON.parse(r)}try{let r=await Ug.validate(t),{host:n,cert:i,key:s}=r.development;if(n==="adaptive"){let o=Boolean(i&&s);r.development.host=o?"0.0.0.0":"localhost"}return r}catch(r){let n=r,i="";throw n.errors.length&&n.errors.forEach(s=>{i+=`- ${s}
|
|
37
|
-
`}),Error(i)}}var zg="chayns-toolkit.json",Sr="toolkit.config.js";function wr({config:t,dev:e,modifier:r}){if(!r)return t;let n=r(t,{webpack:Kg.default,dev:e});if(n===void 0)throw Error(`The webpack customization function in your ${D.path(Sr)} returned nothing.`);if(typeof n!="object")throw Error(`The webpack customization function in your ${D.path(Sr)} returned an invalid configuration.`);return n}var Er=F(Br()),q={info(t){console.info(`${Er.default.hex("#76A9FA")("info ")} - ${t}`)},hint(t){console.info(`${Er.default.hex("#31C48D")("hint ")} - ${t}`)},warn(t){console.info(`${Er.default.hex("#FACA15")("warn ")} - ${t}`)},error(t){console.info(`${Er.default.hex("#F98080")("error")} - ${t}`)},blank(t){console.info(` ${t}`)},exit(t){console.info(""),t?process.exit(t):process.exit()}};function Yg(t){return new Promise((e,r)=>{t.run((n,i)=>{n?r(n):i?e(i):r(Error("No stats available."))})})}function Jg(t){return new Promise((e,r)=>{t.close(n=>{n?r(n):e()})})}var kt=()=>{let t=new URL("https://domain.chayns.net/css/".replace("domain","api")),e=new URLSearchParams(window.location.search.toLowerCase());t.searchParams.set("siteId",e.get("siteid")||""),e.has("colormode")&&t.searchParams.set("colormode",e.get("colormode")||"");let r="hidden",n=o=>{document.documentElement.style.visibility=o?"":r,document.documentElement.style.overflow=o?"":r};n(!1);let i=document.getElementsByTagName("HEAD")[0],s=document.createElement("link");return s.rel="stylesheet",s.type="text/css",s.href=t.toString(),s.onload=()=>{n(!0)},s.onerror=()=>{n(!0)},i.appendChild(s),""};function Qg({analyze:t}){return async({config:e,packageJson:r})=>{var u;process.env.BABEL_ENV="production",process.env.NODE_ENV="production";let n=await tn({mode:"production",analyze:t,outputFilename:e.output.filename,singleBundle:e.output.singleBundle,path:e.output.path,packageJson:r,prefixCss:e.output.prefixCss,injectCssInPage:e.output.injectCssInPage,injectChaynsCss:e.output.injectChaynsCss,exposeModules:e.output.exposeModules,apiVersion:e.output.apiVersion});if(typeof e.webpack=="function"){let l=e.webpack;n=wr({config:n,dev:!1,modifier:l})}n.plugins=(u=n.plugins)==null?void 0:u.map(l=>{var c,h;return typeof l=="object"&&typeof l.userOptions=="object"&&(((c=l.userOptions)==null?void 0:c.template)?(typeof l.userOptions.templateParameters!="object"&&(l.userOptions.templateParameters={}),l.userOptions.templateParameters.CHAYNS_TOOLKIT_CSS_TAG=`<script>(${kt.toString()})()<\/script>`):((h=l.userOptions)==null?void 0:h.templateContent)&&(l.userOptions.templateContent=l.userOptions.templateContent.replace("<%= CHAYNS_TOOLKIT_CSS_TAG %>",`<script>(${kt.toString()})()<\/script>`))),l});let i=(0,Zg.default)(n),s=Date.now();q.info("Bundling your code...");let o=await Yg(i),a=(Date.now()-s)/1e3;if(await Jg(i),o==null?void 0:o.hasErrors())q.error(`Compilation failed.
|
|
37
|
+
`}),Error(i)}}var zg="chayns-toolkit.json",Sr="toolkit.config.js";function wr({config:t,dev:e,modifier:r}){if(!r)return t;let n=r(t,{webpack:Kg.default,dev:e});if(n===void 0)throw Error(`The webpack customization function in your ${D.path(Sr)} returned nothing.`);if(typeof n!="object")throw Error(`The webpack customization function in your ${D.path(Sr)} returned an invalid configuration.`);return n}var Er=F(Br()),q={info(t){console.info(`${Er.default.hex("#76A9FA")("info ")} - ${t}`)},hint(t){console.info(`${Er.default.hex("#31C48D")("hint ")} - ${t}`)},warn(t){console.info(`${Er.default.hex("#FACA15")("warn ")} - ${t}`)},error(t){console.info(`${Er.default.hex("#F98080")("error")} - ${t}`)},blank(t){console.info(` ${t}`)},exit(t){console.info(""),t?process.exit(t):process.exit()}};function Yg(t){return new Promise((e,r)=>{t.run((n,i)=>{n?r(n):i?e(i):r(Error("No stats available."))})})}function Jg(t){return new Promise((e,r)=>{t.close(n=>{n?r(n):e()})})}var kt=()=>{let t=new URL("https://domain.chayns.net/css/".replace("domain","api")),e=new URLSearchParams(window.location.search.toLowerCase());t.searchParams.set("siteId",e.get("stylesiteid")||e.get("siteid")||""),e.has("colormode")&&t.searchParams.set("colormode",e.get("colormode")||""),e.has("color")&&t.searchParams.set("color",e.get("color")||"");let r="hidden",n=o=>{document.documentElement.style.visibility=o?"":r,document.documentElement.style.overflow=o?"":r};n(!1);let i=document.getElementsByTagName("HEAD")[0],s=document.createElement("link");return s.rel="stylesheet",s.type="text/css",s.href=t.toString(),s.onload=()=>{n(!0)},s.onerror=()=>{n(!0)},i.appendChild(s),""};function Qg({analyze:t}){return async({config:e,packageJson:r})=>{var u;process.env.BABEL_ENV="production",process.env.NODE_ENV="production";let n=await tn({mode:"production",analyze:t,outputFilename:e.output.filename,singleBundle:e.output.singleBundle,path:e.output.path,packageJson:r,prefixCss:e.output.prefixCss,injectCssInPage:e.output.injectCssInPage,injectChaynsCss:e.output.injectChaynsCss,exposeModules:e.output.exposeModules,apiVersion:e.output.apiVersion});if(typeof e.webpack=="function"){let l=e.webpack;n=wr({config:n,dev:!1,modifier:l})}n.plugins=(u=n.plugins)==null?void 0:u.map(l=>{var c,h;return typeof l=="object"&&typeof l.userOptions=="object"&&(((c=l.userOptions)==null?void 0:c.template)?(typeof l.userOptions.templateParameters!="object"&&(l.userOptions.templateParameters={}),l.userOptions.templateParameters.CHAYNS_TOOLKIT_CSS_TAG=`<script>(${kt.toString()})()<\/script>`):((h=l.userOptions)==null?void 0:h.templateContent)&&(l.userOptions.templateContent=l.userOptions.templateContent.replace("<%= CHAYNS_TOOLKIT_CSS_TAG %>",`<script>(${kt.toString()})()<\/script>`))),l});let i=(0,Zg.default)(n),s=Date.now();q.info("Bundling your code...");let o=await Yg(i),a=(Date.now()-s)/1e3;if(await Jg(i),o==null?void 0:o.hasErrors())q.error(`Compilation failed.
|
|
38
38
|
`),o.compilation.errors.forEach(l=>{console.error(l)});else{let l=o==null?void 0:o.toJson(),{assets:c}=l;if(q.info(`Finished build in ${D.number(a.toFixed(2))} seconds. These files were emitted:`),console.info(""),c){let h=new Xg.default(ee(H({},xR),{colAligns:["left","right"]}));c.forEach(f=>{let g="B",d=f.size;f.size>1e6?(g="mB",d=f.size/1e6):f.size>1e3&&(g="kB",d=f.size/1e3);let m=`${d.toLocaleString("en-US",{maximumFractionDigits:2})} ${g}`,x=" ";f.size>5e5&&(x=Ws.default.yellow("!")),f.size>1e6&&(x=Ws.default.redBright("!")),h.push([f.name,m,x])}),console.info(h.toString())}}}}var xR={chars:{top:"","top-mid":"","top-left":"","top-right":"",bottom:"","bottom-mid":"","bottom-left":"","bottom-right":"",left:"","left-mid":"",mid:"","mid-mid":"",right:"","right-mid":"",middle:" "},style:{"padding-left":0,"padding-right":0}};var e_=F(require("child_process")),t_=F(require("path")),r_=F(require("webpack")),n_=F(require("webpack-dev-server"));var rt={install(t,e,r=!1){let n="npm i ";return t==="yarn"&&(n="yarn add "),Array.isArray(e)?n+=e.join(" "):n+=e,r&&(n+=" -D"),D.command(n)},remove(t,e){let r=t==="yarn"?"yarn remove ":"npm remove ";return r+=Array.isArray(e)?e.join(" "):e,D.command(r)},move(t,e,r){let n=Array.isArray(e)?e.join(" "):e;return t==="yarn"?D.command(`yarn remove ${n} && yarn add ${n}${r==="dev"?" -D":""}`):D.command(`npm install ${n}${r==="dev"?" -D":""}`)}};function i_({devtools:t}){return async({config:e,packageJson:r,packageManager:n})=>{var g;process.env.BABEL_ENV="development",process.env.NODE_ENV="development";let{port:i,host:s,cert:o,key:a}=e.development,u=await tn({analyze:!1,mode:"development",outputFilename:e.output.filename,singleBundle:e.output.singleBundle,packageJson:r,injectDevtoolsScript:t,prefixCss:e.output.prefixCss,injectCssInPage:e.output.injectCssInPage,injectChaynsCss:e.output.injectChaynsCss,exposeModules:e.output.exposeModules,apiVersion:e.output.apiVersion});if(typeof e.webpack=="function"){let d=e.webpack;u=wr({config:u,dev:!0,modifier:d})}u.plugins=(g=u.plugins)==null?void 0:g.map(d=>{var m,x;return typeof d=="object"&&typeof d.userOptions=="object"&&(((m=d.userOptions)==null?void 0:m.template)?(typeof d.userOptions.templateParameters!="object"&&(d.userOptions.templateParameters={}),d.userOptions.templateParameters.CHAYNS_TOOLKIT_CSS_TAG=`<script>(${kt.toString()})()<\/script>`):((x=d.userOptions)==null?void 0:x.templateContent)&&(d.userOptions.templateContent=d.userOptions.templateContent.replace("<%= CHAYNS_TOOLKIT_CSS_TAG %>",`<script>(${kt.toString()})()<\/script>`))),d}),t&&("react-devtools"in(r.dependencies||{})?(q.error(`You added ${D.code`react-devtools`} as a regular dependency.`),q.blank(`Install it under ${D.code`devDependencies`} by running ${rt.move(n,"react-devtools","dev")}.
|
|
39
39
|
`),process.exit(1)):"react-devtools"in(r.devDependencies||{})||(q.error(`You need to install the ${D.code`react-devtools`} package to use the ${D.command`--devtools`} option.`),q.blank(`Run ${rt.move(n,"react-devtools","dev")} to add it as a ${D.code`devDependency`}.
|
|
40
40
|
`),process.exit(1)),(0,e_.exec)(`node ${t_.join(require.resolve("react-devtools"),"../bin.js")}`));let l=(0,r_.default)(u),h=wr({config:{historyApiFallback:!0,compress:!0,allowedHosts:"all",host:s,port:i,client:{logging:"none",overlay:!1},server:{type:o&&a?"https":"http",options:{key:a,cert:o}},devMiddleware:{stats:{all:!1,colors:!0,errors:!0,warnings:!0}},hot:!0,headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET, POST, PUT, DELETE, PATCH, OPTIONS","Access-Control-Allow-Headers":"X-Requested-With, content-type, Authorization"}},dev:!0,modifier:e.webpackDev});new n_.default(h,l).startCallback(()=>{})}}var zs=F(require("eslint"));async function s_(){q.info("Linting your code...");try{let t=new zs.ESLint({fix:!0,extensions:["js","jsx","ts","tsx"]}),e=await t.lintFiles(["./src"]);await zs.ESLint.outputFixes(e);let r=e.reduce((s,o)=>s+o.warningCount,0),n=e.reduce((s,o)=>s+o.errorCount,0),i="";(r||n)&&(i=(await t.loadFormatter("pretty")).format(e)),n+r===0?q.info(`No linting errors were found.
|
|
@@ -49,7 +49,7 @@ ${d.substring(B)}`}if(d){let B=t==="production"?{removeComments:!0,collapseWhite
|
|
|
49
49
|
module.exports = `;var Ys=F(require("fs"));function c_({config:t}){let{cert:e,key:r}=t.development,n=!1;return r&&!e||!r&&e?(q.error(`You have specified the ${D.code(r?"key":"cert")} field in your ${D.path`chayns-toolkit.json`} file, but not ${D.code(r?"cert":"key")}. You need to specify paths in both fields for SSL to work.`),n=!0):(r&&(Ys.existsSync(r)||(q.error(`No file exists at the ${D.code`key`} path specified in ${D.path`chayns-toolkit.json`}.`),n=!0)),e&&(Ys.existsSync(e)||(q.error(`No file exists at the ${D.code`cert`} path specified in ${D.path`chayns-toolkit.json`}.`),n=!0))),n}var f_=F(require("fs")),p_=F(require("path")),h_=F(require("util")),wR=(0,h_.promisify)(f_.readFile);async function Js(t){let e=p_.resolve("package.json"),r=await wR(e,{encoding:"utf-8"}),n=JSON.parse(r),i=Object.keys(H(H({},n.dependencies),n.devDependencies));return Array.isArray(t)?i.filter(s=>t.some(o=>d_(o)?o.test(s):o===s)):d_(t)?i.some(s=>t.test(s)):i.includes(t)}function d_(t){return Object.prototype.toString.call(t)==="[object RegExp]"}async function m_(t){let e=await Js("@types/react"),r=await Js("@types/react-dom"),n=[!e&&"@types/react",!r&&"@types/react-dom"].filter(Boolean);if(n.length>0){let i=n.map(s=>D.code(s)).join(" and ");q.hint(`You should install the ${i} package${n.length>0?"s":""} to get TypeScript support for React.
|
|
50
50
|
`),t!==void 0&&q.blank(`Install them by running ${rt.install(t,n,!0)}`)}}async function g_(){var n;if(!j.hasFile("tsconfig.json"))return!0;let r=((n=await j.readFile("tsconfig.json"))!=null?n:"").replace(/\s/gi,"");return r===""||r==="{}"}var Cb=F(Ab());async function Ob(){return j.hasFile("tsconfig.json")?!0:(await(0,Cb.default)("src/**/*.{ts,tsx}")).length>0}async function Pb({packageJson:t,packageManager:e}){let r=Zr(t,"typescript"),n=await g_();return r?(await m_(e),n&&await Tb(),!1):await Ob()?(n&&await Tb(),q.error(`To use TypeScript, you have to install the ${D.code`typescript`} package by running ${rt.install(e,"typescript",!0)}.`),!0):!1}async function Tb(){await j.writeFile("tsconfig.json",JSON.stringify(vM,void 0,4)),q.info(`Seems like you want to use TypeScript. A ${D.path`tsconfig.json`} file has been set up for you.`)}var vM={compilerOptions:{allowJs:!0,allowSyntheticDefaultImports:!0,checkJs:!1,esModuleInterop:!0,experimentalDecorators:!0,isolatedModules:!0,jsx:"react",lib:["DOM","ESNext"],noEmit:!0,skipLibCheck:!0,strict:!0}};var ai=F(require("tcp-port-used"));async function Rb({config:t}){let{port:e,host:r}=t.development;if(await(0,ai.check)(e,r)){q.warn(`The port ${D.number(e)} on host ${D.code(r)} is already in use. Waiting for it to free up...`);try{return await(0,ai.waitUntilFreeOnHost)(e,r,500,6e4),q.info("Is has freed up. Starting the development server..."),!1}catch{return q.error("The port did not free up within 60 seconds."),!0}}return!1}function Fb(){let t=xM.some(r=>j.hasFile(r)),e=SM.some(r=>j.hasFile(r));if(t&&e&&(q.warn(`You have both ${D.path`package-lock.json`} and ${D.path`yarn.lock`} files in your project.
|
|
51
51
|
`),q.blank("Decide on wether you want to use Yarn or NPM and remove one of the lockfiles.")),t)return"npm";if(e)return"yarn"}var xM=["./package-lock.json","../package-lock.json","../../package-lock.json"],SM=["./yarn.lock","../yarn.lock","../../yarn.lock"];async function qb(){let t=await j.readFile("package.json");if(t===null)throw Error("No package.json file was found.");return JSON.parse(t)}async function ui(...t){let e;try{e=await Wg()}catch(s){let o=s;q.error(`An error occured while loading the ${D.path`chayns-toolkit.json`} file:
|
|
52
|
-
`),q.blank(o.message);return}let[r,n]=await Promise.all([qb(),Fb()]),i=!0;for(let s of t)if(i){for(let o of s)await o({config:e,packageJson:r,packageManager:n})&&(i=!1);t.indexOf(s)!==t.length-1&&q.blank("")}}var Gt=new kb.Command;Gt.version("2.0.
|
|
52
|
+
`),q.blank(o.message);return}let[r,n]=await Promise.all([qb(),Fb()]),i=!0;for(let s of t)if(i){for(let o of s)await o({config:e,packageJson:r,packageManager:n})&&(i=!1);t.indexOf(s)!==t.length-1&&q.blank("")}}var Gt=new kb.Command;Gt.version("2.0.8","-v, --version","output the version number");Gt.command("dev").description("start up a development server with hot module replacement").option("-d, --devtools","open react-devtools in a separate window",!1).action(async t=>{await ui([l_,Pb,c_,Rb],[i_({devtools:t.devtools})])});Gt.command("build").description("bundles your code for production").option("-a, --analyze","analyze your bundle size",!1).action(async t=>{try{await ui([Qg({analyze:t.analyze})])}catch(e){q.error(e)}console.info("")});Gt.command("lint").description("lints your code for possible errors").action(async()=>{await s_(),console.info("")});Gt.command("test").description("executes all Jest tests for this project").option("-w, --watch","watch for changes to rerun tests",!1).option("--setupFile <path>","file that should be executed before the tests are initialized","").action(async t=>{try{await ui([u_(t)])}catch(e){q.error(e)}console.info("")});Gt.parse(process.argv);
|
|
53
53
|
/*!
|
|
54
54
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
55
55
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chayns-toolkit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"description": "A zero-config toolchain for developing chayns® apps.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chayns",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"@babel/core": "^7.16.0",
|
|
48
48
|
"@babel/eslint-parser": "^7.16.3",
|
|
49
49
|
"@babel/helper-plugin-utils": "^7.14.5",
|
|
50
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
50
51
|
"@babel/plugin-proposal-decorators": "^7.16.4",
|
|
51
52
|
"@babel/plugin-proposal-private-property-in-object": "^7.18.6",
|
|
52
53
|
"@babel/plugin-transform-classes": "^7.19.0",
|