create-nativue 0.8.0 → 0.10.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.
package/index.mjs CHANGED
@@ -8,7 +8,7 @@ import { fileURLToPath } from 'node:url'
8
8
  import { parseArgs } from 'node:util'
9
9
 
10
10
  const TEMPLATE_DIRECTORY = fileURLToPath(new URL('./template', import.meta.url))
11
- const TEXT_FILE = /(\.(json|vue|ts|plist|pbxproj|resolved|swift|kt|kts|xml)|gitignore)$/
11
+ const TEXT_FILE = /(\.(json|vue|ts|plist|pbxproj|resolved|swift|kt|kts|xml|md)|gitignore)$/
12
12
  // Also the Android package and applicationId, which can't have hyphens.
13
13
  const BUNDLE_ID = /^[a-zA-Z][a-zA-Z0-9_]*(\.[a-zA-Z][a-zA-Z0-9_]*)+$/
14
14
  const { version } = JSON.parse(readFileSync(new URL('./package.json', import.meta.url), 'utf8'))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nativue",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "description": "Creates a Nativue app: npm create nativue@latest my-app",
5
5
  "keywords": [
6
6
  "vue",
@@ -0,0 +1,6 @@
1
+ {
2
+ "semi": false,
3
+ "singleQuote": true,
4
+ "printWidth": 100,
5
+ "htmlWhitespaceSensitivity": "ignore"
6
+ }
@@ -0,0 +1,9 @@
1
+ # __DISPLAY_NAME__
2
+
3
+ A nativue app: Vue rendered as native iOS and Android views, not a web app. Before writing code, read
4
+ `node_modules/@nativue/core/AGENTS.md`: what exists instead of HTML, CSS and browser APIs, and how
5
+ styling, navigation and the project work. It matches the installed nativue version.
6
+
7
+ ## This app
8
+
9
+ Add this app's own rules here: its purpose, conventions, where things live.
@@ -0,0 +1,2 @@
1
+ @AGENTS.md
2
+ @node_modules/@nativue/core/AGENTS.md
@@ -7,12 +7,14 @@
7
7
  "ios": "nativue run ios",
8
8
  "android": "nativue run android",
9
9
  "build": "nativue build --production",
10
- "typecheck": "vue-tsc"
10
+ "typecheck": "vue-tsc",
11
+ "format": "prettier --write src"
11
12
  },
12
13
  "dependencies": {
13
14
  "@nativue/core": "__NATIVUE_VERSION__"
14
15
  },
15
16
  "devDependencies": {
17
+ "prettier": "^3.10.1",
16
18
  "typescript": "^5.9.3",
17
19
  "vue-tsc": "^3.3.14"
18
20
  }