refactor: rip, for now

This commit is contained in:
cha0s 2024-02-11 23:52:26 -06:00
parent 1f3baab7b3
commit b5822a2def
4 changed files with 2 additions and 12 deletions

2
.vscode/tasks.json vendored
View File

@ -6,7 +6,7 @@
{
"label": "Start Docusaurus server",
"type": "shell",
"command": "yarn dox start --no-open",
"command": "npm run dox start --no-open",
"problemMatcher": {
"pattern": {
"regexp": "^Error",

View File

@ -104,8 +104,6 @@ exports.commands = (program, flecks) => {
],
options: [
program.createOption('-d, --dev-dependency', 'add to dev dependencies'),
program.createOption('-pm,--package-manager <binary>', 'package manager binary')
.choices(['npm', 'bun', 'pnpm', 'yarn']),
],
description: 'Add flecks to your application.',
action: async (packages, {devDependency, packageManager}) => {
@ -181,10 +179,6 @@ exports.commands = (program, flecks) => {
},
clean: {
description: 'Remove node_modules, lock file, and build artifacts.',
options: [
program.createOption('-pm,--package-manager <binary>', 'package manager binary')
.choices(['npm', 'bun', 'pnpm', 'yarn']),
],
action: async ({packageManager}) => {
await Promise.all([
rimraf(join(FLECKS_CORE_ROOT, 'dist')),

View File

@ -5,7 +5,7 @@
"license": "MIT",
"scripts": {
"build": "flecks build",
"clean": "rm -rf dist node_modules yarn.lock",
"clean": "flecks clean",
"lint": "flecks lint",
"test": "flecks test"
},

View File

@ -18,10 +18,6 @@ const {
(async () => {
program.argument('<app>', 'name of the app to create');
program.addOption(
program.createOption('-pm,--package-manager <binary>', 'package manager binary')
.choices(['npm', 'bun', 'pnpm', 'yarn']),
);
program.action(async (app, {packageManager}) => {
try {
const {errors} = validate(app);