From 961b3476b20852c58d8c1f131cc1081a73ef4347 Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Mon, 13 Nov 2017 16:22:37 -0500 Subject: [PATCH] Move the music extension into a new extensions directory --- src/extension-support/extension-manager.js | 2 +- .../scratch3_music/index.js} | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) rename src/{blocks/scratch3_music.js => extensions/scratch3_music/index.js} (97%) diff --git a/src/extension-support/extension-manager.js b/src/extension-support/extension-manager.js index 938e791dc..c3346a22d 100644 --- a/src/extension-support/extension-manager.js +++ b/src/extension-support/extension-manager.js @@ -8,7 +8,7 @@ const BlockType = require('./block-type'); // TODO: change extension spec so that library info, including extension ID, can be collected through static methods const Scratch3PenBlocks = require('../blocks/scratch3_pen'); const Scratch3WeDo2Blocks = require('../blocks/scratch3_wedo2'); -const Scratch3MusicBlocks = require('../blocks/scratch3_music'); +const Scratch3MusicBlocks = require('../extensions/scratch3_music'); const builtinExtensions = { pen: Scratch3PenBlocks, wedo2: Scratch3WeDo2Blocks, diff --git a/src/blocks/scratch3_music.js b/src/extensions/scratch3_music/index.js similarity index 97% rename from src/blocks/scratch3_music.js rename to src/extensions/scratch3_music/index.js index 5cccaf278..ba1360034 100644 --- a/src/blocks/scratch3_music.js +++ b/src/extensions/scratch3_music/index.js @@ -1,9 +1,9 @@ -const ArgumentType = require('../extension-support/argument-type'); -const BlockType = require('../extension-support/block-type'); -const Clone = require('../util/clone'); -const Cast = require('../util/cast'); -const MathUtil = require('../util/math-util'); -const Timer = require('../util/timer'); +const ArgumentType = require('../../extension-support/argument-type'); +const BlockType = require('../../extension-support/block-type'); +const Clone = require('../../util/clone'); +const Cast = require('../../util/cast'); +const MathUtil = require('../../util/math-util'); +const Timer = require('../../util/timer'); /** * An array of drum names, used in the play drum block.