Skip to content

Commit ddfff4d

Browse files
authored
chore: convert to monorepo (#8644)
1 parent 1c581bc commit ddfff4d

File tree

4,862 files changed

+1220
-2841
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,862 files changed

+1220
-2841
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ jobs:
4949
with:
5050
node-version: 16
5151
cache: pnpm
52-
- run: 'pnpm i && pnpm format:check && pnpm lint'
52+
- run: 'pnpm i && pnpm check && pnpm lint'

.gitignore

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,4 @@
22
.DS_Store
33
.vscode
44
node_modules
5-
*.map
6-
/src/compiler/compile/internal_exports.js
7-
/src/shared/version.js
8-
/compiler.d.ts
9-
/compiler.cjs
10-
/index.d.ts
11-
/action.d.ts
12-
/internal.d.ts
13-
/store.d.ts
14-
/easing.d.ts
15-
/motion.d.ts
16-
/transition.d.ts
17-
/animate.d.ts
18-
/scratch/
19-
/test/*/samples/_
20-
/test/runtime/shards
21-
/yarn-error.log
22-
_actual*.*
23-
_output
24-
/types
255
.eslintcache

CONTRIBUTING.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ There are many ways to contribute to Svelte, and many of them do not involve wri
1414
- Simply start using Svelte. Go through the [Getting Started](https://svelte.dev/docs#getting-started) guide. Does everything work as expected? If not, we're always looking for improvements. Let us know by [opening an issue](#reporting-new-issues).
1515
- Look through the [open issues](https://github.com/sveltejs/svelte/issues). A good starting point would be issues tagged [good first issue](https://github.com/sveltejs/svelte/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22). Provide workarounds, ask for clarification, or suggest labels. Help [triage issues](#triaging-issues-and-pull-requests).
1616
- If you find an issue you would like to fix, [open a pull request](#pull-requests).
17-
- Read through our [tutorials](https://svelte.dev/tutorial/basics). If you find anything that is confusing or can be improved, you can make edits by clicking "Edit this chapter" at the bottom left of the tutorial page.
17+
- Read through our [tutorials](https://learn.svelte.dev/). If you find anything that is confusing or can be improved, you can make edits by clicking "Edit this page" at the bottom left of the tutorial page.
1818
- Take a look at the [features requested](https://github.com/sveltejs/svelte/labels/feature%20request) by others in the community and consider opening a pull request if you see something you want to work on.
1919

2020
Contributions are very welcome. If you think you need help planning your contribution, please ping us on Discord at [svelte.dev/chat](https://svelte.dev/chat) and let us know you are looking for a bit of help.
@@ -74,9 +74,10 @@ Small pull requests are much easier to review and more likely to get merged.
7474

7575
### Installation
7676

77-
1. Ensure you have [pnpm](https://pnpm.io/installation) installed.
78-
1. After cloning the repository, run `pnpm install` in the root of the repository.
79-
1. To compile in watch mode, run `pnpm dev`.
77+
1. Ensure you have [pnpm](https://pnpm.io/installation) installed
78+
1. After cloning the repository, run `pnpm install`. You can do this in the root directory or in the `svelte` project
79+
1. Move into the `svelte` directory with `cd packages/svelte`
80+
1. To compile in watch mode, run `pnpm dev`
8081

8182
### Creating a branch
8283

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
[![Cybernetically enhanced web apps: Svelte](https://sveltejs.github.io/assets/banner.png)](https://svelte.dev)
22

3-
4-
[![npm version](https://img.shields.io/npm/v/svelte.svg)](https://www.npmjs.com/package/svelte) [![license](https://img.shields.io/npm/l/svelte.svg)](LICENSE.md) [![Chat](https://img.shields.io/discord/457912077277855764?label=chat&logo=discord)](https://svelte.dev/chat)
5-
3+
[![license](https://img.shields.io/npm/l/svelte.svg)](LICENSE.md) [![Chat](https://img.shields.io/discord/457912077277855764?label=chat&logo=discord)](https://svelte.dev/chat)
64

75
## What is Svelte?
86

97
Svelte is a new way to build web applications. It's a compiler that takes your declarative components and converts them into efficient JavaScript that surgically updates the DOM.
108

119
Learn more at the [Svelte website](https://svelte.dev), or stop by the [Discord chatroom](https://svelte.dev/chat).
1210

13-
1411
## Supporting Svelte
1512

1613
Svelte is an MIT-licensed open source project with its ongoing development made possible entirely by fantastic volunteers. If you'd like to support their efforts, please consider:
@@ -19,13 +16,15 @@ Svelte is an MIT-licensed open source project with its ongoing development made
1916

2017
Funds donated via Open Collective will be used for compensating expenses related to Svelte's development such as hosting costs. If sufficient donations are received, funds may also be used to support Svelte's development more directly.
2118

22-
2319
## Roadmap
2420

2521
You may view [our roadmap](https://svelte.dev/roadmap) if you'd like to see what we're currently working on.
2622

23+
## Contributing
24+
25+
Please see the [Contributing Guide](CONTRIBUTING.md) and [svelte package](packages/svelte) for contributing to Svelte.
2726

28-
## Development
27+
### Development
2928

3029
Pull requests are encouraged and always welcome. [Pick an issue](https://github.com/sveltejs/svelte/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc) and help us out!
3130

@@ -37,7 +36,7 @@ cd svelte
3736
pnpm install
3837
```
3938

40-
> Do not use Yarn to install the dependencies, as the specific package versions in `package-lock.json` are used to build and test Svelte.
39+
> Do not use Yarn to install the dependencies, as the specific package versions in `pnpm-lock.json` are used to build and test Svelte.
4140
4241
To build the compiler and all the other modules included in the package:
4342

@@ -66,12 +65,11 @@ To filter tests, use `-g` (aka `--grep`). For example, to only run tests involvi
6665
pnpm test -- -g transition
6766
```
6867

69-
70-
## svelte.dev
68+
### svelte.dev
7169

7270
The source code for https://svelte.dev lives in the [sites](https://github.com/sveltejs/sites) repository, with all the documentation in the [site/content](site/content) directory. The site is built with [SvelteKit](https://kit.svelte.dev).
7371

74-
### Is svelte.dev down?
72+
## Is svelte.dev down?
7573

7674
Probably not, but it's possible. If you can't seem to access any `.dev` sites, check out [this SuperUser question and answer](https://superuser.com/q/1413402).
7775

package.json

Lines changed: 14 additions & 128 deletions
Original file line numberDiff line numberDiff line change
@@ -1,145 +1,31 @@
11
{
2-
"name": "svelte",
3-
"version": "4.0.0-next.0",
4-
"description": "Cybernetically enhanced web apps",
2+
"name": "svelte-monorepo",
3+
"version": "0.0.1",
4+
"description": "monorepo for svelte and friends",
5+
"private": true,
56
"type": "module",
6-
"module": "src/runtime/index.js",
7-
"main": "src/runtime/index.js",
8-
"files": [
9-
"src",
10-
"types",
11-
"compiler.*",
12-
"register.js",
13-
"index.d.ts",
14-
"internal.d.ts",
15-
"store.d.ts",
16-
"animate.d.ts",
17-
"transition.d.ts",
18-
"easing.d.ts",
19-
"motion.d.ts",
20-
"action.d.ts",
21-
"elements.d.ts",
22-
"README.md"
23-
],
24-
"exports": {
25-
"./package.json": "./package.json",
26-
".": {
27-
"types": "./types/runtime/index.d.ts",
28-
"browser": {
29-
"import": "./src/runtime/index.js"
30-
},
31-
"import": "./src/runtime/ssr.js"
32-
},
33-
"./compiler": {
34-
"types": "./types/compiler/index.d.ts",
35-
"import": "./src/compiler/index.js",
36-
"require": "./compiler.cjs"
37-
},
38-
"./action": {
39-
"types": "./types/runtime/action/index.d.ts"
40-
},
41-
"./animate": {
42-
"types": "./types/runtime/animate/index.d.ts",
43-
"import": "./src/runtime/animate/index.js"
44-
},
45-
"./easing": {
46-
"types": "./types/runtime/easing/index.d.ts",
47-
"import": "./src/runtime/easing/index.js"
48-
},
49-
"./internal": {
50-
"types": "./types/runtime/internal/index.d.ts",
51-
"import": "./src/runtime/internal/index.js"
52-
},
53-
"./motion": {
54-
"types": "./types/runtime/motion/index.d.ts",
55-
"import": "./src/runtime/motion/index.js"
56-
},
57-
"./store": {
58-
"types": "./types/runtime/store/index.d.ts",
59-
"import": "./src/runtime/store/index.js"
60-
},
61-
"./transition": {
62-
"types": "./types/runtime/transition/index.d.ts",
63-
"import": "./src/runtime/transition/index.js"
64-
},
65-
"./elements": {
66-
"types": "./elements.d.ts"
67-
}
68-
},
69-
"engines": {
70-
"node": ">=16"
71-
},
72-
"types": "types/runtime/index.d.ts",
737
"scripts": {
74-
"format:fix": "prettier . --cache --plugin-search-dir=. --write",
75-
"format:check": "prettier . --cache --plugin-search-dir=. --check",
76-
"test": "vitest run && echo \"manually check that there are no type errors in test/types by opening the files in there\"",
77-
"build": "rollup -c && npm run tsd",
78-
"prepare": "npm run build",
79-
"dev": "rollup -cw",
80-
"posttest": "agadoo src/internal/index.js",
81-
"prepublishOnly": "npm run lint && npm run build && npm test",
82-
"tsd": "node ./generate-types.js",
83-
"lint": "eslint \"{src,test}/**/*.{ts,js}\" --cache"
8+
"test": "pnpm test -r --filter=./packages/*",
9+
"build": "pnpm -r build",
10+
"check": "pnpm -r check",
11+
"lint": "pnpm -r lint",
12+
"format": "pnpm -r format"
8413
},
8514
"repository": {
8615
"type": "git",
87-
"url": "https://github.com/sveltejs/svelte.git"
16+
"url": "git+https://github.com/sveltejs/svelte.git"
8817
},
89-
"keywords": [
90-
"UI",
91-
"framework",
92-
"templates",
93-
"templating"
94-
],
95-
"author": "Rich Harris",
9618
"license": "MIT",
97-
"bugs": {
98-
"url": "https://github.com/sveltejs/svelte/issues"
99-
},
100-
"homepage": "https://svelte.dev",
101-
"dependencies": {
102-
"@ampproject/remapping": "^2.2.1",
103-
"@jridgewell/sourcemap-codec": "^1.4.15",
104-
"acorn": "^8.8.2",
105-
"aria-query": "^5.1.3",
106-
"axobject-query": "^3.1.1",
107-
"code-red": "^1.0.0",
108-
"css-tree": "^2.3.1",
109-
"estree-walker": "^3.0.3",
110-
"is-reference": "^3.0.1",
111-
"locate-character": "^2.0.5",
112-
"magic-string": "^0.30.0",
113-
"periscopic": "^3.1.0"
114-
},
11519
"devDependencies": {
116-
"@playwright/test": "^1.33.0",
117-
"@rollup/plugin-commonjs": "^24.1.0",
118-
"@rollup/plugin-json": "^6.0.0",
119-
"@rollup/plugin-node-resolve": "^15.0.2",
120-
"@rollup/plugin-replace": "^5.0.2",
121-
"@sveltejs/eslint-config": "^6.0.1",
122-
"@types/aria-query": "^5.0.1",
123-
"@types/estree": "^1.0.0",
124-
"@types/node": "^14.14.31",
125-
"@typescript-eslint/eslint-plugin": "^5.58.0",
126-
"agadoo": "^3.0.0",
127-
"esbuild": "^0.17.19",
20+
"@changesets/cli": "^2.26.0",
21+
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
12822
"eslint": "^8.40.0",
12923
"eslint-plugin-import": "^2.27.5",
13024
"eslint-plugin-svelte": "^2.28.0",
13125
"eslint-plugin-unicorn": "^47.0.0",
132-
"happy-dom": "^9.18.3",
133-
"jsdom": "^21.1.1",
134-
"kleur": "^4.1.5",
26+
"playwright": "^1.34.3",
13527
"prettier": "^2.8.8",
136-
"prettier-plugin-svelte": "^2.10.0",
137-
"rollup": "^3.20.2",
138-
"source-map": "^0.7.4",
139-
"tiny-glob": "^0.2.9",
140-
"typescript": "^5.0.4",
141-
"util": "^0.12.5",
142-
"vitest": "^0.31.1"
28+
"prettier-plugin-svelte": "^2.10.0"
14329
},
14430
"packageManager": "[email protected]"
14531
}
File renamed without changes.
File renamed without changes.

packages/svelte/.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
*.map
2+
/src/compiler/compile/internal_exports.js
3+
/src/shared/version.js
4+
/compiler.d.ts
5+
/compiler.cjs
6+
/index.d.ts
7+
/action.d.ts
8+
/internal.d.ts
9+
/store.d.ts
10+
/easing.d.ts
11+
/motion.d.ts
12+
/transition.d.ts
13+
/animate.d.ts
14+
/scratch/
15+
/test/*/samples/_
16+
/test/runtime/shards
17+
_actual*.*
18+
_output
19+
/types
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)