/lerna.monorepo.ts.vue

Monorepo + lerna + ts + vue + test + storybook

Primary LanguageJavaScriptMIT LicenseMIT

monorepo.ts.vue

Project with lerna + Storybook + Jest + Typescript + Vue-cli 3

include terms/tags that can be searched

Badges

lerna Storybook tested with jest jest Typed with TypeScript

Table of Contents (Optional)


Installation

Clone

  • Clone this repo to your local machine using https://github.com/evgeniy-logvinov/lerna.monorepo.ts.vue.git

Setup

  • If you want more syntax highlighting, format your code like this:

install packages first

$ npm install

Usage

  • Project contains installed lerna. Inside packages you can find HelloWorld project. This project contains jest for testing. You can add new project inside folder /packages/*.

  • To start unit tests for each projects inside /packages/* run:

    npm run test:unit
  • Also project contains storybook.

  • To start stroybook run next:

    npm run stroybook:serve
  • Please don't forget about files: shims-tsx.d.ts and shims-vue.d.ts. They can help you start project with typescript.

Tests

  • Use jest inside /packages/* for each project and add this line to your package.json file
    scripts: {
        "test:unit": "vue-cli-service test:unit --color"
    }

Support

Reach out to me at one of the following places!


License

License: MIT