Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ updates:
update-types:
- "version-update:semver-major"
- "version-update:semver-minor"
- dependency-name: "@types/node"
update-types: ["version-update:semver-major"]

- package-ecosystem: github-actions
directory: /
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,17 @@ permissions:

jobs:
scaffold:
name: Scaffold and check a project
name: Scaffold and check a project (${{ matrix.variant }})
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
include:
- variant: web only
desktop: "no"
- variant: with the desktop app
desktop: "yes"
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
Expand All @@ -32,9 +40,14 @@ jobs:
- name: Generate a project the way npx does
env:
PACKAGE: github:${{ github.repository }}#${{ github.event.pull_request.head.sha || github.sha }}
run: npx --yes "$PACKAGE" "Demo App" --description "A project generated in CI."
run: printf '%s\n' "Demo App" "A project generated in CI." "" "${{ matrix.desktop }}" | npx --yes --allow-git=all "$PACKAGE"
- name: Check that no placeholder survived
run: "! grep -rIiE 'b7[-_ ]?stack' demo-app --exclude-dir=node_modules --exclude-dir=.git"
- name: Check that no template marker survived
run: "! grep -rIE '(desktop|web-only):(start|end)' demo-app --exclude-dir=node_modules --exclude-dir=.git"
- name: Check that nothing of the desktop app was copied
if: ${{ matrix.desktop == 'no' }}
run: "! grep -rIi 'desktop' demo-app --exclude-dir=node_modules --exclude-dir=.git"
- name: Preflight the project
run: npm run preflight
working-directory: demo-app
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ node_modules
!.env.template

.next/
.vite/
out/
coverage/
dist/
*.tsbuildinfo
Expand Down
5 changes: 1 addition & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
lint-staged || {
printf '\nSkip the hook once with: git commit --no-verify\n' >&2
exit 1
}
lint-staged
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
template/
template-web-only/
dist/
package-lock.json
package.json
227 changes: 195 additions & 32 deletions README.md

Large diffs are not rendered by default.

Loading
Loading