tuix-webcomponents 0.0.25 → 0.0.26
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 +42 -18
- package/custom-elements.json +5380 -0
- package/dist/assets/tuix-styles.css +5 -4
- package/dist/src/tuix-icon/TuixIcon.icons.js +8 -0
- package/dist/src/tuix-icon/enums/tuix-icon.enums.d.ts +3 -1
- package/dist/src/tuix-icon/enums/tuix-icon.enums.js +2 -0
- package/dist/src/tuix-input/TuixInput.js +0 -3
- package/dist/src/tuix-input/TuixInput.styles.js +18 -7
- package/dist/src/utils/colors.d.ts +1 -0
- package/dist/src/utils/colors.js +1 -0
- package/dist/src/utils/darkColors.d.ts +4 -3
- package/dist/src/utils/darkColors.js +4 -3
- package/package.json +6 -12
package/README.md
CHANGED
|
@@ -12,8 +12,8 @@ npm i tuix-webcomponents
|
|
|
12
12
|
|
|
13
13
|
### Webbundle version
|
|
14
14
|
|
|
15
|
-
Webbundle Link: https://tuix-webcomponents.s3.eu-central-1.amazonaws.com/build-
|
|
16
|
-
Styles Link: https://tuix-webcomponents.s3.eu-central-1.amazonaws.com/build-
|
|
15
|
+
Webbundle Link: https://tuix-webcomponents.s3.eu-central-1.amazonaws.com/build-22f6faf@0.91.1.js
|
|
16
|
+
Styles Link: https://tuix-webcomponents.s3.eu-central-1.amazonaws.com/build-22f6faf@0.91.1.css
|
|
17
17
|
|
|
18
18
|
### React
|
|
19
19
|
|
|
@@ -88,8 +88,10 @@ and a page per component with live previews of every variant, in English and
|
|
|
88
88
|
German. Pages are MDX files in `docs/content/docs/` (`*.mdx` English,
|
|
89
89
|
`*.de.mdx` German), ordered by `meta.json` and `meta.de.json`.
|
|
90
90
|
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
The site is public-facing: it shows and documents the components, and carries no
|
|
92
|
+
contributor workflow. That lives here and in
|
|
93
|
+
`docs/src/modules/docs/README.md`, which covers how the site is put together —
|
|
94
|
+
content locations, the live previews, the framework selector and the locales.
|
|
93
95
|
|
|
94
96
|
## Building the package
|
|
95
97
|
|
|
@@ -120,6 +122,37 @@ tokens, and `tsc-esm-fix` adds the `.js` extensions Node's ESM resolver needs.
|
|
|
120
122
|
cannot ship a stale `dist/`. `npm run publish:local` packs the same output into
|
|
121
123
|
a linkable `local/` folder for trying it in another project.
|
|
122
124
|
|
|
125
|
+
## Releases
|
|
126
|
+
|
|
127
|
+
Releases are automatic, from CircleCI. `bin/publish.sh` takes the newest
|
|
128
|
+
`feat(`, `feat!(` or `fix(` subject out of the last ten commits and derives the
|
|
129
|
+
version from it:
|
|
130
|
+
|
|
131
|
+
| Commit prefix | Bump |
|
|
132
|
+
| ------------- | ----- |
|
|
133
|
+
| `feat!(` | major |
|
|
134
|
+
| `feat(` | minor |
|
|
135
|
+
| anything else | patch |
|
|
136
|
+
|
|
137
|
+
Commit subjects are linted by commitlint against
|
|
138
|
+
[Conventional Commits](https://www.conventionalcommits.org), so the prefix is
|
|
139
|
+
not optional.
|
|
140
|
+
|
|
141
|
+
The branch decides the dist-tag, and the two paths differ:
|
|
142
|
+
|
|
143
|
+
| Branch | Dist-tag | Version | Also does |
|
|
144
|
+
| ------------ | --------- | --------------------------------------------- | --------------------------------------------------------------------------- |
|
|
145
|
+
| `master` | `latest` | bumped from the commit subject, per the table | uploads the web bundle to S3, rewrites the two links below, tags `v<version>` |
|
|
146
|
+
| anything else| `staging` | always a patch bump off `staging` | uploads the web bundle to S3 |
|
|
147
|
+
|
|
148
|
+
Both paths build the bundle as `build-<short hash>@<version>.{js,css}` and
|
|
149
|
+
upload it, so every deployment is immutable. Only `latest` rewrites the
|
|
150
|
+
`Webbundle Link:` and `Styles Link:` lines under [Usage](#usage) and commits
|
|
151
|
+
them — which is why those two lines are the one place in the repository that
|
|
152
|
+
tracks the current bundle. `docs/scripts/build-bundle-links.ts` reads them at
|
|
153
|
+
docs build time rather than copying the URLs into a page, so the documentation
|
|
154
|
+
cannot fall a release behind.
|
|
155
|
+
|
|
123
156
|
## Linting and formatting
|
|
124
157
|
|
|
125
158
|
To scan the project for linting and formatting errors, run
|
|
@@ -152,11 +185,11 @@ That writes `dist/storybook`, which is where the deployed site serves it from.
|
|
|
152
185
|
The site root is the documentation, and the Storybook sidebar brand links back
|
|
153
186
|
to it. `scripts/build.sh` is what assembles both into `dist/` for CI.
|
|
154
187
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
188
|
+
Two builds, two folders, so neither clears the other: the site into `dist/`
|
|
189
|
+
(`scripts/build.sh` — Storybook under `dist/storybook`, the docs export at the
|
|
190
|
+
root) and the npm package into `package-build/` (`npm run build`). `dist/` is
|
|
191
|
+
reused for the package only by `npm run stage:package`, which runs in the
|
|
192
|
+
publish job.
|
|
160
193
|
|
|
161
194
|
|
|
162
195
|
## Tooling configs
|
|
@@ -164,12 +197,3 @@ by `npm run stage:package`, which runs in the publish job.
|
|
|
164
197
|
For most of the tools, the configuration is in the `package.json` to reduce the amount of files in your project.
|
|
165
198
|
|
|
166
199
|
If you customize the configuration a lot, you can consider moving them to individual files.
|
|
167
|
-
|
|
168
|
-
## Local Demo with `web-dev-server`
|
|
169
|
-
|
|
170
|
-
```bash
|
|
171
|
-
npm start
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
To run a local development server that serves the basic demo located in `demo/index.html`
|
|
175
|
-
|