Browse Source
♻️ change plugin declaration for git js
pull/24/head
No known key found for this signature in database
GPG Key ID: 51D5A407BFCE64A9
3 changed files with
6 additions and
9 deletions
-
src/commands/add/prettier.ts
-
src/commands/add/tailwind.ts
-
src/utls/base-add-command.ts
|
|
@ -2,12 +2,9 @@ |
|
|
import { BaseCommand } from '../../utls/base-command'; |
|
|
import { BaseCommand } from '../../utls/base-command'; |
|
|
import { system, filesystem } from 'gluegun'; |
|
|
import { system, filesystem } from 'gluegun'; |
|
|
import * as prompts from 'prompts'; |
|
|
import * as prompts from 'prompts'; |
|
|
import * as fs from 'fs'; |
|
|
|
|
|
import { plugins, add, commit } from 'isomorphic-git'; |
|
|
|
|
|
|
|
|
import { add, commit } from 'isomorphic-git'; |
|
|
import { BaseAddCommand } from '../../utls/base-add-command'; |
|
|
import { BaseAddCommand } from '../../utls/base-add-command'; |
|
|
|
|
|
|
|
|
plugins.set('fs', fs); |
|
|
|
|
|
|
|
|
|
|
|
export default class Prettier extends BaseAddCommand { |
|
|
export default class Prettier extends BaseAddCommand { |
|
|
static description = 'add prettier to project and format it'; |
|
|
static description = 'add prettier to project and format it'; |
|
|
|
|
|
|
|
|
|
|
|
@ -1,12 +1,9 @@ |
|
|
import { BaseCommand } from '../../utls/base-command'; |
|
|
import { BaseCommand } from '../../utls/base-command'; |
|
|
import { system, filesystem, patching } from 'gluegun'; |
|
|
import { system, filesystem, patching } from 'gluegun'; |
|
|
import * as prompts from 'prompts'; |
|
|
import * as prompts from 'prompts'; |
|
|
import * as fs from 'fs'; |
|
|
|
|
|
import { plugins, add, commit } from 'isomorphic-git'; |
|
|
|
|
|
|
|
|
import { add, commit } from 'isomorphic-git'; |
|
|
import { BaseAddCommand } from '../../utls/base-add-command'; |
|
|
import { BaseAddCommand } from '../../utls/base-add-command'; |
|
|
|
|
|
|
|
|
plugins.set('fs', fs); |
|
|
|
|
|
|
|
|
|
|
|
export default class Tailwind extends BaseAddCommand { |
|
|
export default class Tailwind extends BaseAddCommand { |
|
|
static description = 'add tailwindcss to a project'; |
|
|
static description = 'add tailwindcss to a project'; |
|
|
|
|
|
|
|
|
|
|
|
@ -1,7 +1,10 @@ |
|
|
import { BaseCommand } from './base-command'; |
|
|
import { BaseCommand } from './base-command'; |
|
|
import { add, commit, config as gitConfig, statusMatrix } from 'isomorphic-git'; |
|
|
|
|
|
|
|
|
import { add, plugins, commit, config as gitConfig, statusMatrix } from 'isomorphic-git'; |
|
|
import * as latestVersion from 'latest-version'; |
|
|
import * as latestVersion from 'latest-version'; |
|
|
import { filesystem, system } from 'gluegun'; |
|
|
import { filesystem, system } from 'gluegun'; |
|
|
|
|
|
import * as fs from 'fs'; |
|
|
|
|
|
|
|
|
|
|
|
plugins.set('fs', fs); |
|
|
|
|
|
|
|
|
export abstract class BaseAddCommand extends BaseCommand { |
|
|
export abstract class BaseAddCommand extends BaseCommand { |
|
|
static flags = { |
|
|
static flags = { |
|
|
|