Skip to content

Commit

Permalink
0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nitedani committed Jul 26, 2024
1 parent 818ad20 commit dddda2e
Show file tree
Hide file tree
Showing 83 changed files with 4,851 additions and 3,702 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI
on: [push, pull_request]

jobs:
test:
# Prevent workflow being run twice, https://github.com/orgs/community/discussions/57827#discussioncomment-6579237
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name

name: ${{ matrix.cmd }} (${{ matrix.os }})

runs-on: ${{ matrix.os }}

strategy:
# Don't cancel other matrix operations if one fails
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
cmd:
- pnpm run test:e2e
- pnpm run test:units
- pnpm run test:types
# `exclude` docs & alternatives:
# - https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategymatrixexclude
# - https://stackoverflow.com/questions/68994484/how-to-skip-a-configuration-of-a-matrix-with-github-actions/68994907#68994907
# - https://stackoverflow.com/questions/66025220/paired-values-in-github-actions-matrix/68940067#68940067
exclude:
- os: windows-latest
cmd: pnpm run test:types

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.1.3
- uses: actions/setup-node@v4
with:
node-version: 20
# TODO/eventually: try using the cache again
# The cache breaks playwright https://github.com/vikejs/vike-vue/pull/119
# cache: "pnpm"

- run: pnpm install
- run: pnpm exec playwright install chromium
- run: pnpm run build

- run: ${{ matrix.cmd }}
13 changes: 13 additions & 0 deletions .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: 'Check formatting'
on:
push:
jobs:
check_formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.1.3
- run: pnpm install
- run: pnpm run format:check
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/node_modules/
.pnpm-debug.log
/dist/
10 changes: 10 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
MIT License

Copyright (c) 2024-present Horváth Dániel
Copyright (c) 2024-present Romuald Brillout

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 1 addition & 1 deletion README.md
25 changes: 25 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"files": {
"ignore": ["dist/", "package.json"]
},
"formatter": {
"indentWidth": 2,
"indentStyle": "space"
},
"javascript": {
"formatter": {
"semicolons": "asNeeded",
"lineWidth": 120,
"quoteStyle": "single",
"trailingCommas": "none"
}
},
"linter": {
"enabled": false
},
"vcs": {
"enabled": true,
"clientKind": "git"
}
}
8 changes: 0 additions & 8 deletions examples/vike/renderer/+config.h.ts

This file was deleted.

43 changes: 0 additions & 43 deletions examples/vike/server/index-hattip.ts

This file was deleted.

43 changes: 0 additions & 43 deletions examples/vike/server/index-hono.ts

This file was deleted.

29 changes: 15 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
{
"version": "0.0.0",
"private": true,
"scripts": {
"========= Basics": "",
"dev": "cd ./packages/vike-node/ && pnpm run dev",
"build": "pnpm --recursive --filter {packages/*} run build",
"========= Test": "",
"test": "test-e2e && test-types",
"========= Release": "",
"release": "cd ./packages/vike-node/ && pnpm run release",
"release:commit": "cd ./packages/vike-node/ && pnpm run release:commit",
"========= Clean": "",
"clean": "git clean -Xdf",
"reset": "pnpm run clean && pnpm install && pnpm run build",
"reset": "git clean -Xdf && pnpm install && pnpm run build",
"========= Formatting": "",
"prettier": "git ls-files | egrep '\\.(json|js|jsx|css|ts|tsx|vue|mjs|cjs)$' | grep --invert-match package.json | xargs pnpm exec prettier --write",
"format": "pnpm run format:biome",
"format:prettier": "git ls-files | egrep '\\.(json|js|jsx|css|ts|tsx|vue|mjs|cjs)$' | grep --invert-match package.json | xargs pnpm exec prettier --write",
"format:biome": "biome format --write .",
"format:check": "biome format . || (echo 'Fix formatting by running `$ pnpm run -w format`.' && exit 1)",
"========= Only allow pnpm; forbid yarn & npm": "",
"preinstall": "npx only-allow pnpm"
},
"packageManager": "[email protected]",
"devDependencies": {
"prettier": "^3.2.5"
"@biomejs/biome": "^1.5.3",
"prettier": "^3.3.3",
"@brillout/test-e2e": "^0.5.33",
"@brillout/test-types": "^0.1.13"
},
"pnpm": {
"overrides": {
"vike-node": "link:./packages/vike-node/",
"vite": "6.0.0-alpha.11"
},
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
"vike-node": "link:./packages/vike-node/"
}
}
}
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit dddda2e

Please sign in to comment.