|
2 | 2 |
|
3 | 3 | # Cloud Four Patterns 🚧
|
4 | 4 |
|
5 |
| -[](https://app.netlify.com/sites/cloudfour-patterns/deploys?filter=v-next) |
| 5 | +[](https://www.npmjs.org/package/@cloudfour/patterns) [](https://github.com/cloudfour/cloudfour.com-patterns/actions?query=workflow%3ACI) [](https://renovatebot.com/) [](https://app.netlify.com/sites/cloudfour-patterns/deploys?filter=v-next) |
6 | 6 |
|
7 |
| -You are currently viewing the `v-next` branch. This represents a significant refactor of our environment and coding standards. It is a work in progress and not yet ready for use. |
| 7 | +🚨 **You are currently viewing the `v-next` branch.** This represents a significant refactor of our environment and coding standards. It is a work in progress and not yet ready for use. |
8 | 8 |
|
9 | 9 | If you’re looking for the most stable version of our pattern library, check out [the `master` branch](https://github.com/cloudfour/cloudfour.com-patterns/tree/master).
|
10 | 10 |
|
11 | 11 | [View Netlify Preview →](https://v-next--cloudfour-patterns.netlify.com/)
|
12 | 12 |
|
13 |
| -## Getting Started |
| 13 | +## Installation |
14 | 14 |
|
15 |
| -1. `npm ci` |
16 |
| -1. `npm run storybook` |
| 15 | +<!--- |
| 16 | + note that this content is duplicated between readme.md and welcome.stories.mdx |
| 17 | + be sure to make any changes to both files! |
| 18 | +--> |
17 | 19 |
|
18 |
| -## Building |
| 20 | +The package includes both the compiled code and the source files. So you can either include the compiled CSS and JS directly, or load the source files using your own build system. If you use the source files, you'll need to compile them yourself using Sass and PostCSS. |
19 | 21 |
|
20 |
| -- `npm run build` Builds CSS+JS for npm package |
21 |
| -- `npm run build-storybook` Creates a static storybook site build, for example for publishing the pattern library to Netlify |
22 |
| - |
23 |
| -## Project Structure |
| 22 | +You can add the pattern library package as a dependency to your JavaScript application using npm: |
24 | 23 |
|
25 | 24 | ```
|
26 |
| -cloudfour.com-patterns |
27 |
| -├── .github # GitHub workflows and templates |
28 |
| -├── .storybook |
29 |
| -│ ├── main.js # Settings for Storybook UI |
30 |
| -│ └── preview.js # Settings for story previews |
31 |
| -├── .theo # Settings for design token processing |
32 |
| -├── gulpfile.js |
33 |
| -│ └── tasks/*.js # Complex build tasks |
34 |
| -├── src |
35 |
| -│ ├── **/*.scss # Styles (Sass) |
36 |
| -│ ├── **/*.stories.mdx # Documentation (Storybook Docs) |
37 |
| -│ ├── **/*.twig # Templates (Twig) |
38 |
| -│ └── **/*.yml # Design tokens (Theo) |
39 |
| -├── .editorconfig # Low-level code consistency |
40 |
| -├── .nvmrc # Node version (used by Netlify) |
41 |
| -├── .svgo.yml # Inline SVG optimization settings |
42 |
| -├── README.md # ⬅️ You are here! |
43 |
| -├── netlify.toml # Netlify build settings |
44 |
| -└── package.json # Project info and dependencies |
| 25 | +npm install @cloudfour/patterns |
45 | 26 | ```
|
0 commit comments