Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add sveltekit ts project example #46

Merged
merged 11 commits into from
Oct 13, 2023
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
1 change: 1 addition & 0 deletions .github/workflows/check-typescript-projects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
- lit-ts
- parcel-ts
- rollup-ts
- sveltekit-ts
- vitejs-ts
npm-package: ['release', 'development']
defaults:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ If the Node version is not installed, `nvm` will state how to install the requir
- [TypeScript with Lit](./projects/lit-ts/README.md)
- [TypeScript with Parcel](./projects/parcel-ts/README.md)
- [TypeScript with Rollup](./projects/rollup-ts/README.md)
- [TypeScript with SvelteKit](./projects/sveltekit-ts/README.md)
- [TypeScript with ViteJs](./projects/vitejs-ts/README.md)


### <a id="maxgraph-dev-version"></a> Use the maxGraph development version

**Note**: the `maxGraph` development version is tested in a [GitHub Workflow](./.github/workflows/check-typescript-projects.yml) that uses the procedure explained below.
Expand Down
10 changes: 10 additions & 0 deletions projects/sveltekit-ts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
2 changes: 2 additions & 0 deletions projects/sveltekit-ts/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
engine-strict=true
resolution-mode=highest
16 changes: 16 additions & 0 deletions projects/sveltekit-ts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# sveltekit-ts

Initialized from [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte)

## Setup

From the project root, run `npm install`.

If you want to use the maxGraph development version (built locally), see the README about maxGraph integration.

## Running the project

Run `npm run dev` and go to http://localhost:5173/

If you want to bundle the application, run `npm run build` and then run `npm run preview` to access to a preview of the
bundle application.
Loading
Loading