diff --git a/packages/blockly/package.json b/packages/blockly/package.json index 98ebc5a1c25..62883cd8669 100644 --- a/packages/blockly/package.json +++ b/packages/blockly/package.json @@ -66,8 +66,7 @@ "minify": "gulp minify", "package": "gulp pack", "prepareDemos": "gulp prepareDemos", - "start": "npm run build && concurrently -n tsc,server \"tsc --watch --preserveWatchOutput --outDir \"build/src\" --declarationDir \"build/declarations\"\" \"http-server ./ -s -o /tests/playground.html -c-1\"", - "start:advanced": "npm run package && npx nx run @blockly/dev-tools:build && concurrently -n server,watch \"npx nx run @blockly/dev-tools:start\" \"npx nx watch --projects=@blockly/dev-tools --includeDependencies -- npm run build\"", + "start": "npm run package && npx nx run @blockly/dev-tools:build && concurrently -n watch,devtools-server,core-server \"npx nx watch --projects=@blockly/dev-tools --includeDependencies -- npm run build\" \"npx nx run @blockly/dev-tools:start --no-open\" \"http-server ./ -p 8081 -s -o /tests/playground.html -c-1\"", "tsc": "gulp tsc", "test": "gulp test", "test:browser": "npx mocha --config tests/browser/.mocharc.js", diff --git a/packages/blockly/tests/playground.html b/packages/blockly/tests/playground.html index df451996dc2..e1e9a4af2da 100644 --- a/packages/blockly/tests/playground.html +++ b/packages/blockly/tests/playground.html @@ -95,6 +95,15 @@ addEventHandlers(); document.querySelector('#version').innerText = Blockly.VERSION; + + // If we're running locally, display the Advanced Playground link + if ( + window.location.href.includes('127.0.0.1') || + window.location.href.includes('localhost') + ) { + document.querySelector('.advancedPlayground').style.display = + 'inline'; + } } /** @@ -506,6 +515,10 @@ font-family: monospace; } + .advancedPlayground { + display: none; + } + .ioLabel > .blocklyFlyoutLabelText { font-style: italic; } @@ -534,7 +547,12 @@
- - + - + Advanced - + Web Component - + Multi Playground