Skip to content

Commit

Permalink
Merge pull request #46 from 4zzz/logic-context-integration
Browse files Browse the repository at this point in the history
Logic context integration
  • Loading branch information
crnkjck authored Jan 23, 2024
2 parents 4d8653b + b1ba3b0 commit 77c3c62
Show file tree
Hide file tree
Showing 16 changed files with 1,006 additions and 481 deletions.
4 changes: 2 additions & 2 deletions buildModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ function cmd(command) {
recursive: true,
});
// compile elm app
await cmd("npx elm make src/MainEmbeddable.elm --optimize --output lib/dist/elm-editor.js");
await cmd(`npx elm make src/MainEmbeddable.elm ${process.argv[2] === 'dev' ? '' : '--optimize '}--output lib/dist/elm-editor.js`);
// compile react component
await cmd("npx babel --extensions '.jsx' src --out-dir lib/dist");
// isolate css files
await cmd("npx isolate-css-cli -p tableaueditor-Obry4K9MqH -c -o lib/dist/static/css -u 2 src/static");
await cmd("npx isolate-css-cli -r -p tableaueditor-Obry4K9MqH -c -o lib/dist/static/css -u 2 src/static");
// copy font files used by isolated css
await cmd("npx copyfiles -u 3 src/static/webfonts/* lib/dist/static/webfonts");
})()
1 change: 1 addition & 0 deletions elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"elm/html": "1.0.0",
"elm/json": "1.1.3",
"elm/parser": "1.1.0",
"elm-community/result-extra": "2.4.0",
"elm-community/undo-redo": "3.0.0",
"elm-explorations/markdown": "1.0.0",
"frandibar/elm-font-awesome-5": "1.0.0"
Expand Down
Loading

0 comments on commit 77c3c62

Please sign in to comment.