Create React component libraries and Node.js services with no configuration.
npm init @vaporweb/app my-app
cd my-app
npm start
npm init @vaporweb/component my-component
cd my-component
npm start
npm init @vaporweb/service my-service
cd my-service
npm start
Development tools like Babel, Jest, Rollup, and Webpack are preconfigured and hidden so that you can focus on the code.
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:
Stars the project in development mode.
Starts the test runner.
Builds the project for production.
Runs the linter. You can pass the fix param (npm run lint -- --fix
) to automatically fix lint errors.
Read more about @vaporweb/app here.
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:
Builds the project in watch mode.
Starts the test runner.
Builds the project for production.
Runs the linter. You can pass the fix param (npm run lint -- --fix
) to automatically fix lint errors.
Read more about @vaporweb/component here.
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:
Starts the service.
Starts the test runner.
Runs the linter. You can pass the fix param (npm run lint -- --fix
) to automatically fix lint errors.