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

feat: generate TS from HBS templates #6558

Merged
merged 29 commits into from
May 4, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
695fa5f
feat: generate TS from HBS templates
pskelin Feb 14, 2023
4717885
Merge branch 'main' into hbs2ts
pskelin Feb 21, 2023
967af26
chore: cleanup
pskelin Feb 21, 2023
6547c0d
fix: input events and typing
pskelin Feb 22, 2023
22e1c08
fix: tree test failing due to ListItem template
pskelin Feb 22, 2023
d741a6f
chore: cleanup
pskelin Feb 22, 2023
406c81a
fix: base package template build
pskelin Feb 23, 2023
d4c5b9b
Merge branch 'main' into hbs2ts
pskelin Feb 23, 2023
85d89dc
chore: test popover template
pskelin Feb 23, 2023
d8d4d09
Merge branch 'main' into hbs2ts
ilhan007 Feb 28, 2023
22a4b68
chore: remove templ and staticAreaTemp decorators
ilhan007 Feb 28, 2023
8c2fec8
chore: add back component fixes
ilhan007 Feb 28, 2023
a6a095b
chore: change `nnerFocusIn` to be class method
ilhan007 Feb 28, 2023
a24720c
chore: add some JSDoc
ilhan007 Feb 28, 2023
e77bf69
Merge branch 'main' into hbs2ts
pskelin Mar 9, 2023
40f5bb1
build: enable eslint support for VS Code
pskelin Mar 22, 2023
731aac2
Merge branch 'main' into hbs2ts
pskelin Mar 24, 2023
d576a38
chore: cleanup
pskelin Mar 24, 2023
ddf24a3
chore: cleanup
pskelin Mar 27, 2023
81c1147
chore: add TS/JS switch
pskelin Apr 3, 2023
6dbbcaa
Merge branch 'main' into hbs2ts
pskelin Apr 11, 2023
f692562
chore: add types detection
pskelin Apr 11, 2023
dfce1d2
Merge branch 'main' into hbs2ts
pskelin Apr 20, 2023
1137bf5
chore: type
pskelin Apr 21, 2023
dfea69c
chore: turn on checking and fix errors
pskelin May 3, 2023
6871714
Merge branch 'main' into hbs2ts
pskelin May 3, 2023
a13235d
chore: fix test
pskelin May 3, 2023
97be803
chore: remove global module definitions of .lit.js
pskelin May 4, 2023
cb15e8d
Merge branch 'main' into hbs2ts
pskelin May 4, 2023
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
Prev Previous commit
Next Next commit
chore: cleanup
  • Loading branch information
pskelin committed Mar 24, 2023
commit d576a382b038f1c173b7fcbb43812b2b2d5a45af
33 changes: 0 additions & 33 deletions packages/main/test/pages/FocusVisible.html

This file was deleted.

1 change: 0 additions & 1 deletion packages/tools/lib/hbs2lit/src/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const hbs2lit = async (file, componentName) => {
let block = lv.blocks[key];

if (block.match(/scopeTag/)) {
console.log({block})
// const matches = block.match(/^(.*?)( => )(.*?);$/);
const matches = block.match(/^(function .*? \{ return )(.*?);\}$/);
const scopedCode = matches[2];
Expand Down
1 change: 0 additions & 1 deletion packages/tools/lib/hbs2lit/src/litVisitor2.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ function visitEachBlock(block) {
this.paths.push(normalizePath.call(this, block.params[0].original));
this.blockLevel++;

console.log("blockParameters", this.blockParameters)
if (this.blockParameters.indexOf("item: any") === -1) {
bParamAdded = true;
this.blockParameters.unshift("index: number");
Expand Down