Skip to content

Commit

Permalink
[PFX-833] Remove Default Plugins (#1014)
Browse files Browse the repository at this point in the history
* chore: Remove default plugins

* fix: PR feedback

* fix: add missing deps

---------

Co-authored-by: Kawika Bader <[email protected]>
  • Loading branch information
kbader-godaddy and kawikabader authored Jan 23, 2025
1 parent 90083da commit d429aec
Show file tree
Hide file tree
Showing 9 changed files with 105 additions and 108 deletions.
84 changes: 36 additions & 48 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions packages/create-gasket-app/lib/commands/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { makeCreateContext } from '../scaffold/create-context.js';
import { dumpErrorContext } from '../scaffold/dump-error-context.js';
import { rm } from 'fs/promises';
import { makeGasket } from '@gasket/core';
import { defaultPlugins } from '../config/default-plugins.js';
import {
createHooks,
generateFiles,
Expand Down Expand Up @@ -119,7 +118,7 @@ createCommand.action = async function run(appname, options, command) {

const pluginGasket = makeGasket({
...context.presetConfig,
plugins: context.presets.concat(context.presetConfig.plugins, defaultPlugins)
plugins: context.presets.concat(context.presetConfig.plugins)
});

await promptHooks({ gasket: pluginGasket, context });
Expand Down
17 changes: 0 additions & 17 deletions packages/create-gasket-app/lib/config/default-plugins.js

This file was deleted.

1 change: 1 addition & 0 deletions packages/create-gasket-app/lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ declare module 'create-gasket-app' {

constructor(initContext?: Partial<T>);
runWith(plugin: Plugin): Proxy<CreateContext>;
typescript?: boolean;
}
}

Expand Down
Loading

0 comments on commit d429aec

Please sign in to comment.