Skip to content

Commit

Permalink
Merge pull request #417 from aXenDeveloper/clone_repo_for_create_vitn…
Browse files Browse the repository at this point in the history
…ode_app

feat: Add clone repo to create-vitnode-app
  • Loading branch information
aXenDeveloper authored Jul 18, 2024
2 parents 2eb45bb + 1988cb1 commit 7a6eee3
Show file tree
Hide file tree
Showing 97 changed files with 2,959 additions and 3,267 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
node_modules
dist
.env
docker
/docker
.turbo
tsconfig.tsbuildinfo
11 changes: 11 additions & 0 deletions .prettierrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import vitnodePrettier from "eslint-config-typescript-vitnode/prettierrc.mjs";

/**
* @see https://prettier.io/docs/en/configuration.html
* @type {import("prettier").Config}
*/
const config = {
...vitnodePrettier,
};

export default config;
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,13 @@ or
pnpm create vitnode-app@latest
```

or

```bash
yarn create vitnode-app@latest
```

## Requirements

| 📦 Package Manager | Minimum | Recommended |
| :----------------- | :------ | :---------- |
| npm | 7 | 9 |
| pnpm | 8 | 9 |

| 🛠️ Software | Minimum | Recommended |
| :---------- | :------ | :---------- |
| Node.js | 18 | 20 |
Expand Down
14 changes: 6 additions & 8 deletions apps/backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "backend",
"version": "0.0.7-canary.21",
"version": "0.0.7-canary.46",
"license": "MIT",
"scripts": {
"config:init": "vitnode-backend init",
Expand All @@ -23,8 +23,8 @@
"@nestjs/schedule": "^4.1.0",
"@nestjs/serve-static": "^4.0.2",
"pg": "^8.12.0",
"react": "^18",
"react-dom": "^18",
"react": "^19.0.0-rc.0",
"react-dom": "^19.0.0-rc.0",
"reflect-metadata": "^0.2.2",
"rxjs": "^7.8.1"
},
Expand All @@ -39,16 +39,14 @@
"@swc/cli": "^0.4.0",
"@swc/core": "^1.6.13",
"@types/express": "^4.17.21",
"@types/node": "^20",
"@types/node": "^20.14.11",
"@types/pg": "^8.11.6",
"@types/react": "^18",
"@types/react": "^18.3.3",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"cross-env": "^7.0.3",
"drizzle-kit": "^0.22.8",
"drizzle-orm": "^0.31.4",
"eslint": "^8.57.0",
"eslint-config-typescript-vitnode": "workspace:*",
"object-path": "^0.11.8",
Expand All @@ -57,7 +55,7 @@
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^5",
"typescript": "^5.5.3",
"vitnode-backend": "workspace:*",
"vitnode-shared": "workspace:*"
}
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/dev/contribution.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Thank you so much if you are here. That's meen you want to contribute to this pr
Before you start, please read the fiew rules:

1. Please use only English in this project _(Except translations)_,
2. Use only the `pnpm` for package manager,
2. Use only the `pnpm 9` for package manager,
3. Don't use any other packages from `npm`. If you want to use something, please open an discution [here](https://github.com/aXenDeveloper/vitnode/discussions/categories/ideas)

## Requirements
Expand Down
6 changes: 1 addition & 5 deletions apps/docs/content/docs/dev/cron.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install package in `backend` directory.

import { Tab, Tabs } from 'fumadocs-ui/components/tabs';

<Tabs id='package-manager' persist items={['pnpm', 'npm', 'yarn']}>
<Tabs id='package-manager' persist items={['pnpm', 'npm']}>

```bash tab="pnpm"
pnpm i @nestjs/schedule
Expand All @@ -21,10 +21,6 @@ pnpm i @nestjs/schedule
npm i @nestjs/schedule
```

```bash tab="yarn"
yarn add @nestjs/schedule
```

</Tabs>

## Usage
Expand Down
6 changes: 1 addition & 5 deletions apps/docs/content/docs/dev/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';

Create a new app with `create-vitnode-app`, it requires NodeJS 20+.

<Tabs id='package-manager' persist items={['pnpm', 'npm', 'yarn']}>
<Tabs id='package-manager' persist items={['pnpm', 'npm']}>

```bash tab="pnpm"
pnpm create vitnode-app@latest
Expand All @@ -28,10 +28,6 @@ pnpm create vitnode-app@latest
npx create-vitnode-app@latest
```

```bash tab="yarn"
yarn create vitnode-app@latest
```

</Tabs>

### Requirements
Expand Down
6 changes: 1 addition & 5 deletions apps/docs/content/docs/ui/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';

Create a new app with `create-vitnode-app`, it requires NodeJS 20+.

<Tabs id='package-manager' persist items={['pnpm', 'npm', 'yarn']}>
<Tabs id='package-manager' persist items={['pnpm', 'npm']}>

```bash tab="pnpm"
pnpm create vitnode-app@latest
Expand All @@ -28,10 +28,6 @@ pnpm create vitnode-app@latest
npx create-vitnode-app@latest
```

```bash tab="yarn"
yarn create vitnode-app@latest
```

</Tabs>

## FAQ
Expand Down
12 changes: 6 additions & 6 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docs",
"version": "0.0.7-canary.21",
"version": "0.0.7-canary.46",
"private": true,
"scripts": {
"dev:docs": "next dev --port 3030",
Expand All @@ -15,18 +15,18 @@
"geist": "^1.3.0",
"lucide-react": "^0.403.0",
"next": "^14.2.4",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react": "^19.0.0-rc.0",
"react-dom": "^19.0.0-rc.0",
"tailwind-merge": "^2.3.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/mdx": "^2.0.13",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.19",
"postcss": "^8.4.39",
"tailwindcss": "^3.4.4",
"typescript": "^5"
"typescript": "^5.5.3"
}
}
2 changes: 1 addition & 1 deletion apps/frontend/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/eslintrc",
"extends": ["eslint-config-typescript-vitnode/.eslintrc.react.json"],
"ignorePatterns": ["next-config-temp.js"]
"root": true
}
5 changes: 1 addition & 4 deletions apps/frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,4 @@ yarn-error.log*

# typescript
*.tsbuildinfo
next-env.d.ts

/public/assets
/public/uploads
next-env.d.ts
57 changes: 0 additions & 57 deletions apps/frontend/next-config-temp.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NextConfig } from 'next';
import VitNodeConfig from 'vitnode-frontend/next.config';

const nextConfig: NextConfig = {};
/** @type {import('next').NextConfig} */
const nextConfig = {};

export default VitNodeConfig(nextConfig);
22 changes: 11 additions & 11 deletions apps/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "frontend",
"version": "0.0.7-canary.21",
"version": "0.0.7-canary.46",
"author": "Maciej Piotr (aXenDev) Balcerzak",
"license": "GPL-3.0 license",
"scripts": {
Expand All @@ -17,23 +17,23 @@
},
"dependencies": {
"geist": "^1.3.1",
"next": "15.0.0-canary.63",
"next-intl": "^3.15.5",
"react": "19.0.0-rc.0",
"react-dom": "19.0.0-rc.0",
"next": "15.0.0-canary.72",
"next-intl": "^3.17.1",
"react": "^19.0.0-rc.0",
"react-dom": "^19.0.0-rc.0",
"vitnode-frontend": "workspace:*",
"vitnode-shared": "workspace:*"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/node": "^20.14.11",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.19",
"eslint": "^8",
"eslint": "^8.57.0",
"eslint-config-typescript-vitnode": "workspace:*",
"graphql-tag": "^2.12.6",
"postcss": "^8",
"postcss": "^8.4.39",
"tailwindcss": "^3.4.4",
"typescript": "^5"
"typescript": "^5.5.3"
}
}
Loading

0 comments on commit 7a6eee3

Please sign in to comment.