Skip to content

Commit

Permalink
chore: remove obsolete create-component script
Browse files Browse the repository at this point in the history
  • Loading branch information
Juveniel committed Sep 4, 2024
1 parent c021753 commit dc51b50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 23 deletions.
23 changes: 1 addition & 22 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit dc51b50

Please sign in to comment.