Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/wingsuit-designsystem/wingsuit

Twig for Storybook
https://github.com/wingsuit-designsystem/wingsuit

storybook tailwindcss

Last synced: 2 days ago
JSON representation

Twig for Storybook

Awesome Lists containing this project

README

        



# Build bulletproof TWIG Components in Storybook

1. Describe, develop and test your Pattern in storybook with [twing](https://www.npmjs.com/package/twing).
1. Use the same pattern in Drupal with UI Patterns without any presenter pattern
1. Starterkits for:
* Tailwind + Alpinejs
* Boostrap + jQuery
1. Bundled Webpack base configuration to keep everything up to date.

## Documentation
Check out the Wingsuit documentation for more information..
## Prerequisites

- [Node `^12`](https://nodejs.org)
- [YARN `^1.19`](https://yarnpkg.com/)
- [PHP `^7.3.0`](https://php.net)

## Quickstart

1. To install run inside `themes/custom`:

```bash
npx @wingsuit-designsystem/cli init
```

1. Then `cd wingsuit/` and run:

#### NPM
To start storybook
```bash
npm run dev:storybook
```
To start drupal
```bash
npm run dev:drupal
```
#### YARN
To start storybook
```bash
yarn dev:storybook
```
To start drupal
```bash
yarn dev:drupal
```
## Generate new pattern
```bash
yarn ws generate-component
```
## Develop Wingsuit

### Help?
I am looking for help. You can ping me at [drupaltwig@Slack](https://drupaltwig.slack.com)

To develop Wingsuit you need `yarn`.
1. Clone repository:

```bash
git clone [email protected]:wingsuit-designsystem/wingsuit.git
cd wingsuit
yarn bootstrap
yarn dev
```

1. To start storybook `cd starter-kits/tailwind` and run:

```bash
yarn dev:storybook
```

1. To start drupal `cd starter-kits/tailwind` and run:

```bash
yarn dev:drupal
```

1. To build docs
```bash
yarn dev:drupal
```

## Running e2e tests

Tab 1
n

Tab 2
export CIRCLE_BRANCH=release-2-0
yarn config set registry http://localhost:6000
yarn test:e2e-framework