From dc51b50ad2d0338ef05c53676558be7dccfa7e48 Mon Sep 17 00:00:00 2001 From: Dimitar Kalaydzhiev Date: Mon, 17 Jun 2024 13:50:05 +0300 Subject: [PATCH] chore: remove obsolete create-component script --- gulpfile.js | 23 +---------------------- package.json | 4 +++- 2 files changed, 4 insertions(+), 23 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 44deee147e3..4de436a6aa8 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -6,9 +6,7 @@ const gulp = require("gulp"); const { sassFlatten } = require('@progress/kendo-theme-tasks/src/build/sass-flatten'); const { embedFileBase64 } = require('@progress/kendo-theme-tasks/src/embedFile'); -const { getArg, getEnvArg } = require("@progress/kendo-theme-tasks/src/utils"); -const { createComponent } = require('@progress/kendo-theme-tasks/src/create'); - +const { getArg } = require("@progress/kendo-theme-tasks/src/utils"); // Settings const paths = { @@ -194,22 +192,3 @@ function distSwatches() { } gulp.task("dist:swatches", distSwatches); // #endregion - -// #region Components - -/** - * A task that creates all the needed files for a new component. - * - * @example npm run create-component --name=accordion - * @example gulp create-component --name accordion - * - * @param {string} [name] - The name of the new component. - */ -gulp.task("create-component", function( done ) { - const name = getArg('--name') || getEnvArg('name') || null; - - createComponent({ name }); - done(); -}); - -// #endregion diff --git a/package.json b/package.json index 64b2ee15c54..e5e611ff881 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,9 @@ "test:integrations": "npm run build --prefix integrations", "clean": "nx reset && find . -name \"node_modules\" -type d -prune | xargs rm -rf", "clean:dist": "find ./packages -name \"dist\" -type d -prune -maxdepth 2 | xargs rm -rf", - "clean:tests": "node ./scripts/cleanup-test-results.js" + "clean:tests": "node ./scripts/cleanup-test-results.js", + + "embed-assets": "gulp assets" }, "engines": { "node": "^20"