@mapbox/assembly 1.16.0 → 1.16.1-dev.3

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 CHANGED
@@ -1,13 +1,11 @@
1
1
  # Assembly
2
2
 
3
- <img width='200px' src='https://rawgit.com/mapbox/assembly/publisher-staging/assembly-logo.svg?v1'>
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
- [![Build Status](https://travis-ci.com/mapbox/assembly.svg?branch=publisher-staging)](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/mediaQueries.json`. Use this option to change or add media queries.
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`, `sm`.
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
@@ -159,15 +157,15 @@ For other scripts, look in `package.json`.
159
157
 
160
158
  ### Releasing
161
159
 
162
- Development is done in the `publisher-staging` branch, but releases are made from the `publisher-production` branch. Here's how you cut a release:
163
-
164
- - From `publisher-staging`:
165
- - Document changes in the [`CHANGELOG`](https://github.com/mapbox/assembly/blob/publisher-staging/CHANGELOG.md).
166
- - Increment the version key in `package.json` and `package-lock.json`.
167
- - Make sure all this is committed, typically with a commit message like `Prepare 0.8.0`.
168
- - Merge these changes into the `publisher-production` branch. _Conduct the following steps from `publisher-production`_.
169
- - From `publisher-production`:
170
- - Create a tag. No message is necessary, since the changelog includes explanations of changes. For example: `git tag -a 0.8.0 -m ""`.
171
- - Push the tag: `git push --tags`.
172
- - Publish the new version on npm: `mbx npm publish`
173
- - Deploy the changes. Talk to **@mapbox/frontend-platform** if you need help.
160
+ Development and releases both happen on `main` (a single branch no more `publisher-staging`/`publisher-production` split). Here's how you cut a release:
161
+
162
+ - Document changes in the [`CHANGELOG`](https://github.com/mapbox/assembly/blob/main/CHANGELOG.md).
163
+ - Increment the version key in `package.json` and `package-lock.json`.
164
+ - Make sure all this is committed, typically with a commit message like `Prepare 0.8.0`, and merged to `main`.
165
+ - Create a tag matching the version, prefixed with `v`. For example: `git tag v0.8.0`.
166
+ - Push the tag: `git push origin v0.8.0`.
167
+ - This triggers two GitHub Actions workflows off the tag push:
168
+ - `NPM release`, which publishes to npm via [Trusted Publishing](https://docs.npmjs.com/trusted-publishers/) (OIDC) no npm token needed.
169
+ - `Deploy`, which uploads the versioned CDN build to `mapbox-assembly` (`scripts/deploy.js`) and syncs the docs site (`_site`) to `labs.mapbox.com`.
170
+ - Tags containing `.dev` or `-dev` (e.g. `v0.8.0.dev.0`, `v0.8.0-dev.0`) are dev releases: they publish under the npm `dev` dist-tag instead of `latest`, deploy the docs site to `labs.mapbox.com-staging` instead of production, and can be cut from any branch (not just `main`) for testing.
171
+ - Non-dev tags must point to a commit on `main`, or both workflows fail fast.