create-revo 2.0.3 → 2.0.4

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/cli.js CHANGED
@@ -72,7 +72,7 @@ function copyTemplateFiles(templateType, projectName, targetDir) {
72
72
  process.exit(1);
73
73
  }
74
74
 
75
- console.log("\nSetting up project...");
75
+ console.log("\nSetting up project...\n");
76
76
 
77
77
  fs.mkdirSync(targetDir, { recursive: true });
78
78
 
@@ -84,7 +84,6 @@ function copyTemplateFiles(templateType, projectName, targetDir) {
84
84
 
85
85
  createGitignoreFile(targetDir);
86
86
 
87
- console.log(`Project setup complete.`);
88
87
  }
89
88
 
90
89
  function createGitignoreFile(projectDir) {
@@ -261,12 +260,12 @@ async function main() {
261
260
  const copyDurationMs = Date.now() - copyStartMs;
262
261
 
263
262
  console.log(`Time Taken - ${copyDurationMs}ms.`);
264
- console.log(`Project created successfully at ${finalTargetDir}`);
263
+ console.log(`\nProject created at ${finalTargetDir}`);
265
264
  process.chdir(finalTargetDir);
266
265
 
267
266
  console.log("\nNext steps:");
268
- console.log("1. Run: npm install");
269
- console.log("2. Run: npm run dev");
267
+ console.log("1. npm install");
268
+ console.log("2. npm run dev");
270
269
  } catch (error) {
271
270
  console.error("Error creating project:", error.message);
272
271
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-revo",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "Project setup tool for ReactJS and NextJS",
5
5
  "main": "cli.js",
6
6
  "bin": {
@@ -20,7 +20,7 @@ export default function Home() {
20
20
  your project is ready to go
21
21
  </p>
22
22
  <p className="text-black/80 text-xs tracking-wide">
23
- setup in under 500ms
23
+ setup in under 50ms
24
24
  </p>
25
25
  </div>
26
26
  </div>
@@ -20,7 +20,7 @@ function App() {
20
20
  your project is ready to go
21
21
  </p>
22
22
  <p className="text-black/80 text-xs tracking-wide">
23
- setup in under 500ms
23
+ setup in under 50ms
24
24
  </p>
25
25
  </div>
26
26
  </div>
package/test/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # test
2
+
3
+ This is a React project bootstrapped with [`create-revo`](https://www.npmjs.com/package/create-revo).
4
+
5
+ ## Getting Started
6
+
7
+ First, run the development server:
8
+
9
+ ```bash
10
+ npm run dev
11
+ ```
12
+
13
+ Open [http://localhost:5173](http://localhost:5173) with your browser to see the result.
14
+
15
+ ## Features
16
+
17
+ - ⚡ Vite for fast development
18
+ - ⚛️ React 18 with TypeScript
19
+ - 🎨 Tailwind CSS for styling
20
+ - 🔧 ESLint for code quality
21
+ - 🚀 Motion for animations
22
+
23
+ ## Learn More
24
+
25
+ To learn more about React, take a look at the following resources:
26
+
27
+ - [React Documentation](https://react.dev) - learn about React features and API.
28
+ - [Vite Documentation](https://vitejs.dev) - learn about Vite features and configuration.
@@ -0,0 +1,28 @@
1
+ import js from '@eslint/js'
2
+ import globals from 'globals'
3
+ import reactHooks from 'eslint-plugin-react-hooks'
4
+ import reactRefresh from 'eslint-plugin-react-refresh'
5
+ import tseslint from 'typescript-eslint'
6
+
7
+ export default tseslint.config(
8
+ { ignores: ['dist'] },
9
+ {
10
+ extends: [js.configs.recommended, ...tseslint.configs.recommended],
11
+ files: ['**/*.{ts,tsx}'],
12
+ languageOptions: {
13
+ ecmaVersion: 2020,
14
+ globals: globals.browser,
15
+ },
16
+ plugins: {
17
+ 'react-hooks': reactHooks,
18
+ 'react-refresh': reactRefresh,
19
+ },
20
+ rules: {
21
+ ...reactHooks.configs.recommended.rules,
22
+ 'react-refresh/only-export-components': [
23
+ 'warn',
24
+ { allowConstantExport: true },
25
+ ],
26
+ },
27
+ },
28
+ )
@@ -0,0 +1,19 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/x-icon" href="/favicon.ico" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>revo</title>
8
+ <meta name="author" content="Tarun Gupta" />
9
+ <!-- <meta name="keywords" content="" /> -->
10
+ <!-- <meta name="description" content=""/> -->
11
+ <!-- <meta property="og:image" content="" /> -->
12
+ <!-- <meta property="og:title" content="" /> -->
13
+ <!-- <meta property="og:description" content="" /> -->
14
+ </head>
15
+ <body>
16
+ <div id="root"></div>
17
+ <script type="module" src="/src/main.tsx"></script>
18
+ </body>
19
+ </html>