Skip to content

Commit 6dfb9f8

Browse files
committed
Merge branch '2.x' into 3.x
# Conflicts: # packages/create-inertiacore/stubs/react-ts/ClientApp/src/ssr.tsx # packages/create-inertiacore/stubs/vue-ts/ClientApp/src/App.ts # packages/create-inertiacore/stubs/vue-ts/ClientApp/src/ssr.ts # packages/create-inertiacore/stubs/vue-ts/ClientApp/vite.config.ssr.ts # packages/create-inertiacore/stubs/vue-ts/ClientApp/vite.config.ts
2 parents 0b31c15 + f184d3e commit 6dfb9f8

14 files changed

Lines changed: 57 additions & 63 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
- name: Publish create-inertiacore
2828
working-directory: packages/create-inertiacore
2929
run: |
30+
npm version "${GITHUB_REF_NAME#v}" --no-git-tag-version --allow-same-version
3031
npm install
3132
npm run build --if-present
3233
npm test --if-present

.github/workflows/tests.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,25 @@ env:
1313
INERTIACORE_BYPASS_ENV_CHECK: 1
1414

1515
jobs:
16-
tests:
16+
stubs:
1717
runs-on: ubuntu-latest
1818

1919
strategy:
20+
fail-fast: false
2021
matrix:
21-
node-version: [20.x, 22.x, latest]
22+
node-version: [20.x, 22.x, lts/*]
23+
stub: [react-ts, vue-ts, svelte-ts]
24+
25+
defaults:
26+
run:
27+
working-directory: packages/create-inertiacore/stubs/${{ matrix.stub }}/ClientApp
2228

2329
steps:
2430
- name: Checkout code
2531
uses: actions/checkout@v4
2632

2733
- name: Use Node.js ${{ matrix.node-version }}
28-
uses: actions/setup-node@v3
34+
uses: actions/setup-node@v4
2935
with:
3036
node-version: ${{ matrix.node-version }}
3137

@@ -35,8 +41,5 @@ jobs:
3541
- name: ESLint
3642
run: npm run lint
3743

38-
- name: Execute tests
39-
run: npm test
40-
4144
- name: Run build
4245
run: npm run build

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This repository contains examples of how to use [InertiaCore](https://github.com
77
To create a new project using InertiaCore, run the following command:
88

99
```bash
10-
npx @inertiacore/create@latest
10+
npm init inertiacore@latest
1111
```
1212

1313
This will create a new project with the name you provide.

packages/create-inertiacore/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-inertiacore",
3-
"version": "2.0.0",
3+
"version": "0.0.0",
44
"description": "InertiaCore Create",
55
"type": "module",
66
"homepage": "https://github.com/InertiaCore/kits",
@@ -13,9 +13,6 @@
1313
"publishConfig": {
1414
"access": "public"
1515
},
16-
"scripts": {
17-
"publish": "npm publish --access public"
18-
},
1916
"bin": {
2017
"create-inertiacore": "bin/create.js"
2118
},
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.prettierrc
2+
node_modules
3+
dist

packages/create-inertiacore/stubs/react-ts/ClientApp/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"target": "esnext",
77
"module": "esnext",
88
"noEmit": true,
9-
"moduleResolution": "node",
9+
"moduleResolution": "bundler",
1010
"jsx": "react-jsx",
1111
"rootDir": "./src",
1212
"strict": true,
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.prettierrc
2+
node_modules
3+
dist

packages/create-inertiacore/stubs/svelte-ts/ClientApp/.prettierrc

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,8 @@
55
"htmlWhitespaceSensitivity": "css",
66
"printWidth": 80,
77
"plugins": [
8-
"prettier-plugin-svelte",
9-
"prettier-plugin-organize-imports",
10-
"prettier-plugin-tailwindcss"
8+
"prettier-plugin-svelte"
119
],
12-
"tailwindFunctions": [
13-
"clsx",
14-
"cn",
15-
"cva"
16-
],
17-
"tailwindStylesheet": "resources/css/app.css",
1810
"tabWidth": 4,
1911
"overrides": [
2012
{

packages/create-inertiacore/stubs/svelte-ts/ClientApp/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@
2626
"@inertiacore/vite-plugin": "^3.0.0",
2727
"@inertiajs/vite": "^3.0.3",
2828
"prettier": "^3.6.2",
29-
"prettier-plugin-organize-imports": "^4.3.0",
3029
"prettier-plugin-svelte": "^3.4.0",
31-
"prettier-plugin-tailwindcss": "^0.6.14",
3230
"typescript-eslint": "^8.44.0",
3331
"vite": "^8.0.0"
3432
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.prettierrc
2+
node_modules
3+
dist

0 commit comments

Comments
 (0)