In Version`Wingsuit V1 PostCss8 and Jit compiler becomes default.
To upgrade your existing project:
Step 1:
yarn add -D @storybook/addon-postcss
yarn add -D @wingsuit-designsystem/preset-postcss8
yarn add @tailwindcss/jit
# Replace
"tailwindcss": "npm:@tailwindcss/postcss7-compat"
with:
"tailwindcss": "^2.0.4"
Step 2:
- Add
@wingsuit-designsystem/preset-postcss8
to yourwingsuit.config.js
- Follow PostCss instructions from https://storybook.js.org/addons/@storybook/addon-postcss
Step 3:
Adjust your postcss config. See https://github.com/wingsuit-designsystem/wingsuit/blob/master/starter-kits/tailwind/postcss.config.js
Breaking changes:
- From knobs to controls:
Replace
@storybook/addon-knobs
to@storybook/addon-controls
in your apps/storybook/main.js - Twig functions
pattern_preview
andpattern
are now compatible with UI Patterns functions The arguments order changed frompattern, variant, variables
topattern, variable, variant
. So search for allpattern_preview
andpattern
methods and reorder the variables.
- Describe, develop and test your Pattern in storybook with twing.
- Use the same pattern in Drupal with UI Patterns without any presenter pattern
- Starterkits for:
- Tailwind + Alpinejs
- Boostrap + jQuery
- Bundled Webpack base configuration to keep everything up to date.
Check out the Wingsuit documentation for more information.
- To install run inside
themes/custom
:
npx @wingsuit-designsystem/cli init
- Then
cd wingsuit/
and run:
To start storybook
npm run dev:storybook
To start drupal
npm run dev:drupal
To start storybook
yarn dev:storybook
To start drupal
yarn dev:drupal
yarn ws generate-component
I am looking for help. You can ping me at drupaltwig@Slack
To develop Wingsuit you need yarn
.
- Clone repository:
git clone git@github.com:wingsuit-designsystem/wingsuit.git
cd wingsuit
yarn bootstrap
yarn dev
- To start storybook
cd starter-kits/tailwind
and run:
yarn dev:storybook
- To start drupal
cd starter-kits/tailwind
and run:
yarn dev:drupal
- To build docs
yarn dev:drupal