fe-fwk-cli

1.0.11 • Public • Published

Fe-Fwk CLI

fe-fwk

The CLI tool that accompanies the book Build a frontend framework from scratch. Used to create the project structure for the book, so you can start writing the code right away.

Installation

You can install the CLI globally with npm:

npm install -g fe-fwk-cli

Usage

Creating the project for the book

To create an empty project were you can write the code for the book, run:

fe-fwk init <framework-name>

Where <framework-name> is the name you want to give the framework. This will create the following structure:

├── README.md
├── package.json
├── packages
│     ├── compiler
│     ├── loader
│     ├── runtime

Each of the packages is configured the same way, using the following scripts:

  • build: bundles the javascript code—using Rollup—into a single ES module file
  • test: starts the Vitest test runner in watch mode
  • test:run: runs the Vitest test runner once
  • lint: runs ESLint on the code
  • lint:fix: runs ESLint on the code and fixes any issues it can

/fe-fwk-cli/

    Package Sidebar

    Install

    npm i fe-fwk-cli

    Homepage

    mng.bz/aM2o

    Weekly Downloads

    3

    Version

    1.0.11

    License

    MIT

    Unpacked Size

    140 kB

    Total Files

    13

    Last publish

    Collaborators

    • angelsolaorbaiceta