@inglorious/create-app 1.13.0 → 1.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 +2 -0
- package/bin/index.js +3 -0
- package/bin/lib/dependabot.js +28 -0
- package/package.json +1 -1
- package/templates/features/vercel.json +9 -0
- package/templates/js/vercel.json +9 -0
- package/templates/js-jsx/vercel.json +9 -0
- package/templates/js-vue/vercel.json +9 -0
- package/templates/minimal/vercel.json +9 -0
- package/templates/ssx-js/vercel.json +9 -0
- package/templates/ssx-js-jsx/vercel.json +9 -0
- package/templates/ssx-js-vue/vercel.json +9 -0
- package/templates/ssx-ts/vercel.json +9 -0
- package/templates/ssx-ts-jsx/vercel.json +9 -0
- package/templates/ssx-ts-vue/vercel.json +9 -0
- package/templates/ts/vercel.json +9 -0
- package/templates/ts-jsx/vercel.json +9 -0
- package/templates/ts-vue/vercel.json +9 -0
package/README.md
CHANGED
|
@@ -31,6 +31,8 @@ For the JavaScript and TypeScript Vite templates, the CLI then asks about the ap
|
|
|
31
31
|
| Add push notifications? | `--push` / `--no-push` | Firebase Cloud Messaging, a permission prompt and the Supabase side of sending; turns on PWA support |
|
|
32
32
|
| Enable PWA support? | `--pwa` / `--no-pwa` | `vite-plugin-pwa`, a manifest, icons, and a service worker that keeps installed apps on the latest version |
|
|
33
33
|
|
|
34
|
+
Every template has a `vercel.json` that deploys only the `main` branch on Vercel; change `main` there if your production branch has another name. Every template except `minimal` also gets `.github/dependabot.yml`, which opens weekly dependency updates on GitHub grouped into two pull requests: one for `@inglorious/*`, one for everything else.
|
|
35
|
+
|
|
34
36
|
Every template except `minimal` then asks whether to add agent skills (`--skills` / `--no-skills`). Saying yes runs the [skills CLI](https://skills.sh) in the new project. It asks which coding agents to install for, and installs the [Inglorious Forge skills](https://github.com/IngloriousCoderz/forge-skills) that match your choices: `forge`, `forge-best-practices`, `app-recipe`, `store`, `web` and `web-best-practices` always, plus `ssx`, `vite-plugin-jsx` or `vite-plugin-vue`, `ui` and `ui-best-practices`, `i18n`, `firebase` and `supabase` when the project uses them. If the install fails, the CLI prints the command to retry it.
|
|
35
37
|
|
|
36
38
|
The app is generated in the syntax you chose: lit-html, JSX or Vue. Every question answered on the command line is skipped, so a project can be created without any prompt:
|
package/bin/index.js
CHANGED
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
USER_ARG_START_INDEX,
|
|
17
17
|
VITE_APP_TEMPLATES,
|
|
18
18
|
} from "./lib/constants.js"
|
|
19
|
+
import { addDependabot } from "./lib/dependabot.js"
|
|
19
20
|
import { SYNTAXES, TEMPLATES } from "./lib/features.js"
|
|
20
21
|
import { copyDir } from "./lib/file.js"
|
|
21
22
|
import { addFirebaseSupport } from "./lib/firebase.js"
|
|
@@ -173,6 +174,8 @@ async function main() {
|
|
|
173
174
|
const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf-8"))
|
|
174
175
|
pkg.name = projectName
|
|
175
176
|
|
|
177
|
+
addDependabot(targetDir)
|
|
178
|
+
|
|
176
179
|
const hasAppFeatures =
|
|
177
180
|
features.ui ||
|
|
178
181
|
features.routing ||
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import fs from "fs"
|
|
2
|
+
import path from "path"
|
|
3
|
+
|
|
4
|
+
const DEPENDABOT_CONFIG = `version: 2
|
|
5
|
+
updates:
|
|
6
|
+
- package-ecosystem: "npm"
|
|
7
|
+
directory: "/"
|
|
8
|
+
schedule:
|
|
9
|
+
interval: "weekly"
|
|
10
|
+
# One pull request a week for Inglorious Forge, one for everything else.
|
|
11
|
+
groups:
|
|
12
|
+
inglorious:
|
|
13
|
+
patterns: ["@inglorious/*"]
|
|
14
|
+
dependencies:
|
|
15
|
+
patterns: ["*"]
|
|
16
|
+
`
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Keeps the app's dependencies current with weekly Dependabot pull requests,
|
|
20
|
+
* grouped so each week brings two at most instead of one per package.
|
|
21
|
+
*
|
|
22
|
+
* @param {string} targetDir
|
|
23
|
+
*/
|
|
24
|
+
export function addDependabot(targetDir) {
|
|
25
|
+
const dir = path.join(targetDir, ".github")
|
|
26
|
+
fs.mkdirSync(dir, { recursive: true })
|
|
27
|
+
fs.writeFileSync(path.join(dir, "dependabot.yml"), DEPENDABOT_CONFIG)
|
|
28
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inglorious/create-app",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"description": "A scaffolding tool to quickly create a new app with Inglorious Web.",
|
|
5
5
|
"author": "Matteo Antony Mistretta <antony.mistretta@gmail.com> (https://ingloriouscoderz.it)",
|
|
6
6
|
"license": "MIT",
|