mirror of
https://github.com/google/blockly.git
synced 2026-01-21 07:47:09 +01:00
refactor(tests): Move and rename prepare.js, blockly.mjs
Since prepare.js and blockly.mjs are going to be needed for running all tests in uncompiled mode (not just the playgrounds), move them tests/. Further, rename prepare.js to bootstrap.js to better reflect its purpose.
This commit is contained in:
@@ -20,7 +20,7 @@ var path = require('path');
|
||||
// - tests/scripts/check_metadata.sh
|
||||
// - tests/scripts/update_metadata.sh
|
||||
// - blockly_uncompressed.js (for location of deps.js)
|
||||
// - tests/playgrounds/prepare.js (for location of deps.js)
|
||||
// - tests/bootstrap.js (for location of deps.js)
|
||||
// - tests/mocha/index.html (for location of deps.mocha.js)
|
||||
|
||||
// Directory to write compiled output to.
|
||||
|
||||
@@ -4,15 +4,16 @@
|
||||
<meta charset="utf-8">
|
||||
<title>Blockly Playground</title>
|
||||
|
||||
<!-- This script loads uncompressed when on localhost and loads compressed when it is being hosted.
|
||||
Please add any other dependencies to playgrounds/prepare.js.-->
|
||||
<script src="playgrounds/prepare.js"></script>
|
||||
<!-- This script loads uncompressed when on localhost and loads
|
||||
compressed when it is being hosted. Please add any other
|
||||
dependencies to bootstrap.js. -->
|
||||
<script src="bootstrap.js"></script>
|
||||
<script src="playgrounds/screenshot.js"></script>
|
||||
<script src="../node_modules/@blockly/dev-tools/dist/index.js"></script>
|
||||
<script type=module>
|
||||
import Blockly from './playgrounds/blockly.mjs';
|
||||
import Blockly from './blockly.mjs';
|
||||
|
||||
const IS_UNCOMPRESSED = Boolean(window.BlocklyLoader); // See prepare.js
|
||||
const IS_UNCOMPRESSED = Boolean(window.BlocklyLoader); // See bootstrap.js
|
||||
var workspace = null;
|
||||
|
||||
function start() {
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Advanced Blockly Playground</title>
|
||||
<script src="prepare.js"></script>
|
||||
<script src="../bootstrap.js"></script>
|
||||
<script src="./screenshot.js"></script>
|
||||
<script src="../themes/test_themes.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 type="module">
|
||||
import Blockly from './blockly.mjs';
|
||||
import Blockly from '../blockly.mjs';
|
||||
'use strict';
|
||||
|
||||
function start() {
|
||||
|
||||
Reference in New Issue
Block a user