1.0.4 • Published 8 months ago

fsd-cli v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

FSD CLI

CLI for generating slices with segments by Feature-Sliced Design

Package version Node version GitHub issues License

Table of Contents

Install

npm:

npm install -g fsd-cli

yarn:

yarn add fsd-cli

Usage

Command structure

fsd [COMMAND] [FLAG] [VALUE]

Subfolder generation available, example:

fsd generate --shared UI/base-component

Commands

Supports passing multiple options at the same time.

Examples

Generate widget

fsd g -w widget-name

Generate page

fsd g -p page-name

Generate feature

fsd g -f feature-name

Generate entity

fsd g -e entity-name

Generate module

fsd g -m module-name

Generate component

fsd g -c component-name

Description

The names of the slices are case-insensitive, all cases will be transformed into the case corresponding to the segment.

On the command example

fsd g -w placeholder
SegmentFilename
Public indexindex.ts
ComposableusePlaceholder.ts
ComponentPlaceholder.vue
Typesplaceholder.types.ts

The postfix "page" will be automatically added to the pages if it is not present. If the segment exists in the slice, then the file will not be overwritten.

Supported Node version: >= v14

1.0.4

8 months ago

1.0.3

9 months ago

1.0.2

10 months ago

1.0.1-0

10 months ago

1.0.1

10 months ago

1.0.0

11 months ago