Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions packages/blockly/gulpfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
//
// organize-imports-ignore

import {parallel} from 'gulp';
import {
deployDemos,
deployDemosBeta,
Expand All @@ -27,9 +26,6 @@ import {
buildAdvancedCompilationTest,
minify,
} from './scripts/gulpfiles/build_tasks.mjs';
import {cleanBuildDir, cleanReleaseDir} from './scripts/lib/fs_utils.mjs';

const clean = parallel(cleanBuildDir, cleanReleaseDir);

// Default target if gulp invoked without specifying.
export default build;
Expand All @@ -52,6 +48,5 @@ export {
//
// prettier-ignore
export {
clean,
buildAdvancedCompilationTest,
}
2 changes: 1 addition & 1 deletion packages/blockly/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"build-debug-log": "npm run build:debug > build-debug.log 2>&1 && tail -3 build-debug.log",
"build-strict": "gulp build --verbose --strict",
"build-strict-log": "npm run build:strict > build-debug.log 2>&1 && tail -3 build-debug.log",
"clean": "gulp clean",
"clean": "node \"scripts/clean.mjs\"",
"deployDemos": "npm ci && gulp deployDemos",
"deployDemos:beta": "npm ci && gulp deployDemosBeta",
"messages": "node \"scripts/messages.mjs\"",
Expand Down
14 changes: 14 additions & 0 deletions packages/blockly/scripts/clean.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* @license
* Copyright 2026 Raspberry Pi Foundation
* SPDX-License-Identifier: Apache-2.0
*/

/**
* @fileoverview Script to clean the workspace of old build/package/etc. files.
*/

import {cleanBuildDir, cleanReleaseDir} from './lib/fs_utils.mjs';

await cleanBuildDir();
await cleanReleaseDir();
Loading