refactor: rip, for now
This commit is contained in:
parent
1f3baab7b3
commit
b5822a2def
2
.vscode/tasks.json
vendored
2
.vscode/tasks.json
vendored
|
@ -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",
|
||||
|
|
|
@ -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')),
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user