new package for created a specified react component using typescript or javascript
with npm
npm install lun-cli
with yarn
yarn add lun-cli
with pnpm
pnpm add lun-cli
created component schema
lun-cli gc <component-name>
create page/view schema
lun-cli gp <view-name>
create context/provider schema
lun-cli gctx <provider-name>
### short way
lun-cli -h
### large way
lun-cli --help
by default that flag will be like "react" (react javascript)
-t
--template
pnpm lun-cli <component> -t react-ts
pnpm lun-cli <component> --template react
you can create a file for define by default the config for use lun-cli for generate components
, views|pages
and contexts|providers
const { defineLunConfig } = require('lun-cli');
module.exports = defineLunConfig({
root: 'src',
pagesFolder: 'views',
defaultTemplate: 'react-ts',
provider: 'context',
css: 'module',
className: 'clsx'
});