Skip to content

Commit 05332bd

Browse files
committed
chore: update all examples to use shared blockly libs
1 parent a228441 commit 05332bd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+252
-338
lines changed

examples/backpack-demo/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<head>
44
<meta charset="utf-8" />
55
<title>Blockly Demo: Backpack</title>
6-
<script src="./node_modules/blockly/blockly_compressed.js"></script>
7-
<script src="./node_modules/blockly/blocks_compressed.js"></script>
8-
<script src="./node_modules/blockly/msg/en.js"></script>
9-
<script src="./node_modules/@blockly/workspace-backpack/dist/index.js"></script>
6+
<script src="../lib/blockly/blockly_compressed.js"></script>
7+
<script src="../lib/blockly/blocks_compressed.js"></script>
8+
<script src="../lib/blockly/msg/en.js"></script>
9+
<script src="../lib/@blockly/workspace-backpack/dist/index.js"></script>
1010
<script src="./notification_backpack.js"></script>
1111
<script src="./index.js"></script>
1212
<style>

examples/backpack-demo/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,13 @@ const toolbox = {
188188
function init() {
189189
// Inject primary workspace.
190190
const primaryWorkspace = Blockly.inject('primaryDiv', {
191-
media: './node_modules/blockly/media/',
191+
media: '../lib/blockly/media/',
192192
toolbox: toolbox,
193193
trashcan: true,
194194
});
195195
// Inject secondary workspace.
196196
const secondaryWorkspace = Blockly.inject('secondaryDiv', {
197-
media: './node_modules/blockly/media/',
197+
media: '../lib/blockly/media/',
198198
toolbox: toolbox,
199199
trashcan: true,
200200
});

examples/backpack-demo/package-lock.json

Lines changed: 4 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/backpack-demo/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
"index.html",
1010
"index.js",
1111
"notification_backpack.js",
12-
"./node_modules/blockly/*_compressed.js",
13-
"./node_modules/blockly/*_compressed.js.map",
14-
"./node_modules/blockly/msg/en.js",
15-
"./node_modules/blockly/media/*",
16-
"./node_modules/@blockly/workspace-backpack/dist/index.js"
12+
"../lib/blockly/*_compressed.js",
13+
"../lib/blockly/*_compressed.js.map",
14+
"../lib/blockly/msg/en.js",
15+
"../lib/blockly/media/*",
16+
"../lib/@blockly/workspace-backpack/dist/index.js"
1717
]
1818
},
1919
"dependencies": {

examples/blockly-rtc/package-lock.json

Lines changed: 16 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/blockly-rtc/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ module.exports = {
4848
// Copy over media resources from the Blockly package
4949
new CopyPlugin([
5050
{
51-
from: path.resolve(__dirname, './node_modules/blockly/media'),
51+
from: path.resolve(__dirname, '../lib/blockly/media'),
5252
to: path.resolve(__dirname, 'build/media'),
5353
},
5454
]),

examples/custom-dialogs-demo/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<head>
44
<meta charset="utf-8" />
55
<title>Blockly Demo: Custom Dialog</title>
6-
<script src="./node_modules/blockly/blockly_compressed.js"></script>
7-
<script src="./node_modules/blockly/blocks_compressed.js"></script>
8-
<script src="./node_modules/blockly/msg/en.js"></script>
6+
<script src="../lib/blockly/blockly_compressed.js"></script>
7+
<script src="../lib/blockly/blocks_compressed.js"></script>
8+
<script src="../lib/blockly/msg/en.js"></script>
99
<style>
1010
body {
1111
background-color: #fff;
@@ -80,7 +80,7 @@
8080
};
8181

8282
var demoWorkspace = Blockly.inject('blocklyDiv', {
83-
media: './node_modules/blockly/media/',
83+
media: '../lib/blockly/media/',
8484
toolbox: toolbox,
8585
});
8686
</script>

examples/custom-dialogs-demo/package-lock.json

Lines changed: 3 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/custom-dialogs-demo/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
"files": [
99
"index.html",
1010
"custom-dialog.js",
11-
"./node_modules/blockly/*_compressed.js",
12-
"./node_modules/blockly/*_compressed.js.map",
13-
"./node_modules/blockly/msg/en.js",
14-
"./node_modules/blockly/media/*"
11+
"../lib/blockly/*_compressed.js",
12+
"../lib/blockly/*_compressed.js.map",
13+
"../lib/blockly/msg/en.js",
14+
"../lib/blockly/media/*"
1515
]
1616
},
1717
"dependencies": {

examples/custom-tooltips-demo/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<head>
44
<meta charset="utf-8" />
55
<title>Blockly Custom Tooltip Example</title>
6-
<script src="./node_modules/blockly/blockly_compressed.js"></script>
7-
<script src="./node_modules/blockly/blocks_compressed.js"></script>
8-
<script src="./node_modules/blockly/msg/en.js"></script>
6+
<script src="../lib/blockly/blockly_compressed.js"></script>
7+
<script src="../lib/blockly/blocks_compressed.js"></script>
8+
<script src="../lib/blockly/msg/en.js"></script>
99
<script src="./index.js"></script>
1010
<style>
1111
html,

0 commit comments

Comments
 (0)