lyrn

Quick start of your web application


NPM Version

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

MIT

Commands

  • create: This command creates an application Learn more
  • start: This command starts the development server Learn more
  • build: This command builds your project Learn more
  • export: 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"
  }
}

Please note that specifying configuration files in lyrn.json leads to their import and merging with the default Webpack configuration when using the start and build commands next time.