-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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(examples): add svelte #1458
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
## Developing | ||
|
||
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: | ||
|
||
```bash | ||
npm run dev | ||
|
||
# or start the server and open the app in a new browser tab | ||
npm run dev -- --open | ||
``` | ||
|
||
## Building | ||
|
||
To create a production version of your app: | ||
|
||
```bash | ||
npm run build | ||
``` | ||
|
||
You can preview the production build with `npm run preview`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arguably this is no longer accurate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How so? This works from root or the application
> npm run preview --workspace apps/docs
> docs@0.0.0 preview
> svelte-kit preview
SvelteKit v1.0.0-next.355
local: http://localhost:3000
network: not exposed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant for this comment to apply to the whole Developing and Building sections. It's fine, I don't have significant complaints, it's just that we should likely be telling them to think in Turborepo terms instead of Svelte terms. I know it works, but why it works is "well, let me tell you about ..."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yea I see where you're coming from. This README is from the create svelte starter and I left it largely (entirely?) untouched to keep things consistent across examples (the remix app does this as well)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [turbo](https://turborepo.org) ([source](https://github.com/vercel/turborepo)) | [`1.3.1` -> `1.3.4`](https://renovatebot.com/diffs/npm/turbo/1.3.1/1.3.4) | [![age](https://badges.renovateapi.com/packages/npm/turbo/1.3.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/turbo/1.3.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/turbo/1.3.4/compatibility-slim/1.3.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/turbo/1.3.4/confidence-slim/1.3.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vercel/turborepo</summary> ### [`v1.3.4`](https://github.com/vercel/turborepo/releases/tag/v1.3.4) [Compare Source](https://github.com/vercel/turborepo/compare/v1.3.3...v1.3.4) #### What's Changed - fix(deps): update dependency [@​react-types/radio](https://github.com/react-types/radio) to v3.2.1 by [@​renovate](https://github.com/renovate) in [https://github.com/vercel/turborepo/pull/1553](https://github.com/vercel/turborepo/pull/1553) - Move fixtures to correct directory. by [@​nathanhammond](https://github.com/nathanhammond) in [https://github.com/vercel/turborepo/pull/1561](https://github.com/vercel/turborepo/pull/1561) - fix(cli): don’t exit when no tasks are found by [@​tknickman](https://github.com/tknickman) in [https://github.com/vercel/turborepo/pull/1564](https://github.com/vercel/turborepo/pull/1564) **Full Changelog**: vercel/turborepo@v1.3.3...v1.3.4 ### [`v1.3.3`](https://github.com/vercel/turborepo/releases/tag/v1.3.3) [Compare Source](https://github.com/vercel/turborepo/compare/v1.3.2...v1.3.3) #### What's Changed - fix(create-turbo): pnpm peer deps error by [@​tknickman](https://github.com/tknickman) in [https://github.com/vercel/turborepo/pull/1559](https://github.com/vercel/turborepo/pull/1559) **Full Changelog**: vercel/turborepo@v1.3.2...v1.3.3 ### [`v1.3.2`](https://github.com/vercel/turborepo/releases/tag/v1.3.2) [Compare Source](https://github.com/vercel/turborepo/compare/v1.3.1...v1.3.2) #### Core - Update schema generation script invocation. by [@​nathanhammond](https://github.com/nathanhammond) in [https://github.com/vercel/turborepo/pull/1436](https://github.com/vercel/turborepo/pull/1436) - fix(cli): cache with correct file perms by [@​tknickman](https://github.com/tknickman) in [https://github.com/vercel/turborepo/pull/1429](https://github.com/vercel/turborepo/pull/1429) - Watch task outputs to avoid cache restorations by [@​gsoltis](https://github.com/gsoltis) in [https://github.com/vercel/turborepo/pull/1269](https://github.com/vercel/turborepo/pull/1269) - Vendor chrometracing, add Close method by [@​gsoltis](https://github.com/gsoltis) in [https://github.com/vercel/turborepo/pull/1443](https://github.com/vercel/turborepo/pull/1443) - Fix symlink mode check. by [@​nathanhammond](https://github.com/nathanhammond) in [https://github.com/vercel/turborepo/pull/1447](https://github.com/vercel/turborepo/pull/1447) - Fix hashing uncommitted changes by [@​gsoltis](https://github.com/gsoltis) in [https://github.com/vercel/turborepo/pull/1448](https://github.com/vercel/turborepo/pull/1448) - Cross-compile amd64. by [@​nathanhammond](https://github.com/nathanhammond) in [https://github.com/vercel/turborepo/pull/1452](https://github.com/vercel/turborepo/pull/1452) - fix(cli): prefer IsDir() over explicit type check by [@​tknickman](https://github.com/tknickman) in [https://github.com/vercel/turborepo/pull/1445](https://github.com/vercel/turborepo/pull/1445) - Add test to confirm that file copying works as expected. by [@​nathanhammond](https://github.com/nathanhammond) in [https://github.com/vercel/turborepo/pull/1450](https://github.com/vercel/turborepo/pull/1450) - fix: remove suggestion of using fetch-depth by [@​harshcut](https://github.com/harshcut) in [https://github.com/vercel/turborepo/pull/1438](https://github.com/vercel/turborepo/pull/1438) - Chip away at path migration by [@​gsoltis](https://github.com/gsoltis) in [https://github.com/vercel/turborepo/pull/1459](https://github.com/vercel/turborepo/pull/1459) - Implement allowing both sides of git comparison by [@​gsoltis](https://github.com/gsoltis) in [https://github.com/vercel/turborepo/pull/1442](https://github.com/vercel/turborepo/pull/1442) - Move some fields out of Config by [@​gsoltis](https://github.com/gsoltis) in [https://github.com/vercel/turborepo/pull/1460](https://github.com/vercel/turborepo/pull/1460) - chore: remove redundant `.turbo` by [@​shayc](https://github.com/shayc) in [https://github.com/vercel/turborepo/pull/1475](https://github.com/vercel/turborepo/pull/1475) - Depending on root tasks should work by [@​gsoltis](https://github.com/gsoltis) in [https://github.com/vercel/turborepo/pull/1485](https://github.com/vercel/turborepo/pull/1485) - Implement filesystem cookies for filewatch ordering by [@​gsoltis](https://github.com/gsoltis) in [https://github.com/vercel/turborepo/pull/1410](https://github.com/vercel/turborepo/pull/1410) - Label root package in dependency graph by [@​gsoltis](https://github.com/gsoltis) in [https://github.com/vercel/turborepo/pull/1491](https://github.com/vercel/turborepo/pull/1491) - Implement fsevents by [@​gsoltis](https://github.com/gsoltis) in [https://github.com/vercel/turborepo/pull/1419](https://github.com/vercel/turborepo/pull/1419) - Bug: Fix logic that wipes out part of the config by [@​StevenMatchett](https://github.com/StevenMatchett) in [https://github.com/vercel/turborepo/pull/1527](https://github.com/vercel/turborepo/pull/1527) - Add schema.json to create-turbo templates by [@​jaredpalmer](https://github.com/jaredpalmer) in [https://github.com/vercel/turborepo/pull/1537](https://github.com/vercel/turborepo/pull/1537) - Filter in package by [@​nathanhammond](https://github.com/nathanhammond) in [https://github.com/vercel/turborepo/pull/1538](https://github.com/vercel/turborepo/pull/1538) #### Internal - Ensure we fail if no examples are run by [@​gsoltis](https://github.com/gsoltis) in [https://github.com/vercel/turborepo/pull/1441](https://github.com/vercel/turborepo/pull/1441) - Bump e2e pnpm to 7 by [@​gsoltis](https://github.com/gsoltis) in [https://github.com/vercel/turborepo/pull/1444](https://github.com/vercel/turborepo/pull/1444) - Add missing dependencies to OSX setup by [@​trevorr](https://github.com/trevorr) in [https://github.com/vercel/turborepo/pull/1487](https://github.com/vercel/turborepo/pull/1487) - Add golang to OSX setup by [@​neolivz](https://github.com/neolivz) in [https://github.com/vercel/turborepo/pull/1492](https://github.com/vercel/turborepo/pull/1492) - Configure Renovate by [@​renovate](https://github.com/renovate) in [https://github.com/vercel/turborepo/pull/1499](https://github.com/vercel/turborepo/pull/1499) - chore(deps): update dependency [@​types/react](https://github.com/types/react) to v17.0.47 by [@​renovate](https://github.com/renovate) in [https://github.com/vercel/turborepo/pull/1514](https://github.com/vercel/turborepo/pull/1514) - chore(deps): update dependency ts-json-schema-generator to v0.98.0 by [@​renovate](https://github.com/renovate) in [https://github.com/vercel/turborepo/pull/1516](https://github.com/vercel/turborepo/pull/1516) - chore(renovate): support go mod tidy by [@​tknickman](https://github.com/tknickman) in [https://github.com/vercel/turborepo/pull/1515](https://github.com/vercel/turborepo/pull/1515) - fix(deps): update dependency [@​heroicons/react](https://github.com/heroicons/react) to v1.0.6 by [@​renovate](https://github.com/renovate) in [https://github.com/vercel/turborepo/pull/1520](https://github.com/vercel/turborepo/pull/1520) - chore(deps): update dependency [@​babel/core](https://github.com/babel/core) to v7.18.6 by [@​renovate](https://github.com/renovate) in [https://github.com/vercel/turborepo/pull/1523](https://github.com/vercel/turborepo/pull/1523) - chore(deps): update dependency tailwindcss to v3.1.6 by [@​renovate](https://github.com/renovate) in [https://github.com/vercel/turborepo/pull/1529](https://github.com/vercel/turborepo/pull/1529) - chore(deps): update dependency autoprefixer to v10.4.7 by [@​renovate](https://github.com/renovate) in [https://github.com/vercel/turborepo/pull/1530](https://github.com/vercel/turborepo/pull/1530) - chore(deps): update dependency eslint-config-prettier to v8.5.0 by [@​renovate](https://github.com/renovate) in [https://github.com/vercel/turborepo/pull/1531](https://github.com/vercel/turborepo/pull/1531) - chore(deps): update pnpm/action-setup action to v2.2.2 by [@​renovate](https://github.com/renovate) in [https://github.com/vercel/turborepo/pull/1546](https://github.com/vercel/turborepo/pull/1546) - chore(deps): update dependency postcss to v8.4.14 by [@​renovate](https://github.com/renovate) in [https://github.com/vercel/turborepo/pull/1542](https://github.com/vercel/turborepo/pull/1542) - Makefile works for turbobot by [@​nathanhammond](https://github.com/nathanhammond) in [https://github.com/vercel/turborepo/pull/1550](https://github.com/vercel/turborepo/pull/1550) #### Examples - feat(examples): add svelte by [@​tknickman](https://github.com/tknickman) in [https://github.com/vercel/turborepo/pull/1458](https://github.com/vercel/turborepo/pull/1458) - Fix `yarn start` not working by [@​elis](https://github.com/elis) in [https://github.com/vercel/turborepo/pull/1468](https://github.com/vercel/turborepo/pull/1468) - feat(examples): add tailwind by [@​tknickman](https://github.com/tknickman) in [https://github.com/vercel/turborepo/pull/1464](https://github.com/vercel/turborepo/pull/1464) - fix: added vite.config and fixes for svelte-next.358 by [@​oneezy](https://github.com/oneezy) in [https://github.com/vercel/turborepo/pull/1496](https://github.com/vercel/turborepo/pull/1496) - chore(examples): update tsconfig declaration val by [@​tknickman](https://github.com/tknickman) in [https://github.com/vercel/turborepo/pull/1483](https://github.com/vercel/turborepo/pull/1483) - feat(examples): add react-native-web by [@​tknickman](https://github.com/tknickman) in [https://github.com/vercel/turborepo/pull/1486](https://github.com/vercel/turborepo/pull/1486) - Fix tailwind example by [@​kocisov](https://github.com/kocisov) in [https://github.com/vercel/turborepo/pull/1500](https://github.com/vercel/turborepo/pull/1500) - feat(examples): add nextjs by [@​tknickman](https://github.com/tknickman) in [https://github.com/vercel/turborepo/pull/1506](https://github.com/vercel/turborepo/pull/1506) #### Documentation - docs(cli): update contributing.md with new deps by [@​tknickman](https://github.com/tknickman) in [https://github.com/vercel/turborepo/pull/1449](https://github.com/vercel/turborepo/pull/1449) - Update caching.mdx by [@​chitchu](https://github.com/chitchu) in [https://github.com/vercel/turborepo/pull/1482](https://github.com/vercel/turborepo/pull/1482) - fix(docs): update prune compatibility by [@​tknickman](https://github.com/tknickman) in [https://github.com/vercel/turborepo/pull/1505](https://github.com/vercel/turborepo/pull/1505) - Typo: verifcation --> verification by [@​samouri](https://github.com/samouri) in [https://github.com/vercel/turborepo/pull/1517](https://github.com/vercel/turborepo/pull/1517) - Add `with-prisma` example by [@​NuroDev](https://github.com/NuroDev) in [https://github.com/vercel/turborepo/pull/979](https://github.com/vercel/turborepo/pull/979) - feat(examples): add cra by [@​tknickman](https://github.com/tknickman) in [https://github.com/vercel/turborepo/pull/1504](https://github.com/vercel/turborepo/pull/1504) - Examples fast follows by [@​tknickman](https://github.com/tknickman) in [https://github.com/vercel/turborepo/pull/1526](https://github.com/vercel/turborepo/pull/1526) - feat(examples): add docker by [@​tknickman](https://github.com/tknickman) in [https://github.com/vercel/turborepo/pull/1522](https://github.com/vercel/turborepo/pull/1522) - chore(examples): clean the kitchen (sink) by [@​tknickman](https://github.com/tknickman) in [https://github.com/vercel/turborepo/pull/1534](https://github.com/vercel/turborepo/pull/1534) - \[example/kitchensink] allow accessing vite on any ip/hostname by [@​zsoldosp](https://github.com/zsoldosp) in [https://github.com/vercel/turborepo/pull/1532](https://github.com/vercel/turborepo/pull/1532) - chore(docs): improvements by [@​tknickman](https://github.com/tknickman) in [https://github.com/vercel/turborepo/pull/1540](https://github.com/vercel/turborepo/pull/1540) #### New Contributors - [@​harshcut](https://github.com/harshcut) made their first contribution in [https://github.com/vercel/turborepo/pull/1438](https://github.com/vercel/turborepo/pull/1438) - [@​shayc](https://github.com/shayc) made their first contribution in [https://github.com/vercel/turborepo/pull/1475](https://github.com/vercel/turborepo/pull/1475) - [@​elis](https://github.com/elis) made their first contribution in [https://github.com/vercel/turborepo/pull/1468](https://github.com/vercel/turborepo/pull/1468) - [@​chitchu](https://github.com/chitchu) made their first contribution in [https://github.com/vercel/turborepo/pull/1482](https://github.com/vercel/turborepo/pull/1482) - [@​trevorr](https://github.com/trevorr) made their first contribution in [https://github.com/vercel/turborepo/pull/1487](https://github.com/vercel/turborepo/pull/1487) - [@​oneezy](https://github.com/oneezy) made their first contribution in [https://github.com/vercel/turborepo/pull/1496](https://github.com/vercel/turborepo/pull/1496) - [@​neolivz](https://github.com/neolivz) made their first contribution in [https://github.com/vercel/turborepo/pull/1492](https://github.com/vercel/turborepo/pull/1492) - [@​kocisov](https://github.com/kocisov) made their first contribution in [https://github.com/vercel/turborepo/pull/1500](https://github.com/vercel/turborepo/pull/1500) - [@​renovate](https://github.com/renovate) made their first contribution in [https://github.com/vercel/turborepo/pull/1499](https://github.com/vercel/turborepo/pull/1499) - [@​samouri](https://github.com/samouri) made their first contribution in [https://github.com/vercel/turborepo/pull/1517](https://github.com/vercel/turborepo/pull/1517) - [@​NuroDev](https://github.com/NuroDev) made their first contribution in [https://github.com/vercel/turborepo/pull/979](https://github.com/vercel/turborepo/pull/979) - [@​zsoldosp](https://github.com/zsoldosp) made their first contribution in [https://github.com/vercel/turborepo/pull/1532](https://github.com/vercel/turborepo/pull/1532) - [@​StevenMatchett](https://github.com/StevenMatchett) made their first contribution in [https://github.com/vercel/turborepo/pull/1527](https://github.com/vercel/turborepo/pull/1527) **Full Changelog**: vercel/turborepo@v1.3.1...v1.3.2 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/singlestone/sugar). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xMjIuMSIsInVwZGF0ZWRJblZlciI6IjMyLjEyMi4xIn0=-->
A basic svelte example.
Replaces #1184 and #244
NOTE: There is no shared
ts-config
package here because of how svelte sets up it's ts-config inheritance. The base config is auto generated in a set location (.svelte-kit
). There are a few open issues about adjusting this for better monorepo support (relevant issues: sveltejs/kit#4052, microsoft/TypeScript#29118 (comment))