Quick start of your web application
Description
Lyrn is a command-line tool for quickly starting the development of your web application.
Install
You can run the application using the npx
utility:
npx lyrn@latest
Or install the package from npm globally
npm i -g lyrn
This will make the lyrn
application globally available in your system
License
Commands
create
: This command creates an application Learn morestart
: This command starts the development server Learn morebuild
: This command builds your project Learn moreexport
: This command export configuration files Learn more
lyrn create
To create an application, use the command:
lyrn create project your-app-name -f react
This command will create a simple application using the React framework
lyrn start
Navigate to your application folder
cd ./your-app-name
To start the development server, use the command:
npm start
lyrn build
Navigate to your application folder
cd ./your-app-name
To build your project, use the command:
npm run build
To run the built project, use the command:
npm run serve
lyrn export
Export configuration files:
lyrn export config
This command exports Webpack configurations for development (webpack.config.dev.js
) and production (webpack.config.prod.js
) environments.
Also, as a result of the export, an entry will be made in the lyrn.json
file about the exported files:
{
"dev": {
"config": "webpack.config.dev.js"
},
"prod": {
"config": "webpack.config.prod.js"
}
}