Commit Graph
89 Commits
Author SHA1 Message Date
Andy O'Neill eb120b1c30 Merge branch 'develop' into beta 2023-06-20 13:09:32 -04:00
Christopher Willis-Ford 6b13316778 style: make webpack.config.js compliant with our ES6 lint rules 2023-06-05 07:49:11 -07:00
Christopher Willis-Ford 7a94d619a4 feat: actually update micro:bit, avoid 'firmware' term 2023-06-05 07:49:11 -07:00
Andy O'Neill cfab4a2c9e feat: prepare for color theme beta release
BREAKING CHANGE: use purple as accent color across the editor
2023-05-09 13:04:47 -04:00
Andy O'Neill 40e2080580 Merge branch 'develop' into feature/color-contrast 2023-05-08 15:50:26 -04:00
Andy O'Neill f8acdaea4e chore: update how theme images are stored and served 2023-03-27 11:54:55 -04:00
Andy O'Neill 0dca3bfe28 feat: use high contrast icons 2023-03-23 10:22:43 -04:00
picklesrus c1064d5381 feat: bring back cat blocks 2023-03-17 10:42:23 -04:00
Christopher Willis-Ford 79a25ff5d3 fix: remove Sentry and add ErrorBoundary tests 2023-01-27 08:34:50 -08:00
BryceLTaylor 5fa1b9cc7c update copy-webpack-plugin to 6.4.1
This is as far as you can go before updating to webpack 5
Requires a change to how the plugin is called.
2022-03-02 13:45:52 -05:00
Paul Kaplan 506d82ffe5 Correctly specify react and react-dom as externals
Previously, the syntax was incorrect and was not doing anything.
Additionally, it was attempting to set them as externals in the playground
builds, which is incorrect, they need to be included in the playground build.
2021-02-16 11:37:24 -05:00
Christopher Willis-Ford 0647270674 disable webpack progress plugin on CI 2020-07-02 11:59:11 -07:00
Paul Kaplan 6eaf6312b9 Include library JSON files in package distribution
Files like src/lib/libraries/sprites.json were being used by
packages like scratch-desktop in order to fetch all the library
assets for offline access. We stopped publishing src in #5263 to
stop bloating the dist with copies of src files. Explicitly
exporting the files that are needed by other repos is a better
long-term plan.

The files are now published to dist/libraries/*.json. Once this is
merged those repos that use the src/ path need to change it to e.g.
`require('scratch-gui/dist/libraries/backdrops.json')`
2019-11-01 10:54:52 -04:00
Ray Schamp 413df6ed65 Move browsers options to .browserslistrc
Apparently this is the recommendation for loaders that look at the `browsers` option.
2019-07-11 14:00:24 -04:00
Eric Rosenbaum 37826cb901 add vernier module to webpack config 2019-03-25 17:18:37 -04:00
chrisgarrity e2a2dcf0fd Set static asset path (publicPath) with environment var
Allows consumers of gui (desktop, android, etc) to rebuild gui with a relative path for static assets. Default is an absolute path as that is what is required for www.
2019-03-13 10:55:11 +01:00
Karishma Chadha c29e943c6b Run pify package through babel loader. 2019-03-06 11:25:43 -05:00
chrisgarrity 26de4b2e51 refactor image files
* thumbnails folder: thumbnail images for tutorials (multistep decks and videos). Images should not need translations (avoid text that would need translation in the image)
* steps folder: gif images associated with tutorial steps. Images can be translated. English (default) images have the extension `.en.gif`, other language images should replace the `.en` with the corresponding locale.
* renamed some of the steps files to be more consistent and a bit less redundant
* removed a couple of files that were no longer referenced
* revised webpack config to allow localized step files to be loaded from `/static` on www
2019-02-28 12:06:49 +01:00
Paul Kaplan d4e1cfc48a Revert "Merge pull request #4355 from paulkaplan/fix-loading-vernier"
This reverts commit 68af0af291, reversing
changes made to 3fe7502048.
2019-01-15 14:56:22 -05:00
Paul Kaplan dc9f24cc11 Revert "Fix vernier extension loader"
This reverts commit 512915b7c4.
2019-01-15 14:56:05 -05:00
Paul Kaplan 512915b7c4 Fix vernier extension loader 2019-01-15 14:06:07 -05:00
Paul Kaplan 8e69310c9a Build vernier module using babel preset to make sure it works for www 2019-01-15 13:58:09 -05:00
Ray Schamp a40401b882 Update babel plugins
Also include babel-core bridge for Jest itself, which depends on Babel 6.
2018-10-17 14:19:09 +01:00
Ray Schamp 31a735d69d Lint 2018-10-17 14:18:21 +01:00
Ray Schamp b0054c3d96 Update babel-core to @babel/core
Required by update to babel-loader

Also requires updating babel-preset-react and babel-preset-env to @babel/preset-react and @babel/preset-env
2018-10-17 14:18:21 +01:00
Ben Wheeler 50ea4eb36e added build mode 'dist' to npm build options 2018-08-20 15:04:56 -04:00
Ray Schamp 11e99b53b8 Revert "build dist, even when run without NODE_ENV=production" 2018-08-09 13:36:22 -04:00
Ben Wheeler 21c1632c9a build dist, even when run without NODE_ENV=production 2018-08-07 11:17:58 -04:00
Ray Schamp 3470969045 Don't resolve symlinks, so npm linked environments work 2018-05-29 16:47:40 -04:00
Michael "Z" Goddard c6e0167372 chore(webpack): configure babel loader to build scratch deps
Configure loaders so they operate on individual modules in scratch-*
dependencies.
2018-05-29 16:43:25 -04:00
chrisgarrity a3392bcb8d Export new GUI
scratch-gui exports `index.js` instead of just GUI container.
2018-05-21 16:54:19 -04:00
Michael "Z" Goddard 94262f556b Update to webpack 4 2018-05-07 14:46:55 -04:00
Paul Kaplan 559718a185 Make sure no sentry config for local development 2018-05-03 11:31:47 -04:00
Paul Kaplan fe13e3e630 Move analytics things to environment vars 2018-05-02 16:02:59 -04:00
Paul Kaplan 76bfe175aa Framework and demo content for how-tos inside the editor (#1867)
* WIP tips

* WIP first card stack

* WIP use tips reducer to show things to try

* single card deck similar to mask sequence

* collapse option

* Add zoom card

* WIP tips

* Reorganized to redux

* Add zooming to the gifs

* Blue cards + navigation

* Add tips to new nav bar

* Remove blue

* Update design with icons

* deck updates wip

* Updated card decks

* Add videos to libraries

* Update initial card and clicker preview

* Add backdrop to initial card step.

* WIP use vimeo player instead

* New simple spin deck

* Spin around and say hello decks

* Update button and sub-card styles

* Fix "tips" button in menu bar

* Use move cursor

* Fix cursor

* Use same image for deck preview and library

* Fix cursor again

* Update clicker game deck

* Add videos as single-step decks

* Change tips in menu bar to ? icon

* Change “tips” to “how-tos” in library

* Add help icon to cards

* Update deck library images

* Add drag cover for youtube video to prevent catching mouseup

* add a step to spin deck for clicking control

* Blue bar style updates

* Add step pips

* Update clicker game name to run away

* Fix image padding

* Add change color step to spin deck

* Add start sound step to run away deck

* Update say deck to start with adding a sprite

* Remove package lock

* Remove zooming functionality

* Remove unnecassary prototype changes

* Split up rendering of cards into smaller parts

* Use FormattedMessage for all strings

* Automatic lint fixes

* Almost finished with lint errors!

* Fix more lint errors

* Clean up CSS

* Fix webpack config
2018-04-27 11:11:42 -04:00
chrisgarrity a26d975577 Update travis to publish dist and build
build in production mode on travis
2018-04-24 13:06:52 -04:00
chrisgarrity 8fc7d9462a Use absolute public path for static assets
Use absolute path when building library (production) so assets can be copied to /static in GUI consumer (like scratch-www)
2018-04-19 14:38:14 -04:00
chrisgarrity ca898cedcb Add documentation and fix lint 2018-04-19 14:38:13 -04:00
chrisgarrity c1d53b3599 Update build and move project-loader back to lib
- export image and sounds in dist/static/assets
- rename main export (`scratch-gui.js`, not `index.js`)
- move project-loader-hoc back to lib (VM doesn’t load properly without it)
2018-04-19 14:38:13 -04:00
chrisgarrity bc1e3ecbe0 reconfigure webpack
export Library if `NODE_ENV===‘production’`, otherwise export playground and examples.
2018-04-19 14:38:12 -04:00
chrisgarrity b38807289a Export GUI as library 2018-04-19 14:38:11 -04:00
chrisgarrity fe1cb9585b Pass intl as prop to GUI
Allow intl to be passed in to GUI as a prop (rather than having to be already in the store)
2018-04-19 14:38:10 -04:00
Paul Kaplan bc8b4c144b Remove extension assets copying 2018-02-22 15:22:27 -05:00
Ray Schamp 2eb5a68797 Add favicon 2017-12-01 09:22:55 -05:00
Eric Rosenbaum d9c28d12d3 Copy extension assets from VM 2017-11-14 13:52:18 -05:00
Paul Kaplan 058476cb29 Add compatibility testing example page 2017-11-03 16:48:08 -04:00
Paul Kaplan 3cd69b47c2 Merge branch 'develop' into feature/load-extension-image 2017-11-03 09:57:37 -04:00
Ray Schamp 0cb28ea9be Cache the default project json and its assets 2017-11-03 09:28:56 -04:00
Ray Schamp ceb39f366c Use file-loader for svg's, since it's more generic 2017-11-03 09:28:56 -04:00
Eric Rosenbaum 02d35e12cd Use file-loader for svg and png
Instead of using svg-url-loader only
2017-11-02 09:54:17 -04:00