@ngcorex/cli 0.1.2 → 0.1.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,5 +1,7 @@
1
1
  # @ngcorex/cli
2
2
 
3
+ ![NPM Version](https://img.shields.io/npm/v/%40ngcorex%2Fcli?style=flat-square&logo=npm&labelColor=%23D50100&color=%23000) ![NPM License](https://img.shields.io/npm/l/%40ngcorex%2Fcli?style=flat-square) ![Static Badge](https://img.shields.io/badge/Github-Repo-blue?style=flat-square&logo=github) ![NPM Downloads](https://img.shields.io/npm/dm/%40ngcorex%2Fcli?style=flat-square&logo=npm&logoColor=%23ffffff&labelColor=%23D50100&color=%23000)
4
+
3
5
  Command-line interface for **ngCorex**.
4
6
 
5
7
  This package provides the `ngcorex` CLI used to build CSS from an
@@ -5,6 +5,7 @@ import { loadConfig } from '../config/load-config.js';
5
5
  import { writeCss } from '../output/write-css.js';
6
6
  import { buildCssFromConfig } from '@ngcorex/css';
7
7
  import { resolve } from 'node:path';
8
+ let hasShownInlineTokenNotice = false;
8
9
  export async function runBuild(options = {}) {
9
10
  const configPath = resolveConfigPath();
10
11
  const config = await loadConfig(configPath);
@@ -134,6 +135,15 @@ export async function runBuild(options = {}) {
134
135
  tokens: fileTokens
135
136
  }
136
137
  : config;
138
+ if (!fileTokens &&
139
+ config.tokens &&
140
+ !hasShownInlineTokenNotice) {
141
+ console.info('');
142
+ console.info('ℹ️ Inline tokens detected.');
143
+ console.info(' Using tokens.json is recommended for larger or shared projects.');
144
+ console.info('');
145
+ hasShownInlineTokenNotice = true;
146
+ }
137
147
  const css = buildCssFromConfig(effectiveConfig);
138
148
  console.log('✔ Generated CSS');
139
149
  writeCss(outputPath, css, { dryRun: options.dryRun });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngcorex/cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "CLI for ngCorex - Angular-native design token engine",
5
5
  "keywords": [
6
6
  "design-tokens",
@@ -30,5 +30,12 @@
30
30
  ],
31
31
  "scripts": {
32
32
  "build": "tsc -p tsconfig.json"
33
- }
33
+ },
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "https://github.com/arkdezin/ngCorex.git",
37
+ "directory": "packages/cli"
38
+ },
39
+
40
+ "homepage": "https://github.com/arkdezin/ngCorex"
34
41
  }