Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

forsteri-cli

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

forsteri-cli

Forsteri CLI for zero configuration project [Forsteri](https://github.com/saltyAom/forsteri) Project.

latest
Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Forsteri CLI

Forsteri CLI for zero configuration project Forsteri Project.

Forsteri is a library for building Reusable Reactive Web Component with Virtual DOM in 2KB (gzipped)

Under the hood, Forsteri CLI helps developer to reduce boilerplate to create Forsteri app by setting up webpack and babel as default especially for Forsteri.

Setting up

  • As recommended, Forsteri has an CLI for generating Forsteri project without need to setup yourself by running the following command:
yarn create forsteri-app

# Or with npm
npx create-forsteri-app

Then follow the instruction and the project is ready for integrated development experience.

  • Otherwise you might wanted to setup the project yourself with following instruction: First, install the cli:
yarn add --dev forsteri-cli

# Or with npm
npm install --save-dev forsteri-cli

Forsteri CLI required an entry point for TypeScript and HTML. Create a structure as illustrate:

-O
 | - src
 | | - index.tsx
 |
 | - public
   | - index.html

Command

Forsteri however, required an entry point as illustrated which is index.html and index.tsx where:

  • index.html in public. As when built, the public folder will be bundle to production.
  • index.tsx in src.

Forsteri CLI provide the following command:

  • forsteri dev

    • Start development server for Forsteri app with Hot Module Replacement.
  • forsteri build

    • Bundle Forsteri for production built.
  • forsteri components

    • Generate as seperated web components which can be used anywhere with Forsteri runtime.

Note

Under the hood of Forsteri CLI is purely configured webpack and babel for a quick start experience and clean project structured. However, you could also change the webpack configuration by creating forsteri.config.js on root of your project and write your own configuration.

forsteri.config.js:

module.exports = {
    // your own webpack config here
}

Keywords

Forsteri

FAQs

Package last updated on 02 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts