CLI tool for astel
yarn add @astel/cli
Or
npm install @astel/cli
Astel cli uses a config file astel.config.ts/js
to detect basic configuration for all commands.
Sample config :
import { defineAstelConfig } from '@astel/cli'
export default defineAstelConfig({
ignoreDirs: ['.DS_Store', 'utils'],
build: {
entry: 'library/index.ts',
prefix: 'as',
emptyOutDir: true,
declaration: true,
library: [
{ name: 'astel', format: 'esm', outputDir: 'dist/es', bundle: true, summary: true },
{ name: 'astel', format: 'umd', outputDir: 'dist/lib', bundle: true, summary: true },
],
},
})
Generate a new component.
Usage : npx astel generate <component-name>
Collect all component entries and generate index.ts
entry point for building
Builds the bundle/library according to the configuration in config.build
Generate type definitions
MIT License © 2021 Sumit Kolhe