create-ng-tailwind 1.0.0 → 2.0.2

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,109 @@
1
+ const chalk = require("chalk");
2
+ const ora = require("ora");
3
+ const inquirer = require("inquirer");
4
+
5
+ class Logger {
6
+ constructor() {
7
+ this.spinners = new Map();
8
+ }
9
+
10
+ welcome() {
11
+ console.log(
12
+ chalk.cyan.bold("\nšŸš€ Create Angular + Tailwind CSS Project\n"),
13
+ );
14
+ }
15
+
16
+ success(config) {
17
+ console.log(chalk.green.bold("\nāœ… Success!") + chalk.white(" Created ") + chalk.cyan.bold(config.projectName));
18
+ console.log();
19
+
20
+ // Show starter template features
21
+ if (config.template === 'starter') {
22
+ console.log(chalk.white(" Includes:"));
23
+ console.log(chalk.white(" • HTTP Interceptors (Auth, Error, Loading, Cache)"));
24
+ console.log(chalk.white(" • i18n (English/Arabic), Toast, Modal, PWA"));
25
+ console.log(chalk.white(" • Auth UI, Shared components, Guards, Pipes"));
26
+ console.log();
27
+ }
28
+
29
+ // Next Steps
30
+ console.log(chalk.white(" Inside that directory, you can run:"));
31
+ console.log();
32
+ console.log(chalk.cyan(" ng serve"));
33
+ console.log(chalk.white(" Starts the development server"));
34
+ console.log();
35
+ console.log(chalk.cyan(" ng build"));
36
+ console.log(chalk.white(" Builds the app for production"));
37
+ console.log();
38
+ console.log(chalk.cyan(" ng test"));
39
+ console.log(chalk.white(" Runs the test suite"));
40
+ console.log();
41
+
42
+ // Getting Started
43
+ console.log(chalk.white(" We suggest that you begin by typing:"));
44
+ console.log();
45
+ console.log(chalk.cyan(" cd") + chalk.white(" " + config.projectName));
46
+
47
+ if (config.skipInstall) {
48
+ console.log(chalk.cyan(" npm install"));
49
+ }
50
+
51
+ console.log(chalk.cyan(" ng serve"));
52
+ console.log();
53
+ console.log(chalk.white(" Happy coding! šŸŽ‰"));
54
+ console.log();
55
+ }
56
+
57
+ error(message, error) {
58
+ console.error(chalk.red(`\nāŒ ${message}`));
59
+ if (error) {
60
+ console.error(chalk.red(error.message));
61
+ if (error.stack && process.env.DEBUG) {
62
+ console.error(chalk.gray(error.stack));
63
+ }
64
+ }
65
+ }
66
+
67
+ info(message) {
68
+ console.log(chalk.blue(`ℹ ${message}`));
69
+ }
70
+
71
+ warn(message) {
72
+ console.log(chalk.yellow(`⚠ ${message}`));
73
+ }
74
+
75
+ spinner(text) {
76
+ const id = Date.now().toString();
77
+ const spinner = ora(text).start();
78
+ this.spinners.set(id, spinner);
79
+ return {
80
+ succeed: (msg) => {
81
+ spinner.succeed(msg);
82
+ this.spinners.delete(id);
83
+ },
84
+ fail: (msg) => {
85
+ spinner.fail(msg);
86
+ this.spinners.delete(id);
87
+ },
88
+ update: (msg) => {
89
+ spinner.text = msg;
90
+ },
91
+ stop: () => {
92
+ spinner.stop();
93
+ },
94
+ start: () => {
95
+ spinner.start();
96
+ },
97
+ };
98
+ }
99
+
100
+ async prompt(questions) {
101
+ return await inquirer.prompt(questions);
102
+ }
103
+ }
104
+
105
+ function createLogger() {
106
+ return new Logger();
107
+ }
108
+
109
+ module.exports = { Logger, createLogger };
package/package.json CHANGED
@@ -1,19 +1,15 @@
1
1
  {
2
2
  "name": "create-ng-tailwind",
3
- "version": "1.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "šŸš€ Create Angular projects with Tailwind CSS in seconds - Zero configuration, modern setup, beautiful starter templates",
5
5
  "main": "bin/create-ng-tailwind.js",
6
6
  "bin": {
7
7
  "create-ng-tailwind": "./bin/create-ng-tailwind.js"
8
8
  },
9
9
  "scripts": {
10
- "test": "node test.js",
11
10
  "dev": "node bin/create-ng-tailwind.js",
12
- "prepublishOnly": "npm run test",
13
- "clean": "rm -rf test-output",
14
- "lint": "echo 'Linting...' && echo 'All good!'",
15
11
  "demo": "npm run dev demo-project",
16
- "validate": "npm run test && npm run lint"
12
+ "clean": "rm -rf demo-project test-* my-*"
17
13
  },
18
14
  "keywords": [
19
15
  "angular",
@@ -42,14 +38,7 @@
42
38
  "url": "https://github.com/TEHSEENULLAH786"
43
39
  },
44
40
  "license": "MIT",
45
- "homepage": "https://github.com/TEHSEENULLAH786/create-ng-tailwind#readme",
46
- "repository": {
47
- "type": "git",
48
- "url": "https://github.com/TEHSEENULLAH786/create-ng-tailwind.git"
49
- },
50
- "bugs": {
51
- "url": "https://github.com/TEHSEENULLAH786/create-ng-tailwind/issues"
52
- },
41
+ "homepage": "https://www.npmjs.com/package/create-ng-tailwind",
53
42
  "engines": {
54
43
  "node": ">=18.0.0",
55
44
  "npm": ">=8.0.0"
@@ -61,9 +50,11 @@
61
50
  ],
62
51
  "files": [
63
52
  "bin/",
53
+ "lib/",
64
54
  "README.md",
65
55
  "LICENSE",
66
- "CHANGELOG.md"
56
+ "CHANGELOG.md",
57
+ "CLAUDE.md"
67
58
  ],
68
59
  "dependencies": {
69
60
  "chalk": "^4.1.2",