Alexis Svinartchouk
4f36b00ec3
Simplify webpack config
...
Change-type: patch
2019-12-03 13:45:11 +01:00
Alexis Svinartchouk
1098f8cb1e
Use the same entrypoint for etcher and the child writer
...
Changelog-entry: Use the same entrypoint for etcher and the child writer
Change-type: patch
2019-12-03 13:23:45 +01:00
Alexis Svinartchouk
1626c01ff4
Update electron to 6.0.10
...
Change-type: patch
Changelog-entry: Update electron to 6.0.10
2019-12-03 13:09:24 +01:00
Lorenzo Alberto Maria Ambrosi
8df5d972fc
Allow typescript files
...
Change-type: patch
Changelog-entry: Allow typescript files
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzoa@balena.io>
2019-08-05 16:31:50 +02:00
Lorenzo Alberto Maria Ambrosi
de5bee29ef
Revert "Include sass in webpack configs"
...
This reverts commit 156c25cea19bc4a382bb7ce672304546ce476d37.
Change-type: patch
Changelog-entry: Revert "Include sass in webpack configs"
2019-05-28 19:34:12 +02:00
Lorenzo Alberto Maria Ambrosi
156c25cea1
Include sass in webpack configs
...
Change-type: patch
Changelog-entry: Include sass in webpack configs
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzoa@balena.io>
2019-05-28 11:08:54 +02:00
Alexis Svinartchouk
2614f3261c
Target electron 3 runtime in babel options
...
This saves around 40KiB in generated/gui.js
Changelog-entry: Target electron 3 runtime in babel options
Change-type: patch
2019-02-28 15:04:00 +01:00
Alexis Svinartchouk
a78866069b
Update webpack to 4.27.0 and babel to 7.2.0
...
Change-type: patch
2019-01-24 13:21:27 +01:00
Alexis Svinartchouk
c21969ab4e
Remove etcher-sdk folder filtering from webpack config
...
This folder has been removed
Change-type: patch
2019-01-24 13:21:27 +01:00
Alexis Svinartchouk
e68dbcf4ee
Remove lib/sdk and its tests
2019-01-24 13:21:26 +01:00
Alexis Svinartchouk
6143023502
Integrate etcher-sdk
2019-01-24 13:21:21 +01:00
Lorenzo Alberto Maria Ambrosi
c0ec74bbb7
fix(webpack): Add etcher.js to webpack build
...
Change-type: patch
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzoa@resin.io>
2018-08-14 19:04:13 +02:00
Jonas Hermsmeier
b4f2bc1cb3
chore(webpack): Set NODE_ENV to production
...
This enables production builds for React
Change-Type: patch
2018-07-09 17:34:03 +02:00
Jonas Hermsmeier
4ddac50d9b
fix(webpack): Exclude all node externals / node_modules
...
This adds `webpack-node-externals` to exclude node_modules,
immensely reducing bundle size and avoiding complex exclusion rules
for the etcher-sdk
Change-Type: patch
2018-06-08 16:56:21 +02:00
Jonas Hermsmeier
1748bf2e2a
chore(package): Add npm run script for webpack
...
Make life simpler
Change-Type: patch
2018-05-22 18:44:59 +02:00
Benedict Aas
1b30dab8eb
fix(webpack): don't rewrite import paths inside node_modules ( #2195 )
...
We ensure that paths inside node_modules files are kept untouched, as
currently the RegExp can match 'shared' folders inside those and rewrite
paths, breaking them.
Change-Type: patch
2018-05-09 16:09:17 +01:00
Jonas Hermsmeier
bec61f4ce7
fix(webpack): Exclude package.json from UI bundle
...
Change-Type: patch
2018-04-10 16:47:55 +02:00
Jonas Hermsmeier
25b10490a1
chore(webpack): Enable realtime progress display
...
This enables realtime progress display for webpack, which can be
governed by setting WEBPACK_PROGRESS to various values.
See https://github.com/dominique-mueller/simple-progress-webpack-plugin
Change-Type: patch
2018-03-29 16:35:00 +02:00
Jonas Hermsmeier
81b5016168
fix(webpack): Fix not resolving .json
...
Change-Type: patch
2018-02-27 18:26:05 +01:00
Benedict Aas
f060dc896f
feat: resolve jsx files ( #2063 )
...
We resolve `.jsx` files such that they get handled by babel and bundled
with webpack.
Change-Type: patch
Changelog-Entry: Resolve JSX files
2018-02-20 13:03:47 +00:00
Jonas Hermsmeier
7c9f15d8a9
feat(sdk): Consolidate low-level components into SDK
...
Changes:
- Split out scanner into own file
- Move `lib/shared/sdk` -> `lib/sdk`
- Move `lib/image-stream` -> `lib/sdk/image-stream`
- Move `lib/writer` -> `lib/sdk/writer`
- Rename `sdk/standard` -> `sdk/blockdevice`
- Move adapters into `sdk/adapters` subdirectory
Change-Type: minor
Changelog-Entry: Consolidate low-level components into Etcher SDK
2018-02-16 17:15:28 +01:00
Juan Cruz Viotti
4fa0f990e5
feat(GUI): bundle the GUI code with Webpack ( #1943 )
...
This commit introduces a Webpack configuration file that bundles the GUI
code along with its dependencies (except the Etcher SDK and its own
dependencies), and uses Babel to add support for JSX (required by the
Rendition library).
The GUI code that goes into the bundle was moved to `lib/gui/app` so we
can easily ignore the whole subdirectory when creating production
distributable packages.
We now have a new make target called `webpack` that can be used to
create the GUI bundle. Such target will be called everytime a package is
generated.
Change-Type: patch
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
2018-02-15 17:39:15 +00:00