Commit Graph
17 Commits
Author SHA1 Message Date
David Lechner 9d995ceeef craco: add upper-case license 2022-03-25 15:54:04 -05:00
David Lechner 9f254f035f i18n: use babel-loader plugin 2022-03-25 15:54:04 -05:00
David Lechner e4b2f735cf craco/LicensePlugin: add @pybricks/ide-docs
This isn't referenced in code, so it isn't picked up automatically.
2022-03-15 20:27:11 -05:00
David Lechner 93111b6af4 explorer: implement import action 2022-03-11 15:41:16 -06:00
David Lechner 32d198f8e7 craco: drop esnext rules
Since 08e59d2, shopify no longer published .esnext files for webpack
so we can drop these rules. However, when we do this, there is still
another .mjs issue that needs to be worked around.
2022-03-07 10:42:18 -06:00
David Lechner 5f3271aaea craco: fix env substitution for undefined variable
When an environment variable is not defined, `process.env` returns
`undefined` which was used literally as text. Fix by using an empty
string if `process.env` returns something falsy.

Fixes: https://github.com/pybricks/support/issues/560
2021-12-27 12:38:51 -06:00
David Lechner 61a24f1d99 fix docs after breaking package change 2021-11-19 20:22:30 -06:00
David Lechner d95c550248 editor: change from ace to monaco
This replaces the ace editor with the monaco editor. It fixes quite a
few small paper-cut bugs and should be easier to add code completion
to in the future.

Many of the snippets are omitted but can be added back later if needed.
Otherwise, we have tried to preserve the existing look and feel as much
as possible.
2021-07-02 20:59:09 -05:00
David Lechner 944770fa98 public/manifest: use variables for program name
This requires a craco hack due to https://github.com/facebook/create-react-app/issues/7953
2021-06-23 14:28:59 -05:00
David Lechner afc8e7c628 include offline copy of docs
This grabs the docs via the @pybricks/ide-docs package and copies them
to the build directory with copy-webpack-plugin.

The service worker automatically picks up these files for precache
since they go through webpack.
2021-01-25 21:05:14 -06:00
David Lechner 9551bdc7f0 Pybricks firmware v3.0.0b1 2021-01-22 10:35:11 -06:00
David Lechner 904de515c0 fix missing newlines in compiler error 2021-01-21 12:37:29 -06:00
David Lechner deac69fdab switch to license-webpack-plugin
This package is a bit more versatile. For example, it lets us include
the app's package too.

webpack-license-plugin had a bug that made it unusable anyway.
2021-01-17 13:11:47 -06:00
David Lechner 1626533cca add license dialog 2021-01-17 10:39:38 -06:00
David Lechner 69e52be259 remove wasm file extension rename workaround
This modifies the webpack config instead of renaming the .wasm file
to workaround default webpack behavior regarding import .wasm files.
2021-01-11 16:47:49 -06:00
David Lechner 3943f149a5 update @shopify/react-i18n
Requires special handling since they are using .esnext file extension
for some reason.
2021-01-08 20:39:15 -06:00
David Lechner 2342023f71 use craco
This lets us modify some config without ejecting create-react-app.

This allows us to target esnext which works around a number of issues
with multi-targeted packages like blueprintsjs and react-i18n.
2021-01-08 18:05:51 -06:00