create-fougere 0.1.0-alpha.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Fougere contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,14 @@
1
+ # create-fougere
2
+
3
+ > Scaffold a Fougere workspace
4
+
5
+ ```bash
6
+ npm create fougere shop
7
+ pnpm create fougere shop --frond blog --app nuxt
8
+ ```
9
+
10
+ Everything after the name is read by `fougere new`, so every flag it declares
11
+ works here: `--frond`, `--app`, `--flat`, `--bare`, `--force`. With no flags and
12
+ a terminal, it asks.
13
+
14
+ **[Documentation →](https://chok.github.io/fougere/)**
package/dist/bin.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=bin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":""}
package/dist/bin.js ADDED
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * `npm create fougere` / `pnpm create fougere` — the CLI, entered at `new`.
4
+ *
5
+ * The ecosystem spells scaffolding this way, and the spelling resolves to the
6
+ * package named `create-<name>`. So this is the same CLI as `fougere`, with one
7
+ * word inserted: what the user typed after the name is what `fougere new` reads.
8
+ *
9
+ * pnpm create fougere shop --frond blog --app nuxt
10
+ * → fougere new shop --frond blog --app nuxt
11
+ *
12
+ * Inserting rather than replacing is what keeps the two in step: every flag
13
+ * `New` declares works here the day it is declared, with nothing to mirror.
14
+ */
15
+ process.argv.splice(2, 0, 'new');
16
+ await import('@fougere/cli/bin');
17
+ export {};
18
+ //# sourceMappingURL=bin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;GAYG;AACH,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC;AAEjC,MAAM,MAAM,CAAC,kBAAkB,CAAC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "create-fougere",
3
+ "version": "0.1.0-alpha.0",
4
+ "description": "Scaffold a Fougere workspace — `npm create fougere`.",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/chok/fougere.git",
9
+ "directory": "packages/create-fougere"
10
+ },
11
+ "type": "module",
12
+ "bin": {
13
+ "create-fougere": "dist/bin.js"
14
+ },
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "dependencies": {
19
+ "@fougere/cli": "0.1.0-alpha.1"
20
+ },
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
24
+ "scripts": {
25
+ "build": "rm -rf dist && tsc && chmod +x dist/bin.js",
26
+ "typecheck": "tsc --noEmit"
27
+ }
28
+ }