create-bestax 1.3.0 → 1.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.
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ star: string;
3
+ cross: string;
4
+ tick: string;
5
+ bullet: string;
6
+ pointer: string;
7
+ };
8
+ export default _default;
9
+ //# sourceMappingURL=figures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"figures.d.ts","sourceRoot":"","sources":["../../src/__mocks__/figures.ts"],"names":[],"mappings":";;;;;;;AAAA,wBAME"}
@@ -0,0 +1,7 @@
1
+ export default {
2
+ star: '⭐',
3
+ cross: '✖',
4
+ tick: '✔',
5
+ bullet: '●',
6
+ pointer: '❯',
7
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../src/display.ts"],"names":[],"mappings":"AAGA,wBAAgB,aAAa,IAAI,IAAI,CAMpC;AAED,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAmBtD;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAElD;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEjD;AAED,wBAAgB,gBAAgB,IAAI,IAAI,CAEvC"}
1
+ {"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../src/display.ts"],"names":[],"mappings":"AAIA,wBAAgB,aAAa,IAAI,IAAI,CAMpC;AAED,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAmBtD;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAElD;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEjD;AAED,wBAAgB,gBAAgB,IAAI,IAAI,CAEvC"}
package/dist/display.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import chalk from 'chalk';
2
+ import figures from 'figures';
2
3
  import { MESSAGES } from './constants.js';
3
4
  export function displayHeader() {
4
5
  console.log();
@@ -19,12 +20,12 @@ export function displaySuccess(targetDir) {
19
20
  console.log();
20
21
  console.log(chalk.dim(MESSAGES.HAPPY_CODING));
21
22
  console.log();
22
- console.log(chalk.yellow('⭐ If you enjoy using bestax-bulma, please star us on GitHub!'));
23
+ console.log(chalk.yellow(`${figures.star} If you enjoy using bestax-bulma, please star us on GitHub!`));
23
24
  console.log(chalk.dim(' https://github.com/allxsmith/bestax'));
24
25
  console.log();
25
26
  }
26
27
  export function displayError(message) {
27
- console.error(chalk.red(`✖ ${message}`));
28
+ console.error(chalk.red(`${figures.cross} ${message}`));
28
29
  }
29
30
  export function displayInfo(message) {
30
31
  console.log(chalk.yellow(message));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-bestax",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Create a new bestax-bulma project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -51,6 +51,7 @@
51
51
  "@allxsmith/bestax-bulma": "2.4.0",
52
52
  "chalk": "^5.3.0",
53
53
  "commander": "^12.0.0",
54
+ "figures": "^3.2.0",
54
55
  "fs-extra": "^11.2.0",
55
56
  "prompts": "^2.4.2"
56
57
  },