@spark-ui/cli-utils 2.0.6 → 2.1.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
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.1.0](https://github.com/adevinta/spark/compare/@spark-ui/cli-utils@2.0.7...@spark-ui/cli-utils@2.1.0) (2023-02-24)
7
+
8
+ ### Features
9
+
10
+ - **cli-utils:** flattened cli args for theme config ([ccb13de](https://github.com/adevinta/spark/commit/ccb13de785f2d6d2f8893bdff83b032af6416a38))
11
+
12
+ ## [2.0.7](https://github.com/adevinta/spark/compare/@spark-ui/cli-utils@2.0.6...@spark-ui/cli-utils@2.0.7) (2023-02-24)
13
+
14
+ ### Bug Fixes
15
+
16
+ - **cli-utils:** small tweaks ([e83ff63](https://github.com/adevinta/spark/commit/e83ff634a212163d2a102d091b66c2c810d90387))
17
+
6
18
  ## [2.0.6](https://github.com/adevinta/spark/compare/@spark-ui/cli-utils@2.0.5...@spark-ui/cli-utils@2.0.6) (2023-02-24)
7
19
 
8
20
  **Note:** Version bump only for package @spark-ui/cli-utils
@@ -9,7 +9,7 @@ import { Logger, System } from '../src/core/index.mjs'
9
9
  import {
10
10
  createCSSTokensFile,
11
11
  createTailwindThemeConfigFile,
12
- } from '../src/setup-theme/utils/index.js'
12
+ } from '../src/setup-themes/utils/index.js'
13
13
 
14
14
  const logger = new Logger()
15
15
  const system = new System({ logger })
@@ -45,10 +45,10 @@ if (!configFileIsMJS) writeFileSync(jsFilePath, jsFileContents)
45
45
 
46
46
  import(jsFilePath)
47
47
  .then(module => {
48
- const { tailwindThemeConfigFilePath, CSSTokens } = module.default
48
+ const { tailwindThemeConfigPath, tailwindCSSPath, themes } = module.default
49
49
 
50
- createTailwindThemeConfigFile(tailwindThemeConfigFilePath)
51
- createCSSTokensFile(CSSTokens.filePath, CSSTokens.themes)
50
+ createTailwindThemeConfigFile(tailwindThemeConfigPath)
51
+ createCSSTokensFile(tailwindCSSPath, themes)
52
52
 
53
53
  const child = spawn(process.execPath, [jsFilePath], {
54
54
  stdio: 'inherit',
@@ -59,14 +59,14 @@ import(jsFilePath)
59
59
  logger.success(
60
60
  `✨ Your Spark Tailwind theme config file has been successfully created: ${join(
61
61
  process.cwd(),
62
- tailwindThemeConfigFilePath
62
+ tailwindThemeConfigPath
63
63
  )}`
64
64
  )
65
65
 
66
66
  logger.success(
67
67
  `✨ Your Spark Tailwind CSS Tokens file file has been successfully created: ${join(
68
68
  process.cwd(),
69
- CSSTokens.filePath
69
+ tailwindCSSPath
70
70
  )}`
71
71
  )
72
72
 
package/bin/spark.mjs CHANGED
@@ -9,6 +9,6 @@ const { version } = require('../package.json')
9
9
  program.version(version, '--version')
10
10
 
11
11
  program.command('generate <component>', 'Generate a component scaffolding').alias('g')
12
- program.command('setup-theme', 'Set up Spark theming configuration')
12
+ program.command('setup-themes', 'Set up Spark theming configuration')
13
13
 
14
14
  program.parse(process.argv)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spark-ui/cli-utils",
3
- "version": "2.0.6",
3
+ "version": "2.1.0",
4
4
  "description": "Spark CLI utils",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -8,12 +8,12 @@
8
8
  "bin": {
9
9
  "spark": "./bin/spark.mjs",
10
10
  "spark-generate": "./bin/spark-generate.mjs",
11
- "spark-setup-theme": "./bin/spark-setup-theme.mjs"
11
+ "spark-setup-themes": "./bin/spark-setup-themes.mjs"
12
12
  },
13
13
  "type": "module",
14
14
  "dependencies": {
15
15
  "@clack/prompts": "0.2.2",
16
- "@spark-ui/theme-utils": "^2.3.2",
16
+ "@spark-ui/theme-utils": "^2.4.0",
17
17
  "camel-case": "4.1.2",
18
18
  "chalk": "5.2.0",
19
19
  "commander": "10.0.0",
@@ -29,5 +29,5 @@
29
29
  "url": "git@github.com:adevinta/spark.git",
30
30
  "directory": "packages/utils/cli"
31
31
  },
32
- "gitHead": "fc8db19776d0ae0c45aebe2f85931a2d19f00ca3"
32
+ "gitHead": "f21e13f33295a0f0c73726c2f46732993bdf9d72"
33
33
  }
@@ -53,5 +53,5 @@ Then, a command prompt will guide you through the process by asking you for:
53
53
  </Alert>
54
54
 
55
55
  ```bash
56
- $ spark setup-theme
56
+ $ spark setup-themes
57
57
  ```