1.0.0 • Published 8 years ago
generator-elderfo-typescript-workspace v1.0.0
generator-elderfo-typescript-workspace

Boilerplate generator for typescript monorepos not intended to be published to npm.
Installation
First, install Yeoman and generator-elderfo-typescript-workspace using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-elderfo-typescript-workspaceThen generate your new project:
yo elderfo-typescript-workspaceConfiguration
The generator will prompt you for two values:
Application Name- the name of the application. Note: when running the generator, you will want to be in the folder above where you want the package to be createdApplication Version- the version to be used with the application
Structure
The application configuration expects the application to be structured like:
<project-name>/
|-- packages/
|-- tools/
|-- jest.json
|-- lerna.json
|-- package.json
`-- tsconfig.jsonpackagesis for the main applicaiton packagestoolsis for dev packages, such as pre-processors, data generators, etc...
Npm/yarn Run Scripts
bootstrap- convinence method forlerna bootstrapbuild- runsbuildon all packages with a definedbuildscriptclean-all- cleans allnode_modulesandbuildfoldersdev- runs thedevscript in parallel on all packages that have one definedpretest- pre-builds packages for testingtest- runs tests at a global level
License
MIT © Chris Getsfred
1.0.0
8 years ago