Commit graph

420 commits

Author SHA1 Message Date
Christopher Willis-Ford
faf75a8cfc Fix AppX app identity 2018-12-13 17:39:52 -08:00
Christopher Willis-Ford
7b55741ead Add AppX icons 2018-12-13 17:36:49 -08:00
Christopher Willis-Ford
6537e1f931 Configure store and non-store builds for Mac & Win 2018-12-13 12:01:08 -08:00
Christopher Willis-Ford
356b4475b6 Add icon 2018-12-13 12:01:08 -08:00
Christopher Willis-Ford
2068dc50bb Update package name and version 2018-12-13 12:01:08 -08:00
Chris Willis-Ford
505d7cc7e7
Merge pull request #11 from cwillisf/fix-quit-confirmation
Fix quit confirmation
2018-12-13 10:38:21 -08:00
Christopher Willis-Ford
64a06d5b8f Obey scratch-gui's onbeforeunload result
The `scratch-gui` project saver uses `onbeforeunload` to request
confirmation before navigating away from an unsaved project.
Unfortunately Electron suppresses the confirmation dialog that browsers
would normally display. Instead, Electron offers a `will-prevent-unload`
event in the main process: this event fires when `onbeforeunload`
requests a confirmation dialog.

This change adds a handler for `will-prevent-unload` which displays a
quit confirmation dialog so that the overall behavior is similar to what
happens in a regular browser.
2018-12-12 17:10:43 -08:00
Christopher Willis-Ford
fcf629ba1c Let scratch-gui handle 'onbeforeunload' 2018-12-12 17:07:04 -08:00
Christopher Willis-Ford
c9bcd14015 Add source-map-loader 2018-12-12 09:05:19 -08:00
Christopher Willis-Ford
69f48aefb8 npm upgrade 2018-12-04 23:00:21 -08:00
Christopher Willis-Ford
d2d6704360 Let npm reformat package-lock.json
Recent versions of `npm` record sub-dependency version ranges
differently, though the actual modules installed have not changed. I'm
separating this into its own commit so it doesn't make other changes
harder to see.
2018-12-03 15:39:42 -08:00
Christopher Willis-Ford
046c6188f9 Don't import scratch-gui internals 2018-11-08 18:48:44 -08:00
Christopher Willis-Ford
4767897f4b only import electron-devtools-installer in dev mode 2018-10-31 15:57:04 -07:00
Christopher Willis-Ford
eff882c928 use rimraf and mkdirp to ensure clean builds 2018-10-31 15:40:27 -07:00
Christopher Willis-Ford
f761193c5f set productName to "Scratch Desktop 3.0" 2018-10-31 15:20:21 -07:00
Christopher Willis-Ford
4771e849ea add repository field to package.json 2018-10-31 15:02:01 -07:00
Christopher Willis-Ford
d1acf29f51 Merge branch 'electron-webpack' into develop 2018-10-31 14:52:34 -07:00
Christopher Willis-Ford
cb0852101e Load default project on startup 2018-10-24 15:00:03 -07:00
Christopher Willis-Ford
78e6831cbb Add ElectronStorageHelper to load bundled assets 2018-10-24 09:47:59 -07:00
Christopher Willis-Ford
071ba28fc8 Fix static assets path 2018-10-24 09:47:59 -07:00
Christopher Willis-Ford
914f883c65 Eliminate redundant index.js->index.jsx shim 2018-10-24 09:47:59 -07:00
Christopher Willis-Ford
53e8723086 Fix build with/without npm ln, match scratch-gui
Match the versions of Webpack, Babel, and related plugins as used in
scratch-gui. That plus a few other tweaks means that this repository
builds the same with or without `npm ln scratch-gui`, and also means
that all syntax used in scratch-gui should build the same here.
2018-10-24 09:47:52 -07:00
Christopher Willis-Ford
42cba6414e Add media library assets, fetch script 2018-10-19 15:19:41 -07:00
Christopher Willis-Ford
146a6f0de0 Override settings for minify and Babel 2018-10-18 19:03:56 -07:00
Christopher Willis-Ford
25c0954b94 Update electron-webpack and webpack
The old version of webpack takes a long time and then runs out of memory
when I add media library assets in `src/static`. The new version handles
it OK.
2018-10-17 17:22:48 -07:00
Christopher Willis-Ford
99b172d893 Add React dev tools 2018-10-13 01:26:58 -07:00
Christopher Willis-Ford
1de7228a8c Tell Babel to target Electron 3.0.2; enable chunk splitting 2018-10-13 01:09:45 -07:00
Christopher Willis-Ford
751406722d eslint: Switch src/ env from shared to node 2018-10-12 23:03:16 -07:00
Christopher Willis-Ford
606f28ae43 Upgrade to electron@^3.0.2 2018-09-27 14:43:04 -07:00
Christopher Willis-Ford
97db496efc Fix lint rules for src/renderer/ 2018-09-27 14:35:04 -07:00
Christopher Willis-Ford
4a8bac49dd Copy static assets from GUI, load GUI from dist/ 2018-09-27 14:35:02 -07:00
Christopher Willis-Ford
c6a229f57f Webpack config fixups including react-intl 2018-09-27 14:32:25 -07:00
Christopher Willis-Ford
3785f7070e Get scratch-gui working, kinda, sorta...
CSS isn't loaded and it takes a LONG time to compile, but it does load
the GUI. It also requires using `npm ln` for `scratch-gui`.
2018-09-27 14:32:22 -07:00
Christopher Willis-Ford
6adb950ef6 Add React, Redux, and related deps 2018-09-27 14:29:56 -07:00
Christopher Willis-Ford
13391df515 Use eslint-config-scratch 2018-09-27 14:28:23 -07:00
Christopher Willis-Ford
6145b0b9a1 Convert to use npm instead of yarn, rename app 2018-09-27 14:26:51 -07:00
Christopher Willis-Ford
0c8a186455 Add electron and stub start script 2018-09-06 11:45:37 -07:00
Christopher Willis-Ford
876f185f53 Initial commit 2018-09-06 11:20:27 -07:00
develar
09ae10e82e
chore: update deps 2018-08-21 09:21:54 +02:00
develar
3f9dee45ab
chore: update deps 2018-05-08 09:05:40 +02:00
develar
135f9f34b4
chore: update deps
Close #29
2018-04-03 08:31:29 +02:00
develar
f5fdcfb442
chore: update deps 2018-03-18 17:41:03 +01:00
develar
118f6a1866
chore: update electron-webpack to 1.13.0 2018-02-20 08:50:38 +01:00
suvichak
a6ef4b77fa fix: pin webpack-sources version until upstream bug not fixed
"original.line and original.column are not numbers" when using NPM #14
2018-02-19 23:44:26 -08:00
Sooraj V Nair
0cf4baedc7 chore: updated to electron v1.8.2 (#24) 2018-02-19 22:42:35 -08:00
Vladimir Krivosheev
539f24655d
chore: update electron to 1.7.12 2018-02-06 15:25:55 +01:00
Ryan
71215e3311 fix: imports for url & path which were breaking the app (#21) 2018-02-06 06:24:35 -08:00
hacker112
427ff959db fix: Make sure that index.html can be found in paths with hashtag (#20) 2018-02-05 02:13:41 -08:00
Vladimir Krivosheev
0f0ec413af chore: update deps 2018-01-30 03:35:45 -08:00
Zachary Snow
0d76369d93 chore: Updated package.json devDependencies to newest versions. (#17) 2018-01-30 12:29:14 +01:00