nx-react-native-cli 1.0.9 ā 1.0.10
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/lib/index.cjs +1 -1
- package/package.json +1 -1
- package/contents/.eslintrc.json +0 -293
- package/contents/.husky/pre-commit +0 -5
- package/contents/.husky/pre-push +0 -15
- package/contents/.nvmrc +0 -1
- package/contents/.prettierignore +0 -8
- package/contents/.prettierrc +0 -13
- package/contents/.ruby-version +0 -1
- package/contents/.vscode/extensions.json +0 -10
- package/contents/.vscode/settings.json +0 -18
- package/contents/apps/mobile/.env.template +0 -3
- package/contents/apps/mobile/.eslintrc.json +0 -34
- package/contents/apps/mobile/Gemfile +0 -11
- package/contents/apps/mobile/android/app/build.gradle +0 -164
- package/contents/apps/mobile/android/app/src/dev/res/values/strings.xml +0 -3
- package/contents/apps/mobile/android/app/src/production/res/values/strings.xml +0 -3
- package/contents/apps/mobile/android/build.gradle +0 -34
- package/contents/apps/mobile/babel.config.json +0 -14
- package/contents/apps/mobile/fastlane/.env.template +0 -24
- package/contents/apps/mobile/fastlane/Fastfile +0 -303
- package/contents/apps/mobile/fastlane/Matchfile +0 -5
- package/contents/apps/mobile/fastlane/Pluginfile +0 -6
- package/contents/apps/mobile/fastlane/README.md +0 -65
- package/contents/apps/mobile/package.json +0 -77
- package/contents/apps/mobile/project.json +0 -102
- package/contents/apps/mobile/src/app/index.tsx +0 -68
- package/contents/apps/mobile/src/components/atoms/BottomSheet/bottom-sheet.component.tsx +0 -145
- package/contents/apps/mobile/src/components/atoms/BottomSheet/index.ts +0 -1
- package/contents/apps/mobile/src/components/atoms/Button/button.component.tsx +0 -55
- package/contents/apps/mobile/src/components/atoms/Button/index.ts +0 -2
- package/contents/apps/mobile/src/components/atoms/Button/outlined-button.component.tsx +0 -59
- package/contents/apps/mobile/src/components/atoms/Divider/divider-component.tsx +0 -13
- package/contents/apps/mobile/src/components/atoms/Divider/index.ts +0 -1
- package/contents/apps/mobile/src/components/atoms/InputLayout/index.ts +0 -1
- package/contents/apps/mobile/src/components/atoms/InputLayout/input-layout.component.tsx +0 -34
- package/contents/apps/mobile/src/components/atoms/ListLoadingItem/index.ts +0 -1
- package/contents/apps/mobile/src/components/atoms/ListLoadingItem/list-loading-item.component.tsx +0 -56
- package/contents/apps/mobile/src/components/atoms/Modal/index.ts +0 -1
- package/contents/apps/mobile/src/components/atoms/Modal/modal.component.tsx +0 -58
- package/contents/apps/mobile/src/components/atoms/ScreenLoader/index.ts +0 -1
- package/contents/apps/mobile/src/components/atoms/ScreenLoader/screen-loader.component.tsx +0 -17
- package/contents/apps/mobile/src/components/atoms/Skeleton/index.ts +0 -1
- package/contents/apps/mobile/src/components/atoms/Skeleton/skeleton.component.tsx +0 -42
- package/contents/apps/mobile/src/components/atoms/Text/index.ts +0 -1
- package/contents/apps/mobile/src/components/atoms/Text/text.component.tsx +0 -23
- package/contents/apps/mobile/src/components/atoms/TextInput/constants.ts +0 -43
- package/contents/apps/mobile/src/components/atoms/TextInput/index.ts +0 -2
- package/contents/apps/mobile/src/components/atoms/TextInput/text-input.component.tsx +0 -137
- package/contents/apps/mobile/src/components/atoms/index.ts +0 -10
- package/contents/apps/mobile/src/components/index.ts +0 -3
- package/contents/apps/mobile/src/components/molecules/BackButton/back-button.component.tsx +0 -58
- package/contents/apps/mobile/src/components/molecules/BackButton/index.ts +0 -1
- package/contents/apps/mobile/src/components/molecules/BottomActionsContainer/BottomActionsContainer.component.tsx +0 -28
- package/contents/apps/mobile/src/components/molecules/BottomActionsContainer/index.ts +0 -1
- package/contents/apps/mobile/src/components/molecules/ScreenContainer/index.ts +0 -1
- package/contents/apps/mobile/src/components/molecules/ScreenContainer/screen-container.component.tsx +0 -100
- package/contents/apps/mobile/src/components/molecules/ScreenHeader/index.ts +0 -1
- package/contents/apps/mobile/src/components/molecules/ScreenHeader/screen-header.component.tsx +0 -71
- package/contents/apps/mobile/src/components/molecules/StorageManager/StorageManager.component.tsx +0 -18
- package/contents/apps/mobile/src/components/molecules/StorageManager/index.ts +0 -1
- package/contents/apps/mobile/src/components/molecules/index.ts +0 -5
- package/contents/apps/mobile/src/components/organisms/index.ts +0 -1
- package/contents/apps/mobile/src/config/index.ts +0 -13
- package/contents/apps/mobile/src/dimens/index.ts +0 -1
- package/contents/apps/mobile/src/env.d.ts +0 -17
- package/contents/apps/mobile/src/hooks/index.ts +0 -9
- package/contents/apps/mobile/src/hooks/useAppState.hook.tsx +0 -20
- package/contents/apps/mobile/src/hooks/useApplicationDimensions.hook.tsx +0 -10
- package/contents/apps/mobile/src/hooks/useDebounce.hook.ts +0 -11
- package/contents/apps/mobile/src/hooks/useGetLayoutHeight.hook.tsx +0 -27
- package/contents/apps/mobile/src/hooks/useGetLayoutWidth.hook.tsx +0 -27
- package/contents/apps/mobile/src/hooks/useNavigation.hook.tsx +0 -8
- package/contents/apps/mobile/src/hooks/useShakeAnimation.hook.tsx +0 -32
- package/contents/apps/mobile/src/hooks/useTextInputChangeFocus.hook.tsx +0 -12
- package/contents/apps/mobile/src/hooks/useThrottle.hook.ts +0 -11
- package/contents/apps/mobile/src/icons/arrow-left.svg +0 -3
- package/contents/apps/mobile/src/icons/checkbox-active.svg +0 -4
- package/contents/apps/mobile/src/icons/checkbox-unactive.svg +0 -4
- package/contents/apps/mobile/src/icons/close.svg +0 -3
- package/contents/apps/mobile/src/icons/download.svg +0 -4
- package/contents/apps/mobile/src/icons/email.svg +0 -10
- package/contents/apps/mobile/src/icons/eye-slash.svg +0 -11
- package/contents/apps/mobile/src/icons/eye.svg +0 -4
- package/contents/apps/mobile/src/icons/gear.svg +0 -4
- package/contents/apps/mobile/src/icons/home.svg +0 -3
- package/contents/apps/mobile/src/icons/index.ts +0 -33
- package/contents/apps/mobile/src/icons/pencil.svg +0 -3
- package/contents/apps/mobile/src/icons/phone.svg +0 -3
- package/contents/apps/mobile/src/icons/user-circle.svg +0 -3
- package/contents/apps/mobile/src/icons/user.svg +0 -4
- package/contents/apps/mobile/src/icons/warning.svg +0 -3
- package/contents/apps/mobile/src/main.tsx +0 -5
- package/contents/apps/mobile/src/routes/index.tsx +0 -65
- package/contents/apps/mobile/src/routes/privateRoutes.tsx +0 -32
- package/contents/apps/mobile/src/routes/publicRoutes.tsx +0 -26
- package/contents/apps/mobile/src/routes/routes.enum.ts +0 -5
- package/contents/apps/mobile/src/routes/screen-options.ts +0 -9
- package/contents/apps/mobile/src/routes/screens.enum.ts +0 -4
- package/contents/apps/mobile/src/screens/HomeScreen/home.screen.tsx +0 -12
- package/contents/apps/mobile/src/screens/LoginScreen/login.screen.tsx +0 -13
- package/contents/apps/mobile/src/stores/index.ts +0 -1
- package/contents/apps/mobile/src/stores/local-storage.store.ts +0 -60
- package/contents/apps/mobile/src/stores/mmkvStorage.ts +0 -19
- package/contents/apps/mobile/src/tailwind/index.ts +0 -24
- package/contents/apps/mobile/src/types/component.type.ts +0 -13
- package/contents/apps/mobile/src/types/index.ts +0 -1
- package/contents/apps/mobile/tailwind.config.js +0 -80
- package/contents/apps/mobile/tsconfig.app.json +0 -11
- package/contents/check-env.sh +0 -44
- package/contents/clean-generated-outputs.sh +0 -32
package/lib/index.cjs
CHANGED
|
@@ -61,7 +61,7 @@ ${m.description}`:"";return`${[a,v,b].filter(Boolean).join(" ")}
|
|
|
61
61
|
${g}${k}${E}${j2.default.cursorHide}`});var f1=q(require("node:readline"),1),B=q(u1(),1),xl=q(c1(),1),x1=q(Na(),1),d1=q(dt(),1),l1={set:(e,r="",t)=>{let n=e;r.split(".").forEach((i,u,o)=>{i==="__proto__"||i==="constructor"||(u===o.length-1?n[i]=t:i in n||(n[i]={}),n=n[i])})},get:(e,r="",t)=>{let n=u=>String.prototype.split.call(r,u).filter(Boolean).reduce((o,a)=>o!=null?o[a]:o,e),i=n(/[,[\]]+?/)||n(/[,.[\]]+?/);return i===void 0||i===e?t:i}};function ll(e,r,t){if(r in e){let n=e[r];if(typeof n=="function")return(0,B.from)((0,xl.default)(n)(t).then(i=>Object.assign(e,{[r]:i})))}return(0,B.of)(e)}var fl=class extends Error{isTtyError=!0};function xS(e={}){e.skipTTYChecks=e.skipTTYChecks===void 0?!0:e.skipTTYChecks;let r=e.input||process.stdin;if(!e.skipTTYChecks&&!r.isTTY)throw new fl("Prompts can not be meaningfully rendered in non-TTY environments");let t=new x1.default;return t.pipe(e.output||process.stdout),{terminal:!0,...e,input:r,output:t}}function dS(e){return Object.values(e).every(r=>typeof r=="object"&&!Array.isArray(r)&&r!=null)}function DS(e){return e.prototype&&"run"in e.prototype&&typeof e.prototype.run=="function"}var sn=class{prompts;answers={};process=B.EMPTY;onClose;opt;rl;constructor(r,t){this.opt=t,this.prompts=r}run(r,t){this.answers=typeof t=="object"?{...t}:{};let n;Array.isArray(r)?n=(0,B.from)(r):(0,B.isObservable)(r)?n=r:dS(r)?n=(0,B.from)(Object.entries(r).map(([u,o])=>Object.assign({},o,{name:u}))):n=(0,B.from)([r]),this.process=n.pipe((0,B.concatMap)(u=>this.processQuestion(u)));let i=(0,B.lastValueFrom)(this.process.pipe((0,B.reduce)((u,o)=>(l1.set(u,o.name,o.answer),u),this.answers))).then(()=>this.onCompletion(),u=>this.onError(u));return Object.assign(i,{ui:this})}onCompletion(){return this.close(),this.answers}onError(r){return this.close(),Promise.reject(r)}processQuestion(r){return r={...r},(0,B.defer)(()=>(0,B.of)(r).pipe((0,B.concatMap)(this.setDefaultType),(0,B.concatMap)(this.filterIfRunnable),(0,B.concatMap)(n=>ll(n,"message",this.answers)),(0,B.concatMap)(n=>ll(n,"default",this.answers)),(0,B.concatMap)(n=>ll(n,"choices",this.answers)),(0,B.concatMap)(n=>("choices"in n&&(n.choices=n.choices.map(i=>typeof i=="string"?{name:i,value:i}:i)),(0,B.of)(n))),(0,B.concatMap)(n=>this.fetchAnswer(n))))}fetchAnswer(r){let t=this.prompts[r.type];if(t==null)throw new Error(`Prompt for type ${r.type} not found`);return DS(t)?(0,B.defer)(()=>{let n=f1.default.createInterface(xS(this.opt));n.resume();let i=()=>{n.removeListener("SIGINT",this.onForceClose),n.setPrompt(""),n.output.unmute(),n.output.write(d1.default.cursorShow),n.output.end(),n.close()};this.onClose=i,this.rl=n,process.on("exit",this.onForceClose),n.on("SIGINT",this.onForceClose);let u=new t(r,n,this.answers);return(0,B.from)(u.run().then(o=>(i(),this.onClose=void 0,this.rl=void 0,{name:r.name,answer:o})))}):(0,B.defer)(()=>(0,B.from)(t(r,this.opt).then(n=>({name:r.name,answer:n}))))}onForceClose=()=>{this.close(),process.kill(process.pid,"SIGINT"),console.log("")};close=()=>{process.removeListener("exit",this.onForceClose),typeof this.onClose=="function"&&this.onClose()};setDefaultType=r=>(this.prompts[r.type]||(r.type="input"),(0,B.defer)(()=>(0,B.of)(r)));filterIfRunnable=r=>{if(r.askAnswered!==!0&&l1.get(this.answers,r.name)!==void 0)return B.EMPTY;let{when:t}=r;return t===!1?B.EMPTY:typeof t!="function"?(0,B.of)(r):(0,B.defer)(()=>(0,B.from)((0,xl.default)(t)(this.answers).then(n=>{if(n)return r})).pipe((0,B.filter)(n=>n!=null)))}};var D1={input:$s,select:Ui,list:Ui,number:Vs,confirm:Us,rawlist:Ks,expand:Gs,checkbox:Qa,password:Ys,editor:Ns};function h1(e){function r(t,n){let i=new sn(r.prompts,e);try{return i.run(t,n)}catch(u){let o=Promise.reject(u);return Object.assign(o,{ui:i})}}return r.prompts={...D1},r.registerPrompt=function(t,n){return r.prompts[t]=n,this},r.restoreDefaultPrompts=function(){r.prompts={...D1}},r}var dl=h1();function hS(e,r){dl.registerPrompt(e,r)}function pS(){dl.restoreDefaultPrompts()}var mS={prompt:dl,ui:{Prompt:sn},createPromptModule:h1,registerPrompt:hS,restoreDefaultPrompts:pS,Separator:ue},p1=mS;var Xn=q(require("node:process"),1);var ml=q(require("node:process"),1);var A1=q(require("node:process"),1),O1=q(E1(),1),S1=q(w1(),1),bS=(0,O1.default)(()=>{(0,S1.default)(()=>{A1.default.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),B1=bS;var ia=!1,xn={};xn.show=(e=ml.default.stderr)=>{e.isTTY&&(ia=!1,e.write("\x1B[?25h"))};xn.hide=(e=ml.default.stderr)=>{e.isTTY&&(B1(),ia=!0,e.write("\x1B[?25l"))};xn.toggle=(e,r)=>{e!==void 0&&(ia=e),ia?xn.show(r):xn.hide(r)};var vl=xn;var Zn=q(Di(),1);var ge=q(require("node:process"),1);function bl(){return ge.default.platform!=="win32"?ge.default.env.TERM!=="linux":!!ge.default.env.CI||!!ge.default.env.WT_SESSION||!!ge.default.env.TERMINUS_SUBLIME||ge.default.env.ConEmuTask==="{cmd::Cmder}"||ge.default.env.TERM_PROGRAM==="Terminus-Sublime"||ge.default.env.TERM_PROGRAM==="vscode"||ge.default.env.TERM==="xterm-256color"||ge.default.env.TERM==="alacritty"||ge.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var ES={info:ie.blue("\u2139"),success:ie.green("\u2714"),warning:ie.yellow("\u26A0"),error:ie.red("\u2716")},FS={info:ie.blue("i"),success:ie.green("\u221A"),warning:ie.yellow("\u203C"),error:ie.red("\xD7")},_S=bl()?ES:FS,Jn=_S;function El({onlyFirst:e=!1}={}){let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(r,e?void 0:"g")}var yS=El();function Qn(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(yS,"")}function q1(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function j1(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function P1(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function gS(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function T1(e,{ambiguousAsWide:r=!1}={}){return gS(e),j1(e)||P1(e)||r&&q1(e)?2:1}var I1=q(k1(),1),CS=new Intl.Segmenter,wS=/^\p{Default_Ignorable_Code_Point}$/u;function Fl(e,r={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:t=!0,countAnsiEscapeCodes:n=!1}=r;if(n||(e=Qn(e)),e.length===0)return 0;let i=0,u={ambiguousAsWide:!t};for(let{segment:o}of CS.segment(e)){let a=o.codePointAt(0);if(!(a<=31||a>=127&&a<=159)&&!(a>=8203&&a<=8207||a===65279)&&!(a>=768&&a<=879||a>=6832&&a<=6911||a>=7616&&a<=7679||a>=8400&&a<=8447||a>=65056&&a<=65071)&&!(a>=55296&&a<=57343)&&!(a>=65024&&a<=65039)&&!wS.test(o)){if((0,I1.default)().test(o)){i+=2;continue}i+=T1(a,u)}}return i}function _l({stream:e=process.stdout}={}){return!!(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var je=q(require("node:process"),1);function yl(){return je.default.platform!=="win32"?je.default.env.TERM!=="linux":!!je.default.env.WT_SESSION||!!je.default.env.TERMINUS_SUBLIME||je.default.env.ConEmuTask==="{cmd::Cmder}"||je.default.env.TERM_PROGRAM==="Terminus-Sublime"||je.default.env.TERM_PROGRAM==="vscode"||je.default.env.TERM==="xterm-256color"||je.default.env.TERM==="alacritty"||je.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Pe=q(require("node:process"),1),AS=3,gl=class{#i=0;start(){this.#i++,this.#i===1&&this.#t()}stop(){if(this.#i<=0)throw new Error("`stop` called more times than `start`");this.#i--,this.#i===0&&this.#e()}#t(){Pe.default.platform==="win32"||!Pe.default.stdin.isTTY||(Pe.default.stdin.setRawMode(!0),Pe.default.stdin.on("data",this.#u),Pe.default.stdin.resume())}#e(){Pe.default.stdin.isTTY&&(Pe.default.stdin.off("data",this.#u),Pe.default.stdin.pause(),Pe.default.stdin.setRawMode(!1))}#u(r){r[0]===AS&&Pe.default.emit("SIGINT")}},OS=new gl,Cl=OS;var SS=q(Di(),1),wl=class{#i=0;#t=!1;#e=0;#u=0;#r;#o;#n;#x;#d;#c;#l;#f;#h;#a;#s;color;constructor(r){typeof r=="string"&&(r={text:r}),this.#r={color:"cyan",stream:Xn.default.stderr,discardStdin:!0,hideCursor:!0,...r},this.color=this.#r.color,this.spinner=this.#r.spinner,this.#d=this.#r.interval,this.#n=this.#r.stream,this.#c=typeof this.#r.isEnabled=="boolean"?this.#r.isEnabled:_l({stream:this.#n}),this.#l=typeof this.#r.isSilent=="boolean"?this.#r.isSilent:!1,this.text=this.#r.text,this.prefixText=this.#r.prefixText,this.suffixText=this.#r.suffixText,this.indent=this.#r.indent,Xn.default.env.NODE_ENV==="test"&&(this._stream=this.#n,this._isEnabled=this.#c,Object.defineProperty(this,"_linesToClear",{get(){return this.#i},set(t){this.#i=t}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#u}}),Object.defineProperty(this,"_lineCount",{get(){return this.#e}}))}get indent(){return this.#f}set indent(r=0){if(!(r>=0&&Number.isInteger(r)))throw new Error("The `indent` option must be an integer from 0 and up");this.#f=r,this.#D()}get interval(){return this.#d??this.#o.interval??100}get spinner(){return this.#o}set spinner(r){if(this.#u=0,this.#d=void 0,typeof r=="object"){if(r.frames===void 0)throw new Error("The given spinner must have a `frames` property");this.#o=r}else if(!yl())this.#o=Zn.default.line;else if(r===void 0)this.#o=Zn.default.dots;else if(r!=="default"&&Zn.default[r])this.#o=Zn.default[r];else throw new Error(`There is no built-in spinner named '${r}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#h}set text(r=""){this.#h=r,this.#D()}get prefixText(){return this.#a}set prefixText(r=""){this.#a=r,this.#D()}get suffixText(){return this.#s}set suffixText(r=""){this.#s=r,this.#D()}get isSpinning(){return this.#x!==void 0}#p(r=this.#a,t=" "){return typeof r=="string"&&r!==""?r+t:typeof r=="function"?r()+t:""}#m(r=this.#s,t=" "){return typeof r=="string"&&r!==""?t+r:typeof r=="function"?t+r():""}#D(){let r=this.#n.columns??80,t=this.#p(this.#a,"-"),n=this.#m(this.#s,"-"),i=" ".repeat(this.#f)+t+"--"+this.#h+"--"+n;this.#e=0;for(let u of Qn(i).split(`
|
|
62
62
|
`))this.#e+=Math.max(1,Math.ceil(Fl(u,{countAnsiEscapeCodes:!0})/r))}get isEnabled(){return this.#c&&!this.#l}set isEnabled(r){if(typeof r!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#c=r}get isSilent(){return this.#l}set isSilent(r){if(typeof r!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#l=r}frame(){let{frames:r}=this.#o,t=r[this.#u];this.color&&(t=ie[this.color](t)),this.#u=++this.#u%r.length;let n=typeof this.#a=="string"&&this.#a!==""?this.#a+" ":"",i=typeof this.text=="string"?" "+this.text:"",u=typeof this.#s=="string"&&this.#s!==""?" "+this.#s:"";return n+t+i+u}clear(){if(!this.#c||!this.#n.isTTY)return this;this.#n.cursorTo(0);for(let r=0;r<this.#i;r++)r>0&&this.#n.moveCursor(0,-1),this.#n.clearLine(1);return(this.#f||this.lastIndent!==this.#f)&&this.#n.cursorTo(this.#f),this.lastIndent=this.#f,this.#i=0,this}render(){return this.#l?this:(this.clear(),this.#n.write(this.frame()),this.#i=this.#e,this)}start(r){return r&&(this.text=r),this.#l?this:this.#c?this.isSpinning?this:(this.#r.hideCursor&&vl.hide(this.#n),this.#r.discardStdin&&Xn.default.stdin.isTTY&&(this.#t=!0,Cl.start()),this.render(),this.#x=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.#n.write(`- ${this.text}
|
|
63
63
|
`),this)}stop(){return this.#c?(clearInterval(this.#x),this.#x=void 0,this.#u=0,this.clear(),this.#r.hideCursor&&vl.show(this.#n),this.#r.discardStdin&&Xn.default.stdin.isTTY&&this.#t&&(Cl.stop(),this.#t=!1),this):this}succeed(r){return this.stopAndPersist({symbol:Jn.success,text:r})}fail(r){return this.stopAndPersist({symbol:Jn.error,text:r})}warn(r){return this.stopAndPersist({symbol:Jn.warning,text:r})}info(r){return this.stopAndPersist({symbol:Jn.info,text:r})}stopAndPersist(r={}){if(this.#l)return this;let t=r.prefixText??this.#a,n=this.#p(t," "),i=r.symbol??" ",u=r.text??this.text,o=typeof u=="string"?" "+u:"",a=r.suffixText??this.#s,s=this.#m(a," "),c=n+i+o+s+`
|
|
64
|
-
`;return this.stop(),this.#n.write(c),this}};function ei(e){return new wl(e)}var R1=require("child_process"),dn=q(require("fs"),1),ua=q(require("path"),1);function L1(){return __dirname}var Dn=(e,r)=>{(0,R1.execSync)(`cd ${e} && ${r}`,{stdio:"inherit"})},Ge=(e,r)=>{let t=ua.default.join(L1(),`../
|
|
64
|
+
`;return this.stop(),this.#n.write(c),this}};function ei(e){return new wl(e)}var R1=require("child_process"),dn=q(require("fs"),1),ua=q(require("path"),1);function L1(){return __dirname}var Dn=(e,r)=>{(0,R1.execSync)(`cd ${e} && ${r}`,{stdio:"inherit"})},Ge=(e,r)=>{let t=ua.default.join(L1(),`../templates/${r}`);dn.default.copyFile(t,e,n=>{if(n){console.error(`Error copying file: ${n.message}`);return}})},oa=(e,r)=>{let t=ua.default.join(L1(),`../templates/${r}`);dn.default.cpSync(t,e,{recursive:!0},n=>{if(n){console.error(`Error copying file: ${n.message}`);return}})},N1=e=>{dn.default.rmSync(e,{recursive:!0,force:!0},r=>{if(r){console.error(`Error removing directory: ${r.message}`);return}})},U1=e=>{let r={"android:connect":"cd apps/mobile && npm run android:connect","check-env:mobile":"./check-env.sh apps/mobile/.env apps/mobile/.env.template",clean:"./clean-generated-outputs.sh","create-env":"printenv > ","lint:all":"npx nx run-many -t lint -p mobile --parallel=1 --skip-nx-cache","lint:mobile":"npx nx run mobile:lint --skip-nx-cache","mobile-android":"cd apps/mobile && npm run run-android","mobile-ios":"cd apps/mobile && npm run run-ios",prepare:"husky install","serve:mobile":"cd apps/mobile && npm start","serve:all":"npx nx run-many -t serve -p mobile --parallel=1 --skip-nx-cache",xcode:"cd apps/mobile && npm run xcode","setup-fastlane":"cd apps/mobile && npm run setup-fastlane","deploy-android:dev":"cd apps/mobile && npm run deploy-android:dev","deploy-ios:dev":"cd apps/mobile && npm run deploy-ios:dev","ios-certificates":"cd apps/mobile && npm run ios-certificates"},t=ua.default.join(e,"package.json"),n=JSON.parse(dn.default.readFileSync(t,"utf8"));n.scripts={...n.scripts,...r},dn.default.writeFileSync(t,JSON.stringify(n,null,2))};oi.name("React Native Starter with NX").description("A starter script to create a new React Native project with NX").version("1.0.0");oi.command("create [workspace_name]").description("create nx workspace with react-native").action(async e=>{e||(e=(await p1.prompt([{type:"input",name:"workspace_name",message:"Enter the workspace name"}])).workspace_name);let r=process.cwd(),t=`${r}/${e}`;console.log(ie.green(`Creating Nx workspace in ./${e}!`));let n=ei().start("Creating Nx workspace");(0,$1.execSync)(`cd ${r} && npx create-nx-workspace@19.4.4 --preset apps --workspaceType integrated --name ${e} --nxCloud skip`,{stdio:"inherit"}),n.succeed("Nx workspace created");let i=ei().start("Adding React Native");Dn(t,"npm i -D @nx/react-native@17.3.0 --ignore-scripts",{stdio:"inherit"}),Dn(t,"npx nx g @nx/react-native:app apps/mobile --skip-nx-cache",{stdio:"inherit"}),Dn(t,"npm install --save-dev react-native-dotenv husky prettier@3.3.2 @typescript-eslint/parser@6.21.0 eslint-config-airbnb-typescript@17.1.0 eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-react-perf eslint-plugin-sonarjs@0.25.1 @tanstack/eslint-plugin-query eslint-plugin-tailwindcss eslint-config-prettier @typescript-eslint/eslint-plugin@6.13.2 eslint-plugin-import eslint-plugin-sort-destructure-keys eslint-plugin-sort-keys-fix eslint-plugin-prettier prettier-plugin-tailwindcss eslint-import-resolver-typescript @swc-node/register@~1.8.0",{stdio:"inherit"}),Dn(t,"npm install tailwindcss twrnc react-native-keyboard-aware-scroll-view react-native-safe-area-context @react-navigation/core @react-navigation/native @react-navigation/native-stack @react-navigation/routers @react-navigation/stack react-native-gesture-handler react-native-screens react-native-reanimated dayjs zustand jotai @tanstack/query-core @tanstack/query-sync-storage-persister @tanstack/react-query @tanstack/react-query-persist-client axios jotai-optics lodash react-hook-form react-native-fast-image react-native-get-random-values react-native-simple-toast react-native-url-polyfill zod zod-validation-error @react-native-async-storage/async-storage @react-native-community/hooks @gorhom/bottom-sheet @hookform/resolvers @react-native-community/datetimepicker @react-navigation/material-top-tabs @tanstack/query-async-storage-persister babel-plugin-module-resolver react-native-dotenv react-native-mmkv react-native-modal-datetime-picker react-native-pager-view react-native-modal react-native-svg-transformer react-native-url-polyfill uuid",{stdio:"inherit"}),i.succeed("React Native added");let u=ei().start("Adding files");oa(`${t}/.vscode`,".vscode"),oa(`${t}/.husky`,".husky"),Ge(`${t}/.prettierrc`,".prettierrc"),Ge(`${t}/.prettierignore`,".prettierignore"),Ge(`${t}/.eslintrc.json`,".eslintrc.json"),Ge(`${t}/.eslintrc.json`,".eslintrc.json"),Ge(`${t}/.gitignore`,".gitignore"),Ge(`${t}/.ruby-version`,".ruby-version"),Ge(`${t}/.nvmrc`,".nvmrc"),Ge(`${t}/check-env.sh`,"check-env.sh"),Ge(`${t}/clean-generated-outputs.sh`,"clean-generated-outputs.sh"),N1(`${t}/apps/mobile/src`),oa(`${t}/apps`,"apps"),Dn(t,`keytool -genkey -keystore ${t}/apps/mobile/android/app/dev.keystore -keyalg RSA -keysize 2048 -validity 10000 -alias dev -dname "cn=Unknown, ou=Unknown, o=Unknown, c=Unknown" -storepass development -keypass development`,{stdio:"inherit"}),U1(t),u.succeed("Files added"),console.log(ie.green("Project created successfully!")),console.log(ie.blue("Next Steps? Rename your app using https://www.npmjs.com/package/react-native-rename")),console.log(ie.blue("Don't forget to wide search for 'AppsMobile' and replace it with your app name")),console.log(ie.blue("Run `npm run serve:mobile` to start the project! Happy coding!"))});oi.parse(process.argv);
|
|
65
65
|
/*! Bundled license information:
|
|
66
66
|
|
|
67
67
|
tmp/lib/tmp.js:
|
package/package.json
CHANGED
package/contents/.eslintrc.json
DELETED
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
"ignorePatterns": ["**/*"],
|
|
4
|
-
"plugins": ["@nx"],
|
|
5
|
-
"settings": {
|
|
6
|
-
"import/parsers": {
|
|
7
|
-
"@typescript-eslint/parser": [".ts", ".tsx"] // @typescript-eslint/parser
|
|
8
|
-
},
|
|
9
|
-
"import/resolver": {
|
|
10
|
-
"typescript": {
|
|
11
|
-
"project": ["tsconfig.base.json"]
|
|
12
|
-
},
|
|
13
|
-
"node": {
|
|
14
|
-
"project": ["tsconfig.base.json"]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"overrides": [
|
|
19
|
-
{
|
|
20
|
-
"parserOptions": {
|
|
21
|
-
"project": "tsconfig.base.json"
|
|
22
|
-
},
|
|
23
|
-
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
|
24
|
-
"extends": [
|
|
25
|
-
"airbnb-typescript", // eslint-config-airbnb-typescript
|
|
26
|
-
"eslint:recommended", // eslint-plugin-react
|
|
27
|
-
"plugin:react/recommended", // eslint-plugin-react
|
|
28
|
-
"plugin:react-hooks/recommended", // eslint-plugin-react-hooks
|
|
29
|
-
"plugin:react-perf/recommended", // eslint-plugin-react-perf
|
|
30
|
-
"plugin:sonarjs/recommended", // eslint-plugin-sonarjs
|
|
31
|
-
"plugin:@tanstack/eslint-plugin-query/recommended", // @tanstack/eslint-plugin-query
|
|
32
|
-
"plugin:tailwindcss/recommended", // eslint-plugin-tailwindcss
|
|
33
|
-
"prettier" // eslint-config-prettier
|
|
34
|
-
],
|
|
35
|
-
"plugins": [
|
|
36
|
-
"@typescript-eslint", // @typescript-eslint/eslint-plugin
|
|
37
|
-
"react", // eslint-plugin-react
|
|
38
|
-
"react-perf", // eslint-plugin-react-perf
|
|
39
|
-
"react-hooks", // eslint-plugin-react-hooks
|
|
40
|
-
"@tanstack/query", // @tanstack/eslint-plugin-query
|
|
41
|
-
"sonarjs", // eslint-plugin-sonarjs
|
|
42
|
-
"import", // eslint-plugin-import
|
|
43
|
-
"sort-destructure-keys", // eslint-plugin-sort-destructure-keys
|
|
44
|
-
"sort-keys-fix", // eslint-plugin-sort-keys-fix
|
|
45
|
-
"prettier" // eslint-plugin-prettier
|
|
46
|
-
],
|
|
47
|
-
"settings": {
|
|
48
|
-
"import/resolver": {
|
|
49
|
-
"node": {
|
|
50
|
-
"extensions": [".js", ".jsx", ".ts", ".tsx"]
|
|
51
|
-
},
|
|
52
|
-
"typescript": {}
|
|
53
|
-
},
|
|
54
|
-
"react": {
|
|
55
|
-
"version": "detect"
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"rules": {
|
|
59
|
-
"@nx/enforce-module-boundaries": [
|
|
60
|
-
"error",
|
|
61
|
-
{
|
|
62
|
-
"enforceBuildableLibDependency": true,
|
|
63
|
-
"allow": [],
|
|
64
|
-
"depConstraints": [
|
|
65
|
-
{
|
|
66
|
-
"sourceTag": "*",
|
|
67
|
-
"onlyDependOnLibsWithTags": ["*"]
|
|
68
|
-
}
|
|
69
|
-
]
|
|
70
|
-
}
|
|
71
|
-
],
|
|
72
|
-
"@tanstack/query/exhaustive-deps": "error",
|
|
73
|
-
"array-bracket-spacing": ["error", "never"],
|
|
74
|
-
"arrow-body-style": ["error", "as-needed"],
|
|
75
|
-
"arrow-parens": ["error", "always"],
|
|
76
|
-
"brace-style": "error",
|
|
77
|
-
"comma-dangle": [
|
|
78
|
-
"error",
|
|
79
|
-
{
|
|
80
|
-
"arrays": "always-multiline",
|
|
81
|
-
"exports": "always-multiline",
|
|
82
|
-
"functions": "only-multiline",
|
|
83
|
-
"imports": "always-multiline",
|
|
84
|
-
"objects": "always-multiline"
|
|
85
|
-
}
|
|
86
|
-
],
|
|
87
|
-
"comma-spacing": [
|
|
88
|
-
"error",
|
|
89
|
-
{
|
|
90
|
-
"after": true,
|
|
91
|
-
"before": false
|
|
92
|
-
}
|
|
93
|
-
],
|
|
94
|
-
"curly": "error",
|
|
95
|
-
"eol-last": ["error", "always"],
|
|
96
|
-
"eqeqeq": ["error", "always"],
|
|
97
|
-
"func-names": "error",
|
|
98
|
-
"import/no-extraneous-dependencies": "off",
|
|
99
|
-
"import/no-unresolved": "error",
|
|
100
|
-
"sort-destructure-keys/sort-destructure-keys": [
|
|
101
|
-
"error",
|
|
102
|
-
{
|
|
103
|
-
"caseSensitive": false
|
|
104
|
-
}
|
|
105
|
-
],
|
|
106
|
-
"sort-keys-fix/sort-keys-fix": "warn",
|
|
107
|
-
"import/order": [
|
|
108
|
-
"error",
|
|
109
|
-
{
|
|
110
|
-
"alphabetize": {
|
|
111
|
-
"order": "asc"
|
|
112
|
-
},
|
|
113
|
-
"groups": [
|
|
114
|
-
"builtin",
|
|
115
|
-
"external",
|
|
116
|
-
"internal",
|
|
117
|
-
"parent",
|
|
118
|
-
"sibling",
|
|
119
|
-
"index"
|
|
120
|
-
],
|
|
121
|
-
"newlines-between": "always"
|
|
122
|
-
}
|
|
123
|
-
],
|
|
124
|
-
"jsx-quotes": ["error", "prefer-double"],
|
|
125
|
-
"key-spacing": [
|
|
126
|
-
"error",
|
|
127
|
-
{
|
|
128
|
-
"mode": "strict"
|
|
129
|
-
}
|
|
130
|
-
],
|
|
131
|
-
"max-depth": ["error", 3],
|
|
132
|
-
"max-len": [
|
|
133
|
-
"error",
|
|
134
|
-
{
|
|
135
|
-
"code": 125,
|
|
136
|
-
"ignoreComments": true,
|
|
137
|
-
"ignoreStrings": true,
|
|
138
|
-
"ignoreTemplateLiterals": true
|
|
139
|
-
}
|
|
140
|
-
],
|
|
141
|
-
"max-params": ["error", 3],
|
|
142
|
-
"no-alert": "error",
|
|
143
|
-
"no-console": "warn",
|
|
144
|
-
"no-duplicate-imports": "error",
|
|
145
|
-
"no-empty-function": "warn",
|
|
146
|
-
"no-extra-boolean-cast": "warn",
|
|
147
|
-
"no-extra-semi": "warn",
|
|
148
|
-
"no-magic-numbers": [
|
|
149
|
-
"error",
|
|
150
|
-
{
|
|
151
|
-
"ignore": [-1, 0, 1, 2, 30, 60, 100, 1000],
|
|
152
|
-
"ignoreArrayIndexes": true
|
|
153
|
-
}
|
|
154
|
-
],
|
|
155
|
-
"no-multi-spaces": "warn",
|
|
156
|
-
"no-multiple-empty-lines": [
|
|
157
|
-
"error",
|
|
158
|
-
{
|
|
159
|
-
"max": 1,
|
|
160
|
-
"maxEOF": 0
|
|
161
|
-
}
|
|
162
|
-
],
|
|
163
|
-
"no-plusplus": "warn",
|
|
164
|
-
"no-trailing-spaces": "warn",
|
|
165
|
-
"no-unreachable": "error",
|
|
166
|
-
"no-unused-expressions": "warn",
|
|
167
|
-
"no-unused-vars": "off",
|
|
168
|
-
"no-use-before-define": "off",
|
|
169
|
-
"no-var": "error",
|
|
170
|
-
"padding-line-between-statements": [
|
|
171
|
-
"error",
|
|
172
|
-
{
|
|
173
|
-
"blankLine": "always",
|
|
174
|
-
"next": "return",
|
|
175
|
-
"prev": "*"
|
|
176
|
-
}
|
|
177
|
-
],
|
|
178
|
-
"prefer-arrow-callback": "warn",
|
|
179
|
-
"prefer-const": "error",
|
|
180
|
-
"prettier/prettier": [
|
|
181
|
-
"error",
|
|
182
|
-
{
|
|
183
|
-
"endOfLine": "auto"
|
|
184
|
-
}
|
|
185
|
-
],
|
|
186
|
-
"quotes": ["error", "single", { "avoidEscape": true }],
|
|
187
|
-
"react-hooks/exhaustive-deps": "warn",
|
|
188
|
-
"react-hooks/rules-of-hooks": "error",
|
|
189
|
-
"react-perf/jsx-no-new-array-as-prop": "off",
|
|
190
|
-
"react-perf/jsx-no-new-function-as-prop": "off",
|
|
191
|
-
"react-perf/jsx-no-new-object-as-prop": "off",
|
|
192
|
-
"react/display-name": "off",
|
|
193
|
-
"react/jsx-filename-extension": [
|
|
194
|
-
"warn",
|
|
195
|
-
{
|
|
196
|
-
"extensions": [".tsx", ".ts"]
|
|
197
|
-
}
|
|
198
|
-
],
|
|
199
|
-
"react/jsx-handler-names": [
|
|
200
|
-
"error",
|
|
201
|
-
{
|
|
202
|
-
"eventHandlerPrefix": "handle",
|
|
203
|
-
"eventHandlerPropPrefix": "on"
|
|
204
|
-
}
|
|
205
|
-
],
|
|
206
|
-
"react/jsx-sort-props": [
|
|
207
|
-
"error",
|
|
208
|
-
{
|
|
209
|
-
"callbacksLast": true,
|
|
210
|
-
"ignoreCase": true,
|
|
211
|
-
"reservedFirst": true,
|
|
212
|
-
"shorthandFirst": true
|
|
213
|
-
}
|
|
214
|
-
],
|
|
215
|
-
"react/prefer-stateless-function": "error",
|
|
216
|
-
"react/prop-types": "off",
|
|
217
|
-
"react/react-in-jsx-scope": "off",
|
|
218
|
-
"react/sort-comp": [
|
|
219
|
-
"error",
|
|
220
|
-
{
|
|
221
|
-
"order": [
|
|
222
|
-
"type-annotations",
|
|
223
|
-
"static-methods",
|
|
224
|
-
"lifecycle",
|
|
225
|
-
"/^handle.+$/",
|
|
226
|
-
"everything-else",
|
|
227
|
-
"render"
|
|
228
|
-
]
|
|
229
|
-
}
|
|
230
|
-
],
|
|
231
|
-
"semi": ["error", "always"],
|
|
232
|
-
"semi-spacing": [
|
|
233
|
-
"error",
|
|
234
|
-
{
|
|
235
|
-
"after": true,
|
|
236
|
-
"before": false
|
|
237
|
-
}
|
|
238
|
-
],
|
|
239
|
-
"sonarjs/cognitive-complexity": ["error", 50],
|
|
240
|
-
"sort-keys": [
|
|
241
|
-
"error",
|
|
242
|
-
"asc",
|
|
243
|
-
{
|
|
244
|
-
"caseSensitive": true,
|
|
245
|
-
"minKeys": 2,
|
|
246
|
-
"natural": false
|
|
247
|
-
}
|
|
248
|
-
],
|
|
249
|
-
"space-before-blocks": "error",
|
|
250
|
-
"space-before-function-paren": [
|
|
251
|
-
"error",
|
|
252
|
-
{
|
|
253
|
-
"anonymous": "always",
|
|
254
|
-
"asyncArrow": "always",
|
|
255
|
-
"named": "never"
|
|
256
|
-
}
|
|
257
|
-
],
|
|
258
|
-
"space-in-parens": ["error", "never"],
|
|
259
|
-
"tailwindcss/classnames-order": "off"
|
|
260
|
-
}
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
"files": ["*.ts", "*.tsx"],
|
|
264
|
-
"extends": ["plugin:@nx/typescript"],
|
|
265
|
-
"rules": {
|
|
266
|
-
"@typescript-eslint/consistent-type-definitions": "off",
|
|
267
|
-
"@typescript-eslint/no-explicit-any": "off",
|
|
268
|
-
"@typescript-eslint/no-use-before-define": "off",
|
|
269
|
-
"@typescript-eslint/no-unused-vars": [
|
|
270
|
-
"error",
|
|
271
|
-
{
|
|
272
|
-
"args": "none"
|
|
273
|
-
}
|
|
274
|
-
],
|
|
275
|
-
"@typescript-eslint/ban-types": [
|
|
276
|
-
"error",
|
|
277
|
-
{
|
|
278
|
-
"types": {
|
|
279
|
-
"{}": false,
|
|
280
|
-
"Function": false
|
|
281
|
-
},
|
|
282
|
-
"extendDefaults": true
|
|
283
|
-
}
|
|
284
|
-
]
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
"files": ["*.js", "*.jsx"],
|
|
289
|
-
"extends": ["plugin:@nx/javascript"],
|
|
290
|
-
"rules": {}
|
|
291
|
-
}
|
|
292
|
-
]
|
|
293
|
-
}
|
package/contents/.husky/pre-push
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
. "$(dirname "$0")/_/husky.sh"
|
|
3
|
-
|
|
4
|
-
echo -e "===\n>> Checking branch name..."
|
|
5
|
-
BRANCH=`git rev-parse --abbrev-ref HEAD`
|
|
6
|
-
PROTECTED_BRANCHES="^(main|staging|development)$"
|
|
7
|
-
BRANCH_COMMAND=$(ps -ocommand= -p $PPID | awk '{print $NF}')
|
|
8
|
-
|
|
9
|
-
if [[ "$BRANCH" =~ $PROTECTED_BRANCHES ]]
|
|
10
|
-
then
|
|
11
|
-
echo -e "\nš« Cannot push to remote $BRANCH branch, please create your own branch and create a PR." && exit 1
|
|
12
|
-
fi
|
|
13
|
-
|
|
14
|
-
echo -e ">> Finished checking branch name.\n==="
|
|
15
|
-
|
package/contents/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
v18.17.0
|
package/contents/.prettierignore
DELETED
package/contents/.prettierrc
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"arrowParens": "always",
|
|
3
|
-
"endOfLine": "auto",
|
|
4
|
-
"plugins": ["prettier-plugin-tailwindcss"],
|
|
5
|
-
"printWidth": 100,
|
|
6
|
-
"semi": true,
|
|
7
|
-
"singleQuote": true,
|
|
8
|
-
"tabWidth": 2,
|
|
9
|
-
"tailwindAttributes": ["className", "style"],
|
|
10
|
-
"tailwindFunctions": ["clsx", "tw", "twMerge"],
|
|
11
|
-
"trailingComma": "all",
|
|
12
|
-
"useTabs": false
|
|
13
|
-
}
|
package/contents/.ruby-version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3.1.2
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
3
|
-
"editor.formatOnSave": true,
|
|
4
|
-
"editor.codeActionsOnSave": {
|
|
5
|
-
"source.fixAll": "explicit",
|
|
6
|
-
"source.fixAll.stylelint": "never"
|
|
7
|
-
},
|
|
8
|
-
"files.insertFinalNewline": true,
|
|
9
|
-
"[typescriptreact]": {
|
|
10
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
11
|
-
},
|
|
12
|
-
"typescript.preferences.importModuleSpecifier": "project-relative",
|
|
13
|
-
"tailwindCSS.classAttributes": ["className", "style"],
|
|
14
|
-
"tailwindCSS.experimental.classRegex": [
|
|
15
|
-
"tw`([^`]*)",
|
|
16
|
-
["tw.style\\(([^)]*)\\)", "'([^']*)'"]
|
|
17
|
-
]
|
|
18
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": ["plugin:@nx/react", "../../.eslintrc.json"],
|
|
3
|
-
"ignorePatterns": [
|
|
4
|
-
"!**/*",
|
|
5
|
-
".cache",
|
|
6
|
-
".next/**/*",
|
|
7
|
-
"*.d.ts",
|
|
8
|
-
"*.spec.ts",
|
|
9
|
-
"babel.config.js",
|
|
10
|
-
"jest.config.ts",
|
|
11
|
-
"metro.config.js",
|
|
12
|
-
"node_modules",
|
|
13
|
-
"project.json",
|
|
14
|
-
"react-native.config.js",
|
|
15
|
-
"tailwind.config.js",
|
|
16
|
-
"test-setup.ts",
|
|
17
|
-
"tsconfig.json",
|
|
18
|
-
"tsconfig.spec.json"
|
|
19
|
-
],
|
|
20
|
-
"overrides": [
|
|
21
|
-
{
|
|
22
|
-
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
|
23
|
-
"rules": {}
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"files": ["*.ts", "*.tsx"],
|
|
27
|
-
"rules": {}
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"files": ["*.js", "*.jsx"],
|
|
31
|
-
"rules": {}
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
source 'https://rubygems.org'
|
|
2
|
-
|
|
3
|
-
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
|
|
4
|
-
ruby ">= 2.6.10"
|
|
5
|
-
gem "fastlane", "= 2.221.1"
|
|
6
|
-
|
|
7
|
-
gem 'cocoapods', '~> 1.13'
|
|
8
|
-
gem 'activesupport', '>= 6.1.7.3', '< 7.1.0'
|
|
9
|
-
|
|
10
|
-
plugins_path = File.join(File.dirname(__FILE__), './fastlane', 'Pluginfile')
|
|
11
|
-
eval_gemfile(plugins_path) if File.exist?(plugins_path)
|