vaporweb-org / vaporweb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

v a p o r w e b

Create React component libraries and Node.js services with no configuration.

Overview

@vaporweb/app

npm init @vaporweb/app my-app
cd my-app
npm start

@vaporweb/component

npm init @vaporweb/component my-component
cd my-component
npm start

@vaporweb/service

npm init @vaporweb/service my-service
cd my-service
npm start

Get Started Immediately

Development tools like Babel, Jest, Rollup, and Webpack are preconfigured and hidden so that you can focus on the code.

Creating an App

To create a new app, run the following command:

npm init @vaporweb/app my-app (--typescript)

The initialization script will create a directory called my-app inside the current folder.

Inside that directory, it will generate the initial project structure and install the dependencies:

my-app
├── README.md
├── node_modules
├── package.json
├── (tsconfig.json)
├── (tslint.json)
├── .gitignore
├── public
|   └── favicon.ico
|   └── index.html
└── src
    ├── components
    |   └── App.js (App.tsx)
    ├── index.js (index.tsx)
    └── index.test.js (index.test.tsx)

Inside the newly created project, you can run some built-in commands:

npm start

Stars the project in development mode.

npm test

Starts the test runner.

npm run build

Builds the project for production.

npm run lint

Runs the linter. You can pass the fix param (npm run lint -- --fix) to automatically fix lint errors.

Read more about @vaporweb/app here.

Creating a Component

To create a new component, run the following command:

npm init @vaporweb/component my-component (--typescript)

The initialization script will create a directory called my-component inside the current folder.

Inside that directory, it will generate the initial project structure and install the dependencies:

my-component
├── README.md
├── node_modules
├── package.json
├── (tsconfig.json)
├── (tslint.json)
├── .gitignore
└── src
    ├── index.js (index.tsx)
    └── index.test.js (index.test.tsx)

Inside the newly created project, you can run some built-in commands:

npm start

Builds the project in watch mode.

npm test

Starts the test runner.

npm run build

Builds the project for production.

npm run lint

Runs the linter. You can pass the fix param (npm run lint -- --fix) to automatically fix lint errors.

Read more about @vaporweb/component here.

Creating a Service

To create a new service, run the following command:

npm init @vaporweb/service my-service (--typescript)

The initialization script will create a directory called my-service inside the current folder.

Inside that directory, it will generate the initial project structure and install the dependencies:

my-service
├── README.md
├── node_modules
├── package.json
├── index.js (index.ts)
├── (tsconfig.json)
├── (tslint.json)
├── .gitignore
└── tests
    └── quick-maths.test.js (quick-maths.test.ts)

Inside the newly created project, you can run some built-in commands:

npm start

Starts the service.

npm test

Starts the test runner.

npm run lint

Runs the linter. You can pass the fix param (npm run lint -- --fix) to automatically fix lint errors.

Read more about @vaporweb/service here.

Inspiration

About


Languages

Language:JavaScript 93.3%Language:TypeScript 5.4%Language:HTML 1.2%