@hzblj/kara-expo-plugin 0.2.1 → 0.4.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @hzblj/kara-expo-plugin
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6e7903a`](https://github.com/hzblj/kara-ui/commit/6e7903afa3d3442e04a48a6e24399f9f03559a03) Thanks [@hzblj](https://github.com/hzblj)! - `npx kara-icons ./assets/icons` works without `--out` — it used to skip the folder and print its usage.
8
+
9
+ ## 0.3.0
10
+
3
11
  ## 0.2.1
4
12
 
5
13
  ### Patch Changes
package/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # @hzblj/kara-expo-plugin
2
2
 
3
- The optional Expo config plugin of kara-ui. It redefines UIKit semantic colours app-wide, natively, from a JSON file or inline values — `plugins: [['@hzblj/kara-ui', {iosSemanticColors: {file: './ios-colors.json'}}]]`.
3
+ The Expo config plugin of kara-ui: native icons from SVGs, iOS semantic colours.
4
4
 
5
- **Install [`@hzblj/kara-ui`](https://www.npmjs.com/package/@hzblj/kara-ui) instead.** This package is one of its building
6
- blocks, published so the umbrella can depend on it; it is versioned together with it and has no standalone docs.
5
+ Install [`@hzblj/kara-ui`](https://www.npmjs.com/package/@hzblj/kara-ui) instead — this is one of its building blocks.
7
6
 
8
7
  MIT
package/build/cli.js CHANGED
@@ -20,8 +20,9 @@ const USAGE = `Usage: kara-icons <source> [--out <file>]
20
20
  */
21
21
  const main = (args) => {
22
22
  const outIndex = args.indexOf('--out');
23
- const out = outIndex === -1 ? 'kara-icons.d.ts' : args[outIndex + 1];
24
- const source = args.find((arg, index) => !arg.startsWith('--') && index !== outIndex + 1);
23
+ const outValueIndex = outIndex === -1 ? -1 : outIndex + 1;
24
+ const out = outIndex === -1 ? 'kara-icons.d.ts' : args[outValueIndex];
25
+ const source = args.find((arg, index) => !arg.startsWith('--') && index !== outValueIndex);
25
26
  if (!source || !out || args.includes('--help')) {
26
27
  console.log(USAGE);
27
28
  return source ? 0 : 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hzblj/kara-expo-plugin",
3
- "version": "0.2.1",
3
+ "version": "0.4.0",
4
4
  "description": "The Expo config plugin and tooling of @hzblj/kara-ui: the app's SVG icons as native assets on iOS and Android, and UIKit semantic colour overrides.",
5
5
  "author": "Jan Blazej",
6
6
  "license": "MIT",