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 +4 -5
- package/package.json +1 -1
- package/template-nextjs/src/app/page.tsx +1 -1
- package/template-reactjs/src/App.tsx +1 -1
- package/test/README.md +28 -0
- package/test/eslint.config.js +28 -0
- package/test/index.html +19 -0
- package/test/package-lock.json +4155 -0
- package/test/package.json +34 -0
- package/test/postcss.config.js +6 -0
- package/test/public/favicon.ico +0 -0
- package/test/src/App.tsx +34 -0
- package/test/src/assets/revo.svg +4 -0
- package/test/src/components/dltme +0 -0
- package/test/src/index.css +17 -0
- package/test/src/main.tsx +15 -0
- package/test/src/vite-env.d.ts +1 -0
- package/test/tailwind.config.js +11 -0
- package/test/tsconfig.app.json +24 -0
- package/test/tsconfig.json +7 -0
- package/test/tsconfig.node.json +24 -0
- package/test/vite.config.ts +10 -0
- package/test2/README.md +36 -0
- package/test2/eslint.config.mjs +25 -0
- package/test2/next.config.ts +8 -0
- package/test2/package-lock.json +6193 -0
- package/test2/package.json +29 -0
- package/test2/postcss.config.mjs +5 -0
- package/test2/public/revo.svg +4 -0
- package/test2/src/app/components/dltme +0 -0
- package/test2/src/app/favicon.ico +0 -0
- package/test2/src/app/globals.css +21 -0
- package/test2/src/app/layout.tsx +34 -0
- package/test2/src/app/page.tsx +32 -0
- package/test2/tsconfig.json +27 -0
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(
|
|
263
|
+
console.log(`\nProject created at ${finalTargetDir}`);
|
|
265
264
|
process.chdir(finalTargetDir);
|
|
266
265
|
|
|
267
266
|
console.log("\nNext steps:");
|
|
268
|
-
console.log("1.
|
|
269
|
-
console.log("2.
|
|
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
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
|
+
)
|
package/test/index.html
ADDED
|
@@ -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>
|