@mapbox/assembly 1.16.0 → 1.16.1-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -9
- package/dist/assembly.css.map +1 -1
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
# Assembly
|
|
2
2
|
|
|
3
|
-
<img width='200px' src='
|
|
3
|
+
<img width='200px' src='./assembly-logo.svg' alt="assembly logo">
|
|
4
4
|
|
|
5
5
|
A CSS framework that makes the hard parts of building anything on the web easy. We define the hard parts as: managing class specificity, designing cross-browser form components that work well with each other, creating a harmonious typographic scale, maintaining a baseline grid, and keeping responsive designs simple.
|
|
6
6
|
|
|
7
7
|
For usage guidelines and documentation, check out https://labs.mapbox.com/assembly/.
|
|
8
8
|
|
|
9
|
-
[](https://travis-ci.com/mapbox/assembly)
|
|
10
|
-
|
|
11
9
|
## Browser support
|
|
12
10
|
|
|
13
11
|
Assembly targets modern versions of Chrome, Firefox, Safari, and Edge on desktop; Safari on iOS; and Chrome on Android.
|
|
@@ -44,7 +42,7 @@ Assembly.buildUserAssets('path/to/my/outdir', myOptions)
|
|
|
44
42
|
- **`files`**: An array of file paths to stylesheets you would like to append to `assembly.css`. These will be processed through Assembly's PostCSS pipeline.
|
|
45
43
|
- **`variables`**: An object whose properties will override and add to `src/variables.json`. Use this option to change or add variables.
|
|
46
44
|
These variables are accessible in any stylesheets you append via the CSS custom properties syntax, e.g. `var(--property-name)`.
|
|
47
|
-
- **`mediaQueries`**: An object whose properties will override and add to `src/
|
|
45
|
+
- **`mediaQueries`**: An object whose properties will override and add to `src/media-queries.json`. Use this option to change or add media queries.
|
|
48
46
|
These media queries are accessible in any stylesheets you append via the CSS custom media query syntax, e.g. `@media --media-query-name`.
|
|
49
47
|
- **`colorVariants`**: An object or array specifying the color variants you would like added to `assembly.css`. This is documented in detail below.
|
|
50
48
|
- **`icons`**: An array of icons names to include in Assembly. Names correspond to file names in `src/svgs/`. Use this option to decrease the size of assembly.js by only including the icons you need.
|
|
@@ -122,7 +120,7 @@ Assembly strives for flat, single rule declarations and avoids overrides wheneve
|
|
|
122
120
|
|
|
123
121
|
- Keep names as short as reasonable.
|
|
124
122
|
- Use real number values in utility class names to describe the value the utility class applies _in cases where the number of utility classes describing a particular property could be unlimited_. For example, `.pt6` for `padding-top: 6px` instead an abstract scale like `.pt-small` or `.pt-1`.
|
|
125
|
-
- If the number of utility classes describing a property is limited and the variants are about size, Assembly classes use the suffixes `xl`, `l`, `m`, `s`, `
|
|
123
|
+
- If the number of utility classes describing a property is limited and the variants are about size, Assembly classes use the suffixes `xl`, `l`, `m`, `s`, `xs`.
|
|
126
124
|
- Assembly provides a reset that will affect the entire page, but other than that reset none of its rules should affect the styling of elements that don't bear Assembly classes.
|
|
127
125
|
|
|
128
126
|
### Media query class variants
|
|
@@ -167,7 +165,8 @@ Development is done in the `publisher-staging` branch, but releases are made fro
|
|
|
167
165
|
- Make sure all this is committed, typically with a commit message like `Prepare 0.8.0`.
|
|
168
166
|
- Merge these changes into the `publisher-production` branch. _Conduct the following steps from `publisher-production`_.
|
|
169
167
|
- From `publisher-production`:
|
|
170
|
-
- Create a tag
|
|
171
|
-
- Push the tag: `git push
|
|
172
|
-
-
|
|
173
|
-
-
|
|
168
|
+
- Create a tag matching the version, prefixed with `v`. For example: `git tag v0.8.0`.
|
|
169
|
+
- Push the tag: `git push origin v0.8.0`.
|
|
170
|
+
- This triggers the `NPM release` GitHub Actions workflow, which publishes to npm via [Trusted Publishing](https://docs.npmjs.com/trusted-publishers/) (OIDC) — no npm token needed.
|
|
171
|
+
- Tags containing `.dev` or `-dev` (e.g. `v0.8.0.dev.0`, `v0.8.0-dev.0`) publish under the npm `dev` dist-tag instead of `latest`, for testing a release without affecting `latest` consumers.
|
|
172
|
+
- Deploy the changes (`deploy.yml` runs automatically on push to `staging`/`production`). Talk to **@mapbox/frontend-platform** if you need help.
|