Skip to content

Commit

Permalink
feat: add task to generate publishable React library
Browse files Browse the repository at this point in the history
This commit introduces a new task in Taskfile.yml named 'gen-react-pub-lib'.
This task is designed to generate a publishable React library with specific
options such as bundler, directory, importPath, and more. This will help in
streamlining the process of creating new React libraries in the project.
  • Loading branch information
gipo355 committed Jul 25, 2024
1 parent c84ecd0 commit 0f09c88
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,11 @@ tasks:
cmds:
- nx g @nx/js:lib --importPath=@gipo355/{{.CLI_ARGS}} --publishable
--directory=packages/{{.CLI_ARGS}} --js=true
gen-react-pub-lib:
desc: Generate a publishable React library
cmds:
- nx generate @nx/react:library --name={{.CLI_ARGS}} --bundler=rollup
--directory=packages/{{.CLI_ARGS}} --importPath=@gipo355/{{.CLI_ARGS}}
--pascalCaseFiles=true --projectNameAndRootFormat=as-provided
--publishable=true --setParserOptionsProject=true --style=scss
--unitTestRunner=vitest --no-interactive

0 comments on commit 0f09c88

Please sign in to comment.