mirror of
https://github.com/scratchfoundation/scratch-analysis.git
synced 2025-07-29 07:08:55 -04:00
Merge pull request #69 from rfronczyk/DPR-430-add-backdrops
DPR-430: Add backdrops to the output
This commit is contained in:
commit
e43d2a4bfb
4 changed files with 93 additions and 0 deletions
lib
|
@ -170,6 +170,10 @@ const metadata = function (meta) {
|
|||
return obj;
|
||||
};
|
||||
|
||||
const stageTargets = function (targets) {
|
||||
return targets.filter((target) => target.isStage);
|
||||
};
|
||||
|
||||
module.exports = function (project, callback) {
|
||||
const meta = {
|
||||
scripts: scripts(project.targets),
|
||||
|
@ -179,6 +183,8 @@ module.exports = function (project, callback) {
|
|||
comments: extract(project.targets, 'comments'),
|
||||
sounds: extract(project.targets, 'sounds', 'name', 'md5ext'),
|
||||
costumes: costumes(project.targets),
|
||||
// backdrops are costumes on the stage target
|
||||
backdrops: costumes(stageTargets(project.targets)),
|
||||
sprites: sprites(project.targets),
|
||||
blocks: blocks(project.targets),
|
||||
extensions: extensions(project.extensions),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue