Skip to content

Commit 3de0e4b

Browse files
authored
Merge pull request #1 from sveltejs/master
keep up to date
2 parents 2a2aa42 + 6250046 commit 3de0e4b

File tree

1,645 files changed

+41847
-28187
lines changed

Some content is hidden

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

1,645 files changed

+41847
-28187
lines changed

.eslintignore

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

.eslintrc.js

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
module.exports = {
2+
root: true,
3+
rules: {
4+
indent: 'off',
5+
'no-unused-vars': 'off',
6+
semi: [2, 'always'],
7+
'keyword-spacing': [2, { before: true, after: true }],
8+
'space-before-blocks': [2, 'always'],
9+
'no-mixed-spaces-and-tabs': [2, 'smart-tabs'],
10+
'no-cond-assign': 0,
11+
'object-shorthand': [2, 'always'],
12+
'no-const-assign': 2,
13+
'no-class-assign': 2,
14+
'no-this-before-super': 2,
15+
'no-var': 2,
16+
'no-unreachable': 2,
17+
'valid-typeof': 2,
18+
'quote-props': [2, 'as-needed'],
19+
'one-var': [2, 'never'],
20+
'prefer-arrow-callback': 2,
21+
'prefer-const': [2, { destructuring: 'all' }],
22+
'arrow-spacing': 2,
23+
'no-inner-declarations': 0,
24+
'require-atomic-updates': 'off',
25+
'@typescript-eslint/indent': 'off',
26+
'@typescript-eslint/camelcase': 'off',
27+
'@typescript-eslint/no-use-before-define': 'off',
28+
'@typescript-eslint/array-type': ['error', 'array-simple'],
29+
'@typescript-eslint/explicit-function-return-type': 'off',
30+
'@typescript-eslint/no-explicit-any': 'off',
31+
'@typescript-eslint/explicit-member-accessibility': 'off',
32+
'@typescript-eslint/no-unused-vars': [
33+
'error',
34+
{
35+
argsIgnorePattern: '^_'
36+
}
37+
],
38+
'@typescript-eslint/no-object-literal-type-assertion': 'off',
39+
'@typescript-eslint/no-unused-vars': 'off',
40+
'@typescript-eslint/prefer-interface': 'off'
41+
},
42+
globals: {
43+
globalThis: false
44+
},
45+
env: {
46+
es6: true,
47+
browser: true,
48+
node: true,
49+
mocha: true
50+
},
51+
extends: [
52+
'eslint:recommended',
53+
'plugin:import/errors',
54+
'plugin:import/warnings',
55+
'plugin:import/typescript',
56+
'plugin:@typescript-eslint/recommended'
57+
],
58+
parserOptions: {
59+
ecmaVersion: 9,
60+
sourceType: 'module'
61+
},
62+
plugins: ['svelte3'],
63+
settings: {
64+
'import/core-modules': [
65+
'svelte',
66+
'svelte/internal',
67+
'svelte/store',
68+
'svelte/easing',
69+
'estree'
70+
],
71+
'svelte3/compiler': require('./compiler')
72+
},
73+
overrides: [
74+
{
75+
files: ['*.js'],
76+
rules: {
77+
'@typescript-eslint/no-var-requires': 'off'
78+
}
79+
},
80+
{
81+
files: ['*.svelte'],
82+
processor: 'svelte3/svelte3',
83+
rules: {
84+
'@typescript-eslint/indent': 'off'
85+
}
86+
}
87+
]
88+
};

.eslintrc.json

Lines changed: 0 additions & 44 deletions
This file was deleted.

.flowconfig

Lines changed: 0 additions & 9 deletions
This file was deleted.

.github/ISSUE_TEMPLATE.md

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
1-
<!--
2-
Thanks for raising an issue! (For *questions*, we recommend instead using https://stackoverflow.com and adding the 'svelte' tag.)
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+
-----
35

4-
To help us help you, if you've found a bug please consider the following:
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.
59

6-
* If you can demonstrate the bug using https://svelte.dev/repl, please do.
7-
* If that's not possible, we recommend creating a small repo that illustrates the problem.
8-
* Make sure you include information about the browser, and which version of Svelte you're using
10+
### Feature requests and proposals
11+
We're excited to hear how we can make Svelte better. Please add as much detail
12+
as you can on your use case.
913

10-
Reproductions should be small, self-contained, correct examples – http://sscce.org.
14+
### Bugs
15+
If you're filing an issue about a bug please include as much information
16+
as you can including the following.
1117

12-
Occasionally, this won't be possible, and that's fine – we still appreciate you raising the issue. But please understand that Svelte is run by unpaid volunteers in their free time, and issues that follow these instructions will get fixed faster.
18+
- Your browser and the version: (e.x. Chrome 52.1, Firefox 48.0, IE 10)
19+
- Your operating system: (e.x. OS X 10, Windows XP, etc)
20+
- Svelte version (Please check you can reproduce the issue with the latest release!)
21+
- Whether your project uses Webpack or Rollup
1322

14-
If you have a stack trace to include, we recommend putting inside a `<details>` block for the sake of the thread's readability:
23+
- *Repeatable steps to reproduce the issue*
1524

16-
<details>
17-
<summary>Stack trace</summary>
18-
19-
Stack trace goes here...
20-
</details>
21-
-->
25+
Thanks for being part of Svelte!
26+
-------

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: 'Bug'
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**Logs**
14+
Please include browser console and server logs around the time this bug occurred.
15+
16+
**To Reproduce**
17+
To help us help you, if you've found a bug please consider the following:
18+
19+
* If you can demonstrate the bug using https://svelte.dev/repl, please do.
20+
* If that's not possible, we recommend creating a small repo that illustrates the problem.
21+
* Reproductions should be small, self-contained, correct examples – http://sscce.org.
22+
23+
Occasionally, this won't be possible, and that's fine – we still appreciate you raising the issue. But please understand that Svelte is run by unpaid volunteers in their free time, and issues that follow these instructions will get fixed faster.
24+
25+
**Expected behavior**
26+
A clear and concise description of what you expected to happen.
27+
28+
**Stacktraces**
29+
If you have a stack trace to include, we recommend putting inside a `<details>` block for the sake of the thread's readability:
30+
31+
<details>
32+
<summary>Stack trace</summary>
33+
34+
Stack trace goes here...
35+
</details>
36+
37+
**Information about your Svelte project:**
38+
- Your browser and the version: (e.x. Chrome 52.1, Firefox 48.0, IE 10)
39+
40+
- Your operating system: (e.x. OS X 10, Ubuntu Linux 19.10, Windows XP, etc)
41+
42+
- Svelte version (Please check you can reproduce the issue with the latest release!)
43+
44+
- Whether your project uses Webpack or Rollup
45+
46+
**Severity**
47+
How severe an issue is this bug to you? Is this annoying, blocking some users, blocking an upgrade or blocking your usage of Svelte entirely?
48+
49+
Note: the more honest and specific you are here the more we will take you seriously.
50+
51+
**Additional context**
52+
Add any other context about the problem here.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: 'New Feature'
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. For example: I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**How important is this feature to you?**
20+
Note: the more honest and specific you are here the more we will take you seriously.
21+
22+
**Additional context**
23+
Add any other context or screenshots about the feature request here.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: Questions and help
3+
about: If you think you need help with something related to Svelte
4+
title: ''
5+
labels: 'Question'
6+
assignees: ''
7+
8+
---
9+
10+
This issue tracker is intended to collect bug reports and feature requests.
11+
12+
For help with installation, information on how features work, or questions about specific features of Svelte, please come and join us in the [Svelte Discord](https://svelte.dev/chat), or ask your question on [Stack Overflow](https://stackoverflow.com/questions/tagged/svelte). Any issues open for help requests will be closed to keep from clogging up the issue tracker.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
<!--
2-
Thank you for creating a pull request. Before submitting, please note the following:
31

4-
* If your pull request implements a new feature, please raise an issue to discuss it before sending code. In many cases features are absent for a reason.
5-
* This message body should clearly illustrate what problems it solves. If there are related issues, remember to reference them.
6-
* Ideally, include a test that fails without this PR but passes with it. PRs will only be merged once they pass CI. (Remember to `npm run lint`!)
7-
-->
2+
3+
### Before submitting the PR, please make sure you do the following
4+
- [ ] It's really useful if your PR relates to an outstanding issue, so please reference it in your PR, or create an explanatory one for discussion. In many cases features are absent for a reason.
5+
- [ ] This message body should clearly illustrate what problems it solves. If there are related issues, remember to reference them.
6+
- [ ] Ideally, include a test that fails without this PR but passes with it. PRs will only be merged once they pass CI. (Remember to `npm run lint`!)
7+
### Tests
8+
- [ ] Run the tests tests with `npm test` or `yarn test`)

.github/workflows/ci.yml

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

.gitignore

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,40 @@
1+
.idea
12
.DS_Store
23
.nyc_output
34
node_modules
45
*.map
5-
/src/compile/internal-exports.ts
6-
/compiler.js
7-
/index.js
8-
/internal.*
9-
/store.js
10-
/easing.js
11-
/motion.*
12-
/transition.js
13-
/animate.js
6+
/src/compiler/compile/internal_exports.ts
7+
/compiler.d.ts
8+
/compiler.*js
9+
/index.*js
10+
/internal
11+
/store
12+
/easing
13+
/motion
14+
/transition
15+
/animate
1416
/scratch/
1517
/coverage/
16-
/coverage.lcov/
18+
/coverage.lcov
19+
/test/*/samples/_
1720
/test/sourcemaps/samples/*/output.js
1821
/test/sourcemaps/samples/*/output.js.map
1922
/test/sourcemaps/samples/*/output.css
2023
/test/sourcemaps/samples/*/output.css.map
2124
/yarn-error.log
2225
_actual*.*
26+
_output
27+
/types
2328

2429
/site/cypress/screenshots/
2530
/site/__sapper__/
2631
/site/.env
2732
/site/.sessions
2833
/site/static/svelte-app.json
2934
/site/static/contributors.jpg
35+
/site/static/workers
36+
/site/static/organisations
3037
/site/scripts/svelte-app
38+
/site/scripts/community
3139
/site/src/routes/_contributors.js
40+
/site/src/routes/_components/WhosUsingSvelte.svelte

0 commit comments

Comments
 (0)