Skip to content

Commit

Permalink
Add pxt-blockly npm package, copy files (microsoft#5554)
Browse files Browse the repository at this point in the history
* Pull pxt-blockly npm package, copy files

* Add webapp/public/blockly to gitignore now that it"s being pulled in by npm
  • Loading branch information
shakao authored and riknoll committed May 20, 2019
1 parent 0523f46 commit c1a6ae8
Show file tree
Hide file tree
Showing 29 changed files with 13 additions and 4,014 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
templater.sh
web/_temp
webapp/public/blockly/blockly_uncompressed.js
webapp/public/blockly/core
webapp/public/blockly
webapp/public/closure-library
node_modules
*.sw?
Expand Down
11 changes: 11 additions & 0 deletions Jakefile.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,17 @@ compileDir("cli", ["built/pxtlib.js", "built/pxtsim.js", "built/pxtcompiler.js",
compileDir("backendutils", ['pxtlib/commonutil.ts', 'pxtlib/docsrender.ts'])
file("built/web/pxtweb.js", expand(["docfiles/pxtweb"]), { async: true }, function () { tscIn(this, "docfiles/pxtweb", "built") })

if (!fs.existsSync("webapp/public/blockly")) fs.mkdirSync("webapp/public/blockly");
if (!fs.existsSync("webapp/public/blockly/msg")) fs.mkdirSync("webapp/public/blockly/msg");
if (!fs.existsSync("webapp/public/blockly/msg/js")) fs.mkdirSync("webapp/public/blockly/msg/js");
if (!fs.existsSync("webapp/public/blockly/msg/json")) fs.mkdirSync("webapp/public/blockly/msg/json");

jake.cpR('node_modules/pxt-blockly/blocks_compressed.js', 'webapp/public/blockly/');
jake.cpR('node_modules/pxt-blockly/blockly_compressed.js', 'webapp/public/blockly/');
jake.cpR('node_modules/pxt-blockly/msg/js/en.js', 'webapp/public/blockly/msg/js/');
jake.cpR('node_modules/pxt-blockly/msg/json/en.json', 'webapp/public/blockly/msg/json/');
jake.cpR('node_modules/pxt-blockly/media', 'webapp/public/blockly/');

task("karma", ["blocklycompilertest"], function () {
runKarma(this, "");
});
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"devDependencies": {
"monaco-editor": "0.10.0",
"pxt-monaco-typescript": "2.3.5",
"pxt-blockly": "2.0.1",
"react": "16.3.1",
"react-dom": "16.3.1",
"react-modal": "3.3.2",
Expand Down
2,360 changes: 0 additions & 2,360 deletions webapp/public/blockly/blockly_compressed.js

This file was deleted.

312 changes: 0 additions & 312 deletions webapp/public/blockly/blocks_compressed.js

This file was deleted.

Binary file removed webapp/public/blockly/media/1x1.gif
Binary file not shown.
72 changes: 0 additions & 72 deletions webapp/public/blockly/media/add.svg

This file was deleted.

8 changes: 0 additions & 8 deletions webapp/public/blockly/media/c_arrow.svg

This file was deleted.

Binary file removed webapp/public/blockly/media/click.mp3
Binary file not shown.
Binary file removed webapp/public/blockly/media/click.ogg
Binary file not shown.
Binary file removed webapp/public/blockly/media/click.wav
Binary file not shown.
Binary file removed webapp/public/blockly/media/delete.mp3
Binary file not shown.
Binary file removed webapp/public/blockly/media/delete.ogg
Binary file not shown.
Binary file removed webapp/public/blockly/media/delete.wav
Binary file not shown.
Binary file removed webapp/public/blockly/media/disconnect.mp3
Binary file not shown.
Binary file removed webapp/public/blockly/media/disconnect.ogg
Binary file not shown.
Binary file removed webapp/public/blockly/media/disconnect.wav
Binary file not shown.
1 change: 0 additions & 1 deletion webapp/public/blockly/media/dropdown-arrow-dark.svg

This file was deleted.

1 change: 0 additions & 1 deletion webapp/public/blockly/media/dropdown-arrow.svg

This file was deleted.

Binary file removed webapp/public/blockly/media/handclosed.cur
Binary file not shown.
Binary file removed webapp/public/blockly/media/handdelete.cur
Binary file not shown.
Binary file removed webapp/public/blockly/media/handopen.cur
Binary file not shown.
64 changes: 0 additions & 64 deletions webapp/public/blockly/media/quote0.svg

This file was deleted.

64 changes: 0 additions & 64 deletions webapp/public/blockly/media/quote1.svg

This file was deleted.

63 changes: 0 additions & 63 deletions webapp/public/blockly/media/remove.svg

This file was deleted.

Binary file removed webapp/public/blockly/media/sprites.png
Binary file not shown.
Loading

0 comments on commit c1a6ae8

Please sign in to comment.