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", "label": "Start Docusaurus server",
"type": "shell", "type": "shell",
"command": "yarn dox start --no-open", "command": "npm run dox start --no-open",
"problemMatcher": { "problemMatcher": {
"pattern": { "pattern": {
"regexp": "^Error", "regexp": "^Error",

View File

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

View File

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

View File

@ -18,10 +18,6 @@ const {
(async () => { (async () => {
program.argument('<app>', 'name of the app to create'); 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}) => { program.action(async (app, {packageManager}) => {
try { try {
const {errors} = validate(app); const {errors} = validate(app);