Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/applitools/tutorial-storybook-angular

This repo has the code for the demo app used in the Storybook Angular tutorial
https://github.com/applitools/tutorial-storybook-angular

Last synced: about 1 month ago
JSON representation

This repo has the code for the demo app used in the Storybook Angular tutorial

Awesome Lists containing this project

README

        

# Applitools Storybook Angular Tutorial

Please see [https://applitools.com/tutorials/storybook-angular.html](https://applitools.com/tutorials/storybook-angular.html)

## Creating a new Angular project, adding Storybook and adding Applitools SDK from scratch

### Create angular cli and create a sample project

- `sudo npm install -g @angular/cli`
- `ng new tutorial-storybook-angular`
- `cd tutorial-storybook-angular/`

### Add Storybook executable
Installs storybook executable. We can use this to automatically add Storybook deps and configs to existing projects

- `sudo npm i -g @storybook/cli` //The alpha versions are compatible with the latest Webpack 4 . Get either 4.0 alpha or later.
- `cd tutorial-storybook-angular`
- `storybook init` //this adds all the stuff we Storybook needs to the project
- `storybook start` //start storybook server

### Adding Applitools eyes
- `npm install @applitools/eyes.storybook@beta --save-dev` //Note `@beta` has some fixes as of this point. You don't need this after October 2018.
- `npx eyes-storybook`