create-nexa-app 1.0.7 → 1.0.9

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/bin/nexa.js +14 -24
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -333,6 +333,6 @@ npm publish --access public
333
333
 
334
334
  - Clean onboarding (`npx create-nexa-app`)
335
335
  - Power user CLI (`nexa`)
336
- - Proper subpath support
336
+ - Proper subpath supportß
337
337
  - Professional documentation
338
338
  - No internal package leakage
package/bin/nexa.js CHANGED
@@ -814,21 +814,12 @@ coverage/
814
814
  const templateIndex = fs.readFileSync(publicIndexPath, "utf8");
815
815
  const patchedIndex = templateIndex
816
816
  .replace(/<title>.*?<\/title>/i, `<title>Nexa • ${displayName}</title>`)
817
- .replace(
818
- /href=["']\.\/manifest\.json["']/i,
819
- `href="${APP_BASE}manifest.json"`,
820
- )
821
- .replace(
822
- /href=["']\/manifest\.json["']/i,
823
- `href="${APP_BASE}manifest.json"`,
824
- )
825
- .replace(
826
- /href=["']\.\/favicon\.png["']/i,
827
- `href="${APP_BASE}favicon.png"`,
828
- )
829
- .replace(/href=["']\/favicon\.png["']/i, `href="${APP_BASE}favicon.png"`)
830
- .replace(/href=["']\.\/nexa\.svg["']/i, `href="${APP_BASE}nexa.svg"`)
831
- .replace(/href=["']\/nexa\.svg["']/i, `href="${APP_BASE}nexa.svg"`)
817
+ .replace(/href=["']\.\/manifest\.json["']/i, 'href="./manifest.json"')
818
+ .replace(/href=["']\/manifest\.json["']/i, 'href="./manifest.json"')
819
+ .replace(/href=["']\.\/favicon\.png["']/i, 'href="./favicon.png"')
820
+ .replace(/href=["']\/favicon\.png["']/i, 'href="./favicon.png"')
821
+ .replace(/href=["']\.\/nexa\.svg["']/i, 'href="./nexa.svg"')
822
+ .replace(/href=["']\/nexa\.svg["']/i, 'href="./nexa.svg"')
832
823
  .replace(/src=["']\.\/src\/main\.jsx["']/i, 'src="/src/main.jsx"')
833
824
  .replace(/src=["']src\/main\.jsx["']/i, 'src="/src/main.jsx"');
834
825
 
@@ -845,14 +836,13 @@ coverage/
845
836
 
846
837
  <!-- PWA -->
847
838
  <meta name="theme-color" content="#3ee7ff" />
848
- <link rel="manifest" href="${APP_BASE}manifest.json" />
839
+ <link rel="manifest" href="./manifest.json" />
849
840
 
850
841
  <!-- Icons -->
851
- <link rel="icon" type="image/png" href="${APP_BASE}favicon.png" />
842
+ <link rel="icon" type="image/svg+xml" href="./nexa.svg" />
852
843
 
853
844
  <!-- Title -->
854
- <title>Nexa • by Conscious Neurons</title>
855
-
845
+ <title>Nexa • ${displayName}</title>
856
846
  </head>
857
847
  <body>
858
848
  <div id="root"></div>
@@ -867,26 +857,26 @@ coverage/
867
857
  const manifestContent = `{
868
858
  "name": "Nexa App",
869
859
  "short_name": "Nexa",
870
- "start_url": "${APP_BASE}",
871
- "scope": "${APP_BASE}",
860
+ "start_url": "./",
861
+ "scope": "./",
872
862
  "display": "standalone",
873
863
  "background_color": "#07111f",
874
864
  "theme_color": "#3ee7ff",
875
865
  "icons": [
876
866
  {
877
- "src": "${APP_BASE}icons/icon-192.png",
867
+ "src": "./icons/icon-192.png",
878
868
  "sizes": "192x192",
879
869
  "type": "image/png",
880
870
  "purpose": "any maskable"
881
871
  },
882
872
  {
883
- "src": "${APP_BASE}icons/icon-512.png",
873
+ "src": "./icons/icon-512.png",
884
874
  "sizes": "512x512",
885
875
  "type": "image/png",
886
876
  "purpose": "any maskable"
887
877
  },
888
878
  {
889
- "src": "${APP_BASE}nexa.svg",
879
+ "src": "./nexa.svg",
890
880
  "sizes": "any",
891
881
  "type": "image/svg+xml",
892
882
  "purpose": "any"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nexa-app",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Create a new Nexa app with prebuilt structure, PWA support, and modern React/Vite setup",
5
5
  "bin": {
6
6
  "create-nexa-app": "bin/nexa.js",