1.0.1 • Published 2 years ago

casefu-cli v1.0.1

Weekly downloads
59
License
Apache-2.0
Repository
github
Last release
2 years ago

CaseFu CLI module

Write functional specification in Markdown enhanced with specific keywords and generate a nice FSD in HTML format.

Installation

  1. Create a new node module:

    npm init

    and confirm (or answer) all the questions.

  2. Install the CaseFu CLI module:

    npm i casefu-cli --save-dev
  3. Add npm scripts. Add the following 2 rows into the scripts section of the package.json file:

    "scripts": {
    	"build": "casefu build",
    	"serve": "casefu serve"
    }
  4. Create a file at fsd/Overview.md and put the following into it:

    # My new system

Building FSD

To build output FSD run:

npm run build

The FSD is then available at build/index.html.

Writing FSD

  1. Open a terminal at the project directory and execute

    npm run serve
  2. Open a browser window and navigate to the URL given at the terminal.

  3. As you write into the files in the fsd/ directory and save a file, the FSD output in the browser gets automatically refreshed.

There is also a watch command that only re-builds the output FSD file on any change of the source files, but does not push the changes to the browser (the browser page needs to be refreshed manually in this case).

Parameters

The build, serve and watch commands have the following parameters:

  • -s, --sources <sources> - Glob pattern to match source files to process. Default: fsd/**/*.md
  • -t, --target <target> - Filename of generated HTML file. Default: build/index.html
  • -p, --port <port> (only for serve command) - Port to bind to. Default: 8080
  • -v, --verbose - List files processed

Sample FSD

A sample FSD demonstrating the use of CaseFu generator is available here.

It has been generated from the following source files.

Documentation

The complete documentation is available at CaseFu.com.

1.0.1

2 years ago

1.0.0

3 years ago

0.9.7

3 years ago

0.9.6

3 years ago

0.9.5

3 years ago

0.9.4

3 years ago

0.9.3

3 years ago

0.9.2

3 years ago

0.9.1

3 years ago

0.9.0

3 years ago

0.8.1

4 years ago

0.8.0

4 years ago

0.7.2

4 years ago

0.7.1

4 years ago

0.7.0

4 years ago

0.6.3

4 years ago

0.6.2

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.0

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago