create-mindees 0.13.0 โ 0.15.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/README.md +11 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,22 +4,27 @@ Scaffold a new MindeesNative app:
|
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
6
|
npm create mindees@latest my-app
|
|
7
|
-
# or: pnpm create mindees my-app --template
|
|
7
|
+
# or: pnpm create mindees my-app --template app
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
-
> **Status: ๐งช Experimental (
|
|
10
|
+
> **Status: ๐งช Experimental (pre-1.0).** Implemented and tested. Delegates to
|
|
11
11
|
> `@mindees/cli`'s tested `scaffold` core, so `npm create mindees` and
|
|
12
|
-
> `mindees create` behave identically.
|
|
12
|
+
> `mindees create` behave identically. Generated apps pin every `@mindees/*`
|
|
13
|
+
> package to the same locked version that scaffolded them (currently `0.13.0`).
|
|
13
14
|
|
|
14
15
|
## Usage
|
|
15
16
|
|
|
16
17
|
```bash
|
|
17
|
-
create-mindees <app-name-or-path> [--template blank|counter] [--prompt "..."] [--force]
|
|
18
|
+
create-mindees <app-name-or-path> [--template blank|counter|app] [--prompt "..."] [--force]
|
|
18
19
|
```
|
|
19
20
|
|
|
20
|
-
- `--template` โ pick a starter (`blank` or `
|
|
21
|
+
- `--template` โ pick a starter (`blank`, `counter`, or `app`). Default `blank`.
|
|
22
|
+
- `blank` โ the minimal runnable app (one screen).
|
|
23
|
+
- `counter` โ a reactive counter demonstrating signals + fine-grained updates.
|
|
24
|
+
- `app` โ a polished, batteries-included starter using the `@mindees/atlas`
|
|
25
|
+
UI kit (Card, Button, Switch), a hook, and theming.
|
|
21
26
|
- `--prompt "a reactive counter"` โ offline keyword mapping to a template
|
|
22
|
-
(real natural-language app generation arrives with `@mindees/ai` in Phase
|
|
27
|
+
(real natural-language app generation arrives with `@mindees/ai` in Phase 10).
|
|
23
28
|
- `--force` โ overwrite a non-empty target directory.
|
|
24
29
|
- The positional can be a simple app name, a relative path, or an absolute
|
|
25
30
|
Windows/POSIX path; the generated package name is derived safely from the
|
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ declare function runCreate(fs: FileSystem, args: CreateArgs): ScaffoldResult;
|
|
|
20
20
|
/** The npm package name. */
|
|
21
21
|
declare const name = "create-mindees";
|
|
22
22
|
/** The package version. All `@mindees/*` packages share one locked version line. */
|
|
23
|
-
declare const VERSION = "0.
|
|
23
|
+
declare const VERSION = "0.15.0";
|
|
24
24
|
/** Current maturity. The scaffolder delegates to `@mindees/cli`'s tested core. */
|
|
25
25
|
declare const maturity: Maturity;
|
|
26
26
|
/**
|
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@ function runCreate(fs, args) {
|
|
|
20
20
|
/** The npm package name. */
|
|
21
21
|
const name = "create-mindees";
|
|
22
22
|
/** The package version. All `@mindees/*` packages share one locked version line. */
|
|
23
|
-
const VERSION = "0.
|
|
23
|
+
const VERSION = "0.15.0";
|
|
24
24
|
/** Current maturity. The scaffolder delegates to `@mindees/cli`'s tested core. */
|
|
25
25
|
const maturity = "experimental";
|
|
26
26
|
/**
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["naturalLanguageToTemplate"],"sources":["../src/index.ts"],"sourcesContent":["import {\n DEFAULT_TEMPLATE,\n type FileSystem,\n naturalLanguageToTemplate,\n type ScaffoldResult,\n scaffold,\n} from '@mindees/cli'\nimport type { Maturity, PackageInfo } from '@mindees/core'\nimport { NotImplementedError, notImplemented } from '@mindees/core'\n\n/** Arguments accepted by `create-mindees` (after the app name). */\nexport interface CreateArgs {\n appName: string\n targetDir: string\n template?: string\n /** Free-text prompt โ template (offline keyword mapping; AI is Phase 10). */\n prompt?: string\n force?: boolean\n}\n\n/**\n * Scaffold a new MindeesNative app. Thin wrapper over `@mindees/cli`'s tested\n * {@link scaffold}, adding the `--prompt` โ template resolution so\n * `npm create mindees` and `mindees create` behave identically.\n */\nexport function runCreate(fs: FileSystem, args: CreateArgs): ScaffoldResult {\n // A non-empty explicit `--template` always wins; an empty or absent one defers to\n // the prompt, else the default. (Treating empty as \"not chosen\" keeps this in lock-\n // step with `mindees create` โ both normalize `--template \"\"` the same way.)\n const explicit = args.template && args.template.length > 0 ? args.template : undefined\n let template = explicit ?? DEFAULT_TEMPLATE\n if (!explicit && args.prompt && args.prompt.length > 0) {\n template = naturalLanguageToTemplate(args.prompt).template\n }\n const options: Parameters<typeof scaffold>[1] = {\n appName: args.appName,\n targetDir: args.targetDir,\n template,\n force: args.force === true,\n }\n return scaffold(fs, options)\n}\n\nexport { naturalLanguageToTemplate } from '@mindees/cli'\n\n/** The npm package name. */\nexport const name = 'create-mindees'\n\n/** The package version. All `@mindees/*` packages share one locked version line. */\nexport const VERSION = '0.
|
|
1
|
+
{"version":3,"file":"index.js","names":["naturalLanguageToTemplate"],"sources":["../src/index.ts"],"sourcesContent":["import {\n DEFAULT_TEMPLATE,\n type FileSystem,\n naturalLanguageToTemplate,\n type ScaffoldResult,\n scaffold,\n} from '@mindees/cli'\nimport type { Maturity, PackageInfo } from '@mindees/core'\nimport { NotImplementedError, notImplemented } from '@mindees/core'\n\n/** Arguments accepted by `create-mindees` (after the app name). */\nexport interface CreateArgs {\n appName: string\n targetDir: string\n template?: string\n /** Free-text prompt โ template (offline keyword mapping; AI is Phase 10). */\n prompt?: string\n force?: boolean\n}\n\n/**\n * Scaffold a new MindeesNative app. Thin wrapper over `@mindees/cli`'s tested\n * {@link scaffold}, adding the `--prompt` โ template resolution so\n * `npm create mindees` and `mindees create` behave identically.\n */\nexport function runCreate(fs: FileSystem, args: CreateArgs): ScaffoldResult {\n // A non-empty explicit `--template` always wins; an empty or absent one defers to\n // the prompt, else the default. (Treating empty as \"not chosen\" keeps this in lock-\n // step with `mindees create` โ both normalize `--template \"\"` the same way.)\n const explicit = args.template && args.template.length > 0 ? args.template : undefined\n let template = explicit ?? DEFAULT_TEMPLATE\n if (!explicit && args.prompt && args.prompt.length > 0) {\n template = naturalLanguageToTemplate(args.prompt).template\n }\n const options: Parameters<typeof scaffold>[1] = {\n appName: args.appName,\n targetDir: args.targetDir,\n template,\n force: args.force === true,\n }\n return scaffold(fs, options)\n}\n\nexport { naturalLanguageToTemplate } from '@mindees/cli'\n\n/** The npm package name. */\nexport const name = 'create-mindees'\n\n/** The package version. All `@mindees/*` packages share one locked version line. */\nexport const VERSION = '0.15.0'\n\n/** Current maturity. The scaffolder delegates to `@mindees/cli`'s tested core. */\nexport const maturity: Maturity = 'experimental'\n\n/**\n * Static identity + maturity metadata for this package. Frozen so the\n * self-reported identity tooling introspects cannot be mutated at runtime,\n * matching the `readonly` fields of {@link PackageInfo}.\n */\nexport const info: PackageInfo = Object.freeze({ name, version: VERSION, maturity })\n\nexport type { Maturity, PackageInfo }\nexport { NotImplementedError, notImplemented }\n"],"mappings":";;;;;;;;AAyBA,SAAgB,UAAU,IAAgB,MAAkC;CAI1E,MAAM,WAAW,KAAK,YAAY,KAAK,SAAS,SAAS,IAAI,KAAK,WAAW,KAAA;CAC7E,IAAI,WAAW,YAAY;CAC3B,IAAI,CAAC,YAAY,KAAK,UAAU,KAAK,OAAO,SAAS,GACnD,WAAWA,4BAA0B,KAAK,MAAM,EAAE;CAQpD,OAAO,SAAS,IAAI;EALlB,SAAS,KAAK;EACd,WAAW,KAAK;EAChB;EACA,OAAO,KAAK,UAAU;CAEE,CAAC;AAC7B;;AAKA,MAAa,OAAO;;AAGpB,MAAa,UAAU;;AAGvB,MAAa,WAAqB;;;;;;AAOlC,MAAa,OAAoB,OAAO,OAAO;CAAE;CAAM,SAAS;CAAS;AAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-mindees",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Create a new MindeesNative app โ `npm create mindees@latest`.",
|
|
5
5
|
"license": "MIT OR Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"directory": "packages/create-mindees"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@mindees/core": "0.
|
|
30
|
-
"@mindees/cli": "0.
|
|
29
|
+
"@mindees/core": "0.15.0",
|
|
30
|
+
"@mindees/cli": "0.15.0"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "tsdown",
|