0.2.12 • Published 3 years ago
@fpkit/fp v0.2.12
Vite template for REACT
Introduction
https://github.com/shawn-sandy/react-vite
Install
Install from a Github template
Use the github template feature to create a new repo using this repository as template and push it to your github account.
- Click the "Use this template" button on the repository page or click here and follow the onscreen instructions.
Install from github using degit
Clone the repository using degit: npx degit shawn-sandy/react-vite
Open the repository and run npm init to edit the package.json file.
Run npm i to install the dependencies.
Run npm start to star the dev server.
Usage
Quick start
- Browse to you install and run
npm startto start the dev server and open in the browser. Use this if you are building a React application for publishing to the web - Browse
/srcdirectory to view and edit the source code. - Changes you make to this file should can be viewed in the browser.abs
- Open the terminal and run
npm testto test your application.
NPM script commands
- Run
npm startto start the application and open in the default brwser. - Run
npm run buildto build the application for production - Run
npm run build:packageto package fornpmuse - Run
npm testto test your application in--watchmode. - Run
npm test:uito run your test with vite interactive Vite Test UI. - Run
npm test:coverageto run test with coverage output - Run
npm test:coverage:uito run the vite test UI with coverage output - Run
npm run test:snapshotto update the test snapshots.
Customize your application info
Change the app name, author, repository url in the package.json
- Run
npm initchange the values as required.
# npm interactive prompts sample example
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.
See `npm help init` for definitive documentation on these fields
and exactly what they do.
Use `npm install <pkg>` afterwards to install a package and
save it as a dependency in the package.json file.
Press ^C at any time to quit.
package name: (react-vite)
version: (0.0.0)
entry point: (vitest.config.js)
git repository: (https://github.com/shawn-sandy/react-vite.git)
...Create a new component
0.2.16
3 years ago
0.2.15
3 years ago
0.2.14
3 years ago
0.2.13
3 years ago
0.2.12
3 years ago
0.2.10
3 years ago
0.2.18
3 years ago
0.2.17
3 years ago
0.2.9
3 years ago
0.2.7
3 years ago
0.2.5
3 years ago
0.2.4
3 years ago
0.2.3
3 years ago
0.2.2
3 years ago
0.2.1
3 years ago
0.2.0
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago