Add test-blocks into the basic playground (#4333)

* Use local node_modules files instead of unkpkg for advanced playground, get test blocks in the basic playground from npm

* Also move theme-modern

* Update package-lock
This commit is contained in:
Sam El-Husseini
2020-10-02 09:48:01 -07:00
committed by GitHub
parent 858a1f0999
commit 70f71af933
4 changed files with 195 additions and 4 deletions

View File

@@ -66,8 +66,8 @@
<script src="../../blocks/procedures.js"></script>
<script src="../themes/test_themes.js"></script>
<script src="./screenshot.js"></script>
<script src="https://unpkg.com/@blockly/dev-tools@2.0.0/dist/index.js"></script>
<script src="https://unpkg.com/@blockly/theme-modern/dist/index.js"></script>
<script src="../../node_modules/@blockly/dev-tools/dist/index.js"></script>
<script src="../../node_modules/@blockly/theme-modern/dist/index.js"></script>
<script>
// Custom requires for the playground.
@@ -113,6 +113,10 @@ function configurePlayground(playground) {
}
function initPlayground() {
if (typeof window.createPlayground === 'undefined') {
alert('You need to run \'npm install\' in order to use this playground.');
return;
}
var defaultOptions = {
comments: true,
collapse: true,