From 58146bd04203cd698ce2f16cd185fed49a02bd7c Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 12 Sep 2022 09:26:57 +0300 Subject: [PATCH] Separate Java and frontend tools --- .gitignore | 2 +- README.md | 9 +++++++++ convert.ts => frontend/convert.ts | 0 {expected => frontend/expected}/basic-bindings.js | 0 {expected => frontend/expected}/computed-property.js | 0 {expected => frontend/expected}/disabled-using-method.js | 0 {expected => frontend/expected}/dom-if.js | 0 {expected => frontend/expected}/dom-repeat.js | 0 {expected => frontend/expected}/event-handlers.js | 0 {expected => frontend/expected}/grid-columns.js | 0 {expected => frontend/expected}/inline-styles.js | 0 {expected => frontend/expected}/light-dom.js | 0 {expected => frontend/expected}/nested-dom-repeat.js | 0 .../expected}/order-card-from-bakery.js | 0 {expected => frontend/expected}/ready-callback.js | 0 {expected => frontend/expected}/simple-observer.js | 0 {expected => frontend/expected}/sub-properties.js | 0 .../expected}/this-dollar-mapped-element-ids.js | 0 {expected => frontend/expected}/two-way-binding.js | 0 {in => frontend/in}/basic-bindings.js | 0 {in => frontend/in}/computed-property.js | 0 {in => frontend/in}/disabled-using-method.js | 0 {in => frontend/in}/dom-if.js | 0 {in => frontend/in}/dom-repeat.js | 0 {in => frontend/in}/event-handlers.js | 0 {in => frontend/in}/grid-columns.js | 0 {in => frontend/in}/inline-styles.js | 0 {in => frontend/in}/light-dom.js | 0 {in => frontend/in}/nested-dom-repeat.js | 0 {in => frontend/in}/order-card-from-bakery.js | 0 {in => frontend/in}/ready-callback.js | 0 {in => frontend/in}/simple-observer.js | 0 {in => frontend/in}/sub-properties.js | 0 {in => frontend/in}/this-dollar-mapped-element-ids.js | 0 {in => frontend/in}/two-way-binding.js | 0 package-lock.json => frontend/package-lock.json | 0 package.json => frontend/package.json | 0 .../patches}/node-html-parser+6.0.0.patch | 0 {scripts => frontend/scripts}/test | 0 {scripts => frontend/scripts}/testAll.sh | 0 convert-java.js => java/convert-java.js | 0 41 files changed, 10 insertions(+), 1 deletion(-) rename convert.ts => frontend/convert.ts (100%) rename {expected => frontend/expected}/basic-bindings.js (100%) rename {expected => frontend/expected}/computed-property.js (100%) rename {expected => frontend/expected}/disabled-using-method.js (100%) rename {expected => frontend/expected}/dom-if.js (100%) rename {expected => frontend/expected}/dom-repeat.js (100%) rename {expected => frontend/expected}/event-handlers.js (100%) rename {expected => frontend/expected}/grid-columns.js (100%) rename {expected => frontend/expected}/inline-styles.js (100%) rename {expected => frontend/expected}/light-dom.js (100%) rename {expected => frontend/expected}/nested-dom-repeat.js (100%) rename {expected => frontend/expected}/order-card-from-bakery.js (100%) rename {expected => frontend/expected}/ready-callback.js (100%) rename {expected => frontend/expected}/simple-observer.js (100%) rename {expected => frontend/expected}/sub-properties.js (100%) rename {expected => frontend/expected}/this-dollar-mapped-element-ids.js (100%) rename {expected => frontend/expected}/two-way-binding.js (100%) rename {in => frontend/in}/basic-bindings.js (100%) rename {in => frontend/in}/computed-property.js (100%) rename {in => frontend/in}/disabled-using-method.js (100%) rename {in => frontend/in}/dom-if.js (100%) rename {in => frontend/in}/dom-repeat.js (100%) rename {in => frontend/in}/event-handlers.js (100%) rename {in => frontend/in}/grid-columns.js (100%) rename {in => frontend/in}/inline-styles.js (100%) rename {in => frontend/in}/light-dom.js (100%) rename {in => frontend/in}/nested-dom-repeat.js (100%) rename {in => frontend/in}/order-card-from-bakery.js (100%) rename {in => frontend/in}/ready-callback.js (100%) rename {in => frontend/in}/simple-observer.js (100%) rename {in => frontend/in}/sub-properties.js (100%) rename {in => frontend/in}/this-dollar-mapped-element-ids.js (100%) rename {in => frontend/in}/two-way-binding.js (100%) rename package-lock.json => frontend/package-lock.json (100%) rename package.json => frontend/package.json (100%) rename {patches => frontend/patches}/node-html-parser+6.0.0.patch (100%) rename {scripts => frontend/scripts}/test (100%) rename {scripts => frontend/scripts}/testAll.sh (100%) rename convert-java.js => java/convert-java.js (100%) diff --git a/.gitignore b/.gitignore index 7d12220..9e5aad1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ .DS_Store node_modules/ -in/*.out.js +frontend/in/*.out.js convert.js *~ diff --git a/README.md b/README.md index 2b1818d..57c78d8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,11 @@ +== Rerwiting frontend files + +The frontend tool is in the `frontend folder` + To test this tool, do the setup dance once ``` +cd frontend npm install node_modules/.bin/tsc convert.ts ``` @@ -12,3 +17,7 @@ node convert.js in/grid-columns.js ``` This will convert `in/grid-columns.js` into a Lit element and place the output in `in/grid-columns.out.js` + +== The Java version + +Coming soon diff --git a/convert.ts b/frontend/convert.ts similarity index 100% rename from convert.ts rename to frontend/convert.ts diff --git a/expected/basic-bindings.js b/frontend/expected/basic-bindings.js similarity index 100% rename from expected/basic-bindings.js rename to frontend/expected/basic-bindings.js diff --git a/expected/computed-property.js b/frontend/expected/computed-property.js similarity index 100% rename from expected/computed-property.js rename to frontend/expected/computed-property.js diff --git a/expected/disabled-using-method.js b/frontend/expected/disabled-using-method.js similarity index 100% rename from expected/disabled-using-method.js rename to frontend/expected/disabled-using-method.js diff --git a/expected/dom-if.js b/frontend/expected/dom-if.js similarity index 100% rename from expected/dom-if.js rename to frontend/expected/dom-if.js diff --git a/expected/dom-repeat.js b/frontend/expected/dom-repeat.js similarity index 100% rename from expected/dom-repeat.js rename to frontend/expected/dom-repeat.js diff --git a/expected/event-handlers.js b/frontend/expected/event-handlers.js similarity index 100% rename from expected/event-handlers.js rename to frontend/expected/event-handlers.js diff --git a/expected/grid-columns.js b/frontend/expected/grid-columns.js similarity index 100% rename from expected/grid-columns.js rename to frontend/expected/grid-columns.js diff --git a/expected/inline-styles.js b/frontend/expected/inline-styles.js similarity index 100% rename from expected/inline-styles.js rename to frontend/expected/inline-styles.js diff --git a/expected/light-dom.js b/frontend/expected/light-dom.js similarity index 100% rename from expected/light-dom.js rename to frontend/expected/light-dom.js diff --git a/expected/nested-dom-repeat.js b/frontend/expected/nested-dom-repeat.js similarity index 100% rename from expected/nested-dom-repeat.js rename to frontend/expected/nested-dom-repeat.js diff --git a/expected/order-card-from-bakery.js b/frontend/expected/order-card-from-bakery.js similarity index 100% rename from expected/order-card-from-bakery.js rename to frontend/expected/order-card-from-bakery.js diff --git a/expected/ready-callback.js b/frontend/expected/ready-callback.js similarity index 100% rename from expected/ready-callback.js rename to frontend/expected/ready-callback.js diff --git a/expected/simple-observer.js b/frontend/expected/simple-observer.js similarity index 100% rename from expected/simple-observer.js rename to frontend/expected/simple-observer.js diff --git a/expected/sub-properties.js b/frontend/expected/sub-properties.js similarity index 100% rename from expected/sub-properties.js rename to frontend/expected/sub-properties.js diff --git a/expected/this-dollar-mapped-element-ids.js b/frontend/expected/this-dollar-mapped-element-ids.js similarity index 100% rename from expected/this-dollar-mapped-element-ids.js rename to frontend/expected/this-dollar-mapped-element-ids.js diff --git a/expected/two-way-binding.js b/frontend/expected/two-way-binding.js similarity index 100% rename from expected/two-way-binding.js rename to frontend/expected/two-way-binding.js diff --git a/in/basic-bindings.js b/frontend/in/basic-bindings.js similarity index 100% rename from in/basic-bindings.js rename to frontend/in/basic-bindings.js diff --git a/in/computed-property.js b/frontend/in/computed-property.js similarity index 100% rename from in/computed-property.js rename to frontend/in/computed-property.js diff --git a/in/disabled-using-method.js b/frontend/in/disabled-using-method.js similarity index 100% rename from in/disabled-using-method.js rename to frontend/in/disabled-using-method.js diff --git a/in/dom-if.js b/frontend/in/dom-if.js similarity index 100% rename from in/dom-if.js rename to frontend/in/dom-if.js diff --git a/in/dom-repeat.js b/frontend/in/dom-repeat.js similarity index 100% rename from in/dom-repeat.js rename to frontend/in/dom-repeat.js diff --git a/in/event-handlers.js b/frontend/in/event-handlers.js similarity index 100% rename from in/event-handlers.js rename to frontend/in/event-handlers.js diff --git a/in/grid-columns.js b/frontend/in/grid-columns.js similarity index 100% rename from in/grid-columns.js rename to frontend/in/grid-columns.js diff --git a/in/inline-styles.js b/frontend/in/inline-styles.js similarity index 100% rename from in/inline-styles.js rename to frontend/in/inline-styles.js diff --git a/in/light-dom.js b/frontend/in/light-dom.js similarity index 100% rename from in/light-dom.js rename to frontend/in/light-dom.js diff --git a/in/nested-dom-repeat.js b/frontend/in/nested-dom-repeat.js similarity index 100% rename from in/nested-dom-repeat.js rename to frontend/in/nested-dom-repeat.js diff --git a/in/order-card-from-bakery.js b/frontend/in/order-card-from-bakery.js similarity index 100% rename from in/order-card-from-bakery.js rename to frontend/in/order-card-from-bakery.js diff --git a/in/ready-callback.js b/frontend/in/ready-callback.js similarity index 100% rename from in/ready-callback.js rename to frontend/in/ready-callback.js diff --git a/in/simple-observer.js b/frontend/in/simple-observer.js similarity index 100% rename from in/simple-observer.js rename to frontend/in/simple-observer.js diff --git a/in/sub-properties.js b/frontend/in/sub-properties.js similarity index 100% rename from in/sub-properties.js rename to frontend/in/sub-properties.js diff --git a/in/this-dollar-mapped-element-ids.js b/frontend/in/this-dollar-mapped-element-ids.js similarity index 100% rename from in/this-dollar-mapped-element-ids.js rename to frontend/in/this-dollar-mapped-element-ids.js diff --git a/in/two-way-binding.js b/frontend/in/two-way-binding.js similarity index 100% rename from in/two-way-binding.js rename to frontend/in/two-way-binding.js diff --git a/package-lock.json b/frontend/package-lock.json similarity index 100% rename from package-lock.json rename to frontend/package-lock.json diff --git a/package.json b/frontend/package.json similarity index 100% rename from package.json rename to frontend/package.json diff --git a/patches/node-html-parser+6.0.0.patch b/frontend/patches/node-html-parser+6.0.0.patch similarity index 100% rename from patches/node-html-parser+6.0.0.patch rename to frontend/patches/node-html-parser+6.0.0.patch diff --git a/scripts/test b/frontend/scripts/test similarity index 100% rename from scripts/test rename to frontend/scripts/test diff --git a/scripts/testAll.sh b/frontend/scripts/testAll.sh similarity index 100% rename from scripts/testAll.sh rename to frontend/scripts/testAll.sh diff --git a/convert-java.js b/java/convert-java.js similarity index 100% rename from convert-java.js rename to java/convert-java.js