create-spfx-tailwind-app 1.0.13 โ†’ 1.0.16

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.
Files changed (3) hide show
  1. package/Readme.md +4 -4
  2. package/index.js +12 -0
  3. package/package.json +2 -2
package/Readme.md CHANGED
@@ -5,9 +5,9 @@
5
5
 
6
6
  npx create-spfx-tailwind-app MyProject
7
7
 
8
- ![npm version](https://img.shields.io/npm/v/create-spfx-tailwind-app-v1)
9
- ![npm downloads](https://img.shields.io/npm/dt/create-spfx-tailwind-app-v1)
10
- ![license](https://img.shields.io/npm/l/create-spfx-tailwind-app-v1)
8
+ ![npm version](https://img.shields.io/npm/v/create-spfx-tailwind-app)
9
+ ![npm downloads](https://img.shields.io/npm/dt/create-spfx-tailwind-app)
10
+ ![license](https://img.shields.io/npm/l/create-spfx-tailwind-app)
11
11
  ![SPFx](https://img.shields.io/badge/SPFx-1.22+-green)
12
12
 
13
13
  A modern CLI tool to scaffold **SharePoint Framework (SPFx)** projects
@@ -40,7 +40,7 @@ npx create-spfx-tailwind-app MyProject
40
40
 
41
41
  ``` bash
42
42
  npm install -g create-spfx-tailwind-app
43
- create-spfx-app MyProject
43
+ create-spfx-tailwind-app MyProject
44
44
  ```
45
45
 
46
46
  ------------------------------------------------------------------------
package/index.js CHANGED
@@ -8,6 +8,8 @@ const ora = require("ora");
8
8
  const inquirer = require("inquirer");
9
9
  const figlet = require("figlet");
10
10
  const gradient = require("gradient-string").default;
11
+ const setupPath = path.join(targetDir, "setup.js");
12
+
11
13
 
12
14
  // ๐ŸŽจ Banner
13
15
 
@@ -63,6 +65,15 @@ async function run() {
63
65
 
64
66
  spinner.succeed(chalk.green("โœ” Project setup complete"));
65
67
 
68
+ try {
69
+ if (fs.existsSync(setupPath)) {
70
+ fs.unlinkSync(setupPath);
71
+ // console.log(chalk.gray("๐Ÿงน setup.js removed"));
72
+ }
73
+ } catch (err) {
74
+ console.log(chalk.yellow("โš ๏ธ Could not remove setup.js"));
75
+ }
76
+
66
77
  // ๐Ÿ” detect Tailwind support
67
78
  let hasTailwind = false;
68
79
  try {
@@ -127,6 +138,7 @@ async function run() {
127
138
  }
128
139
 
129
140
  console.log("\n" + chalk.gray("Happy coding ๐Ÿš€\n"));
141
+
130
142
  } catch (err) {
131
143
  console.log(chalk.red("\nโŒ Something went wrong\n"));
132
144
  console.error(err);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "engines": {
4
4
  "node": ">=22"
5
5
  },
6
- "version": "1.0.13",
6
+ "version": "1.0.16",
7
7
  "main": "index.js",
8
8
  "scripts": {
9
9
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "homepage": "https://github.com/deependrasingh002/create-spfx-tailwind-app.git",
32
32
  "bin": {
33
- "create-spfx-app": "./index.js"
33
+ "create-spfx-tailwind-app": "./index.js"
34
34
  },
35
35
  "dependencies": {
36
36
  "chalk": "^4.1.2",