Merge pull request #838 from ericrosenbaum/feature/move-extensions-into-folder

Move pen and wedo into extensions folder
This commit is contained in:
Eric Rosenbaum 2017-12-05 15:43:03 -05:00 committed by GitHub
commit 506a36b8ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 15 deletions

View file

@ -6,8 +6,8 @@ const BlockType = require('./block-type');
// These extensions are currently built into the VM repository but should not be loaded at startup. // These extensions are currently built into the VM repository but should not be loaded at startup.
// TODO: move these out into a separate repository? // TODO: move these out into a separate repository?
// TODO: change extension spec so that library info, including extension ID, can be collected through static methods // TODO: change extension spec so that library info, including extension ID, can be collected through static methods
const Scratch3PenBlocks = require('../blocks/scratch3_pen'); const Scratch3PenBlocks = require('../extensions/scratch3_pen');
const Scratch3WeDo2Blocks = require('../blocks/scratch3_wedo2'); const Scratch3WeDo2Blocks = require('../extensions/scratch3_wedo2');
const Scratch3MusicBlocks = require('../extensions/scratch3_music'); const Scratch3MusicBlocks = require('../extensions/scratch3_music');
const builtinExtensions = { const builtinExtensions = {
pen: Scratch3PenBlocks, pen: Scratch3PenBlocks,

View file

@ -1,11 +1,11 @@
const ArgumentType = require('../extension-support/argument-type'); const ArgumentType = require('../../extension-support/argument-type');
const BlockType = require('../extension-support/block-type'); const BlockType = require('../../extension-support/block-type');
const Cast = require('../util/cast'); const Cast = require('../../util/cast');
const Clone = require('../util/clone'); const Clone = require('../../util/clone');
const Color = require('../util/color'); const Color = require('../../util/color');
const MathUtil = require('../util/math-util'); const MathUtil = require('../../util/math-util');
const RenderedTarget = require('../sprites/rendered-target'); const RenderedTarget = require('../../sprites/rendered-target');
const log = require('../util/log'); const log = require('../../util/log');
/** /**
* Icon svg to be displayed at the left edge of each extension block, encoded as a data URI. * Icon svg to be displayed at the left edge of each extension block, encoded as a data URI.

View file

@ -1,7 +1,7 @@
const ArgumentType = require('../extension-support/argument-type'); const ArgumentType = require('../../extension-support/argument-type');
const BlockType = require('../extension-support/block-type'); const BlockType = require('../../extension-support/block-type');
const color = require('../util/color'); const color = require('../../util/color');
const log = require('../util/log'); const log = require('../../util/log');
/** /**
* Icon svg to be displayed at the left edge of each extension block, encoded as a data URI. * Icon svg to be displayed at the left edge of each extension block, encoded as a data URI.

View file

@ -2,7 +2,7 @@ const Worker = require('tiny-worker');
const path = require('path'); const path = require('path');
const test = require('tap').test; const test = require('tap').test;
const Scratch3PenBlocks = require('../../src/blocks/scratch3_pen'); const Scratch3PenBlocks = require('../../src/extensions/scratch3_pen/index.js');
const VirtualMachine = require('../../src/index'); const VirtualMachine = require('../../src/index');
const dispatch = require('../../src/dispatch/central-dispatch'); const dispatch = require('../../src/dispatch/central-dispatch');