Skip to content

Commit 9420021

Browse files
committed
squash commits
0 parents  commit 9420021

File tree

5,098 files changed

+130383
-0
lines changed

Some content is hidden

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

5,098 files changed

+130383
-0
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
indent_style = tab
7+
indent_size = 2
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
11+
[test/**/expected.css]
12+
insert_final_newline = false
13+
14+
[{package.json,.travis.yml,.eslintrc.json}]
15+
indent_style = space

.eslintignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
**/_actual.js
2+
**/expected.js
3+
_output
4+
test/*/samples/*/output.js
5+
6+
# automatically generated
7+
internal_exports.ts
8+
9+
# output files
10+
animate/*.js
11+
esing/*.js
12+
internal/*.js
13+
motion/*.js
14+
store/*.js
15+
transition/*.js
16+
index.js
17+
compiler.js

.eslintrc.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
root: true,
3+
extends: '@sveltejs',
4+
settings: {
5+
'import/core-modules': [
6+
'svelte',
7+
'svelte/internal',
8+
'svelte/store',
9+
'svelte/easing',
10+
'estree'
11+
],
12+
'svelte3/compiler': require('./compiler')
13+
}
14+
};

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/site/** -linguist-detectable
2+
/test/**/samples/** -linguist-detectable
3+
/**/*.svelte linguist-detectable

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
open_collective: svelte

.github/ISSUE_TEMPLATE.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
------
2+
Before filing an issue we'd appreciate it if you could take a moment to ensure
3+
there isn't already an open issue or pull-request.
4+
-----
5+
6+
If there's an existing issue, please add a :+1: reaction to the description of
7+
the issue. One way we prioritize issues is by the number of :+1: reactions on
8+
their descriptions. Please DO NOT add `+1` or :+1: comments.
9+
10+
### Feature requests and proposals
11+
12+
We're excited to hear how we can make Svelte better. Please add as much detail
13+
as you can on your use case. To propose an implementation of a large feature or
14+
change, please create an [RFC](https://github.com/sveltejs/rfcs).
15+
16+
### Bugs
17+
18+
If you're filing an issue about a bug please include as much information
19+
as you can including the following.
20+
21+
- Your browser and the version: (e.x. Chrome 52.1, Firefox 48.0, IE 10)
22+
- Your operating system: (e.x. OS X 10, Windows XP, etc)
23+
- Svelte version (Please check you can reproduce the issue with the latest release!)
24+
- Whether your project uses Webpack or Rollup
25+
26+
- *Repeatable steps to reproduce the issue*
27+
28+
Thanks for being part of Svelte!
29+
-------

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: "\U0001F41E Bug report"
2+
description: Report an issue with Svelte
3+
labels: ["triage: bug"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thanks for taking the time to fill out this bug report!
9+
- type: textarea
10+
id: bug-description
11+
attributes:
12+
label: Describe the bug
13+
description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks!
14+
placeholder: Bug description
15+
validations:
16+
required: true
17+
- type: textarea
18+
id: reproduction
19+
attributes:
20+
label: Reproduction
21+
description: Please provide a link to a repo or REPL that can reproduce the problem you ran into. If a report is vague (e.g. just a generic error message) and has no reproduction, it will receive a "need reproduction" label. If no reproduction is provided within a reasonable time-frame, the issue will be closed.
22+
placeholder: Reproduction
23+
validations:
24+
required: true
25+
- type: textarea
26+
id: logs
27+
attributes:
28+
label: Logs
29+
description: "Please include browser console and server logs around the time this bug occurred. Optional if provided reproduction. Please try not to insert an image but copy paste the log text."
30+
render: shell
31+
- type: textarea
32+
id: system-info
33+
attributes:
34+
label: System Info
35+
description: Output of `npx envinfo --system --npmPackages svelte,rollup,webpack --binaries --browsers`
36+
render: shell
37+
placeholder: System, Binaries, Browsers
38+
validations:
39+
required: true
40+
- type: dropdown
41+
id: severity
42+
attributes:
43+
label: Severity
44+
description: Select the severity of this issue
45+
options:
46+
- annoyance
47+
- blocking an upgrade
48+
- blocking all usage of svelte
49+
validations:
50+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Discord Chat
4+
url: https://svelte.dev/chat
5+
about: Ask questions and discuss with other Svelte users in real time.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: "Feature Request"
2+
description: Request a new Svelte feature
3+
labels: [enhancement]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thanks for taking the time to request this feature! If your feature request is complex or substantial enough to warrant in-depth discussion, maintainers may close the issue and ask you to open an [RFC](https://github.com/sveltejs/rfcs).
9+
- type: textarea
10+
id: problem
11+
attributes:
12+
label: Describe the problem
13+
description: Please provide a clear and concise description the problem this feature would solve. The more information you can provide here, the better.
14+
placeholder: I'm always frustrated when...
15+
validations:
16+
required: true
17+
- type: textarea
18+
id: solution
19+
attributes:
20+
label: Describe the proposed solution
21+
description: Please provide a clear and concise description of what you would like to happen.
22+
placeholder: I would like to see...
23+
validations:
24+
required: true
25+
- type: textarea
26+
id: alternatives
27+
attributes:
28+
label: Alternatives considered
29+
description: "Please provide a clear and concise description of any alternative solutions or features you've considered."
30+
validations:
31+
required: true
32+
- type: dropdown
33+
id: importance
34+
attributes:
35+
label: Importance
36+
description: How important is this feature to you?
37+
options:
38+
- nice to have
39+
- would make my life easier
40+
- i cannot use svelte without it
41+
validations:
42+
required: true

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
### Before submitting the PR, please make sure you do the following
2+
- [ ] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
3+
- [ ] Prefix your PR title with `[feat]`, `[fix]`, `[chore]`, or `[docs]`.
4+
- [ ] This message body should clearly illustrate what problems it solves.
5+
- [ ] Ideally, include a test that fails without this PR but passes with it.
6+
7+
### Tests
8+
- [ ] Run the tests with `npm test` and lint the project with `npm run lint`

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI
2+
on: [push, pull_request]
3+
jobs:
4+
Tests:
5+
runs-on: ${{ matrix.os }}
6+
timeout-minutes: 15
7+
strategy:
8+
matrix:
9+
node-version: [8, 10, 12, 14, 16]
10+
os: [ubuntu-latest, windows-latest, macOS-latest]
11+
steps:
12+
- uses: actions/checkout@v1
13+
- uses: actions/setup-node@v2
14+
with:
15+
node-version: ${{ matrix.node-version }}
16+
cache: npm
17+
- run: npm install
18+
- run: npm test
19+
env:
20+
CI: true
21+
Lint:
22+
runs-on: ubuntu-latest
23+
timeout-minutes: 5
24+
steps:
25+
- uses: actions/checkout@v1
26+
- uses: actions/setup-node@v2
27+
with:
28+
cache: npm
29+
- run: 'npm i && npm run lint'
30+
Unit:
31+
runs-on: ${{ matrix.os }}
32+
timeout-minutes: 10
33+
strategy:
34+
matrix:
35+
os: [ubuntu-latest, windows-latest, macOS-latest]
36+
steps:
37+
- uses: actions/checkout@v1
38+
- uses: actions/setup-node@v2
39+
with:
40+
cache: npm
41+
- run: 'npm i && npm run test:unit'

.github/workflows/docs.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- site/content/**
9+
10+
jobs:
11+
release:
12+
name: Deploy docs
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: my-app-install token
16+
id: github-app
17+
uses: getsentry/action-github-app-token@v1
18+
with:
19+
app_id: ${{ secrets.GH_APP_ID }}
20+
private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}
21+
22+
- name: run deploy docs workflow
23+
uses: 'sveltejs/action-deploy-docs/dispatch@main'
24+
with:
25+
repo: 'svelte'
26+
branch: 'master'
27+
docs_path: 'site/content'
28+
token: ${{ steps.github-app.outputs.token }}

.gitignore

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

.mocharc.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
file: [
3+
'test/test.ts'
4+
],
5+
require: [
6+
'sucrase/register'
7+
]
8+
};
9+
10+
// add coverage options when running 'npx c8 mocha'
11+
if (process.env.NODE_V8_COVERAGE) {
12+
module.exports.fullTrace = true;
13+
module.exports.require.push('source-map-support/register');
14+
}

0 commit comments

Comments
 (0)