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

Structured code generation #3539

Merged
merged 95 commits into from
Oct 16, 2019
Merged
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
93c7e1d
early WIP
Rich-Harris Sep 9, 2019
e876f60
more progress. everything still broken
Rich-Harris Sep 10, 2019
a335d81
use nodes instead of strings in more places
Rich-Harris Sep 10, 2019
8addd23
bump code-red
Rich-Harris Sep 10, 2019
0bcbe96
baby steps
Rich-Harris Sep 11, 2019
1d8d17b
hoist nodes, not snippets
Rich-Harris Sep 11, 2019
5028023
props
Rich-Harris Sep 11, 2019
9d94729
bit more progress
Rich-Harris Sep 12, 2019
12e7b5e
more
Rich-Harris Sep 12, 2019
6514b14
more
Rich-Harris Sep 12, 2019
af1057b
various
Rich-Harris Sep 12, 2019
e2d6ce1
various
Rich-Harris Sep 12, 2019
d731766
attributes and innerHTML
Rich-Harris Sep 13, 2019
605c5d2
various
Rich-Harris Sep 13, 2019
3470005
various
Rich-Harris Sep 13, 2019
2adcdfb
various
Rich-Harris Sep 14, 2019
42f4d69
...
Rich-Harris Sep 14, 2019
8d093c6
dont worry con i promise i will squash these commits
Rich-Harris Sep 14, 2019
1091d23
some annoying typescript stuff
Rich-Harris Sep 14, 2019
fe7d0d3
...
Rich-Harris Sep 15, 2019
e12a30a
various
Rich-Harris Sep 15, 2019
9e1bc90
...
Rich-Harris Sep 15, 2019
6616b17
more stuff
Rich-Harris Sep 16, 2019
67ae2e7
maybe fix TS stuff
Rich-Harris Sep 16, 2019
032cab9
prevent duplicate manipulations
Rich-Harris Sep 18, 2019
d386efd
fix filename var
Rich-Harris Sep 18, 2019
3f2f1b1
fix some transition stuff
Rich-Harris Sep 18, 2019
9d60236
various
Rich-Harris Sep 18, 2019
2bf4b9c
update code-red
Rich-Harris Sep 18, 2019
ec238d7
couple of fixes
Rich-Harris Sep 18, 2019
f30e02a
various
Rich-Harris Sep 18, 2019
79b75cf
various
Rich-Harris Sep 19, 2019
36b0bd3
fix
Rich-Harris Sep 19, 2019
41becdc
various
Rich-Harris Sep 19, 2019
b9b72a9
fixes
Rich-Harris Sep 19, 2019
d01669e
binding stuff
Rich-Harris Sep 19, 2019
29f6437
use raw_expression
Rich-Harris Sep 19, 2019
8f233ae
more binding stuff
Rich-Harris Sep 19, 2019
f721a7d
more binding stuff
Rich-Harris Sep 19, 2019
9d9245d
fix dev warnings
Rich-Harris Sep 19, 2019
13de893
remove some unreachable code
Rich-Harris Sep 19, 2019
23b8f5f
fix store bindings
Rich-Harris Sep 21, 2019
88106c9
almost all client-side runtime tests passing
Rich-Harris Sep 21, 2019
2031f52
slot fallbacks
Rich-Harris Sep 21, 2019
2ea2753
fix add_css function
Rich-Harris Sep 21, 2019
a5a729c
doh, wrong way round
Rich-Harris Sep 21, 2019
5ece428
fix event modifiers
Rich-Harris Sep 21, 2019
eec4bd1
so close, 4 left
Rich-Harris Sep 21, 2019
0d8bdee
deep destructuring in each block
Rich-Harris Sep 21, 2019
cd83265
dont overwrite const props
Rich-Harris Sep 21, 2019
3d9943d
fix aliased props
Rich-Harris Sep 21, 2019
c6dfd8c
quality of life improvement
Rich-Harris Sep 21, 2019
7348390
all client-side runtime tests passing!
Rich-Harris Sep 21, 2019
e3c98cf
fix hydration
Rich-Harris Sep 21, 2019
a2e96db
basic SSR working
Rich-Harris Sep 21, 2019
9fa1337
most ssr-only tests passing
Rich-Harris Sep 21, 2019
6ac2c8a
add ssr-only tests passing
Rich-Harris Sep 21, 2019
c4b8af9
tidy up
Rich-Harris Sep 21, 2019
6e00b68
various
Rich-Harris Sep 21, 2019
23167da
fixes
Rich-Harris Sep 21, 2019
1e2f29b
various fixes
Rich-Harris Sep 22, 2019
16b4897
various
Rich-Harris Sep 22, 2019
91459bd
fixes
Rich-Harris Sep 22, 2019
7a000c2
fix slots
Rich-Harris Sep 22, 2019
9ba199a
almost all SSR tests passing
Rich-Harris Sep 22, 2019
c4a43a3
...
Rich-Harris Sep 22, 2019
59035c8
all runtime tests passing
Rich-Harris Sep 22, 2019
2f7e67e
fix some CSS stuff
Rich-Harris Sep 22, 2019
b02028d
fix element_is
Rich-Harris Sep 22, 2019
09c0cef
fix a bunch more tests
Rich-Harris Sep 22, 2019
ff3501f
almost all tests passing...
Rich-Harris Sep 22, 2019
f3064f1
most sourcemap tests working
Rich-Harris Sep 22, 2019
37bac60
fix each block sourcemap hack
Rich-Harris Sep 22, 2019
12d5126
update tests. one still failing
Rich-Harris Sep 22, 2019
24be607
all tests passing
Rich-Harris Sep 22, 2019
855f9a6
Merge branch 'master' into code-red
Rich-Harris Sep 22, 2019
ab2c228
fix DebugTag etc
Rich-Harris Sep 23, 2019
1b85b36
Merge branch 'code-red' of github.com:sveltejs/svelte into code-red
Rich-Harris Sep 23, 2019
68b6d9e
SSR debug tag
Rich-Harris Sep 23, 2019
d7e6ffc
remove some unused code
Rich-Harris Sep 23, 2019
f2f7129
remove class_matches
Rich-Harris Sep 23, 2019
2ce451f
various
Rich-Harris Oct 9, 2019
42e1c8f
various
Rich-Harris Oct 9, 2019
da4d900
update code-red, update some tests etc
Rich-Harris Oct 10, 2019
8f2c657
get various js tests passing. not all the way there yet
Rich-Harris Oct 13, 2019
51f2b1c
more tests passing
Rich-Harris Oct 13, 2019
85afdef
dynamic imports, hoisting order
Rich-Harris Oct 13, 2019
96b9343
various
Rich-Harris Oct 13, 2019
bc066d3
ALL TESTS PASSING
Rich-Harris Oct 13, 2019
7efcca8
lint
Rich-Harris Oct 14, 2019
682707f
typescript stuff
Rich-Harris Oct 14, 2019
7cbb658
get lint check to pass
Rich-Harris Oct 14, 2019
0982fea
delete some junk
Rich-Harris Oct 14, 2019
76053cf
remove more junk
Rich-Harris Oct 14, 2019
cbc9779
remove obsolete estree-walker typing stuff
Rich-Harris Oct 14, 2019
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
59 changes: 55 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@
"acorn": "^7.0.0",
"agadoo": "^1.0.1",
"c8": "^5.0.1",
"code-red": "0.0.10",
"codecov": "^3.5.0",
"css-tree": "1.0.0-alpha22",
"eslint": "^6.3.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-svelte3": "^2.7.3",
"estree-walker": "^0.6.1",
"estree-walker": "^0.8.1",
"is-reference": "^1.1.3",
"jsdom": "^15.1.1",
"kleur": "^3.0.3",
Expand Down
5 changes: 3 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ const ts_plugin = is_publish

const external = id => id.startsWith('svelte/');

const inlined_estree = fs.readFileSync('./node_modules/estree-walker/index.d.ts', 'utf-8').replace(/declare.*\{((.|[\n\r])+)\}/m, '$1');
fs.writeFileSync(`./compiler.d.ts`, `export { compile, parse, preprocess, VERSION } from './types/compiler/index';\n${inlined_estree}`);
// const inlined_estree = fs.readFileSync('./node_modules/estree-walker/index.d.ts', 'utf-8').replace(/declare.*\{((.|[\n\r])+)\}/m, '$1');
Rich-Harris marked this conversation as resolved.
Show resolved Hide resolved
// fs.writeFileSync(`./compiler.d.ts`, `export { compile, parse, preprocess, VERSION } from './types/compiler/index';\n${inlined_estree}`);
fs.writeFileSync(`./compiler.d.ts`, `export { compile, parse, preprocess, VERSION } from './types/compiler/index';`);

export default [
/* runtime */
Expand Down
Loading