diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 2b8808e..8ff0112 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -10,4 +10,4 @@ To get ready to work on the codebase, please do the following: 2. Run `pnpm install --frozen-lockfile` ([install](https://pnpm.io/installation)) 3. Make your changes 4. Run `pnpm format && pnpm build && pnpm test:unit` to run ESLint/Prettier, build and tests -5. [Submit a pull request](https://github.com/NanoForge-dev/schematics/compare) (Make sure you follow the [conventional commit format](https://github.com/NanoForge-dev/CLI/blob/main/.github/COMMIT_CONVENTION.md)) +5. [Submit a pull request](https://github.com/NanoForge-dev/schematics/compare) (Make sure you follow the [conventional commit format](https://github.com/NanoForge-dev/schematics/blob/main/.github/COMMIT_CONVENTION.md)) diff --git a/.github/ISSUE_TEMPLATE/01-command_bug_report.yml b/.github/ISSUE_TEMPLATE/01-command_bug_report.yml index 1e41bd6..5cad940 100644 --- a/.github/ISSUE_TEMPLATE/01-command_bug_report.yml +++ b/.github/ISSUE_TEMPLATE/01-command_bug_report.yml @@ -17,6 +17,7 @@ body: - configuration - part-base - part-main + - other validations: required: true - type: textarea diff --git a/.github/ISSUE_TEMPLATE/02-feature_request.yml b/.github/ISSUE_TEMPLATE/02-feature_request.yml index cb8af76..03c37df 100644 --- a/.github/ISSUE_TEMPLATE/02-feature_request.yml +++ b/.github/ISSUE_TEMPLATE/02-feature_request.yml @@ -1,13 +1,13 @@ name: Feature request description: Request a new feature -labels: [enhancement request] +labels: [enhancement] body: - type: markdown attributes: value: | Thank you for submitting an idea ! - type: dropdown - id: application_or_schematics + id: schematics attributes: label: Which schematics is this feature request for? options: @@ -15,6 +15,7 @@ body: - configuration - part-base - part-main + - other validations: required: true - type: textarea diff --git a/.github/labeler.yml b/.github/labeler.yml index 6301e2f..1c85eda 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -21,3 +21,9 @@ schematics:part-main: - any-glob-to-any-file: - src/libs/part-main/* - src/libs/part-main/**/* + +documentation: + - changed-files: + - any-glob-to-any-file: + - docs/* + - docs/**/* diff --git a/README.md b/README.md index 501f260..5e7a07d 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,17 @@
## About @@ -17,9 +20,9 @@ This repository contains the Schematics of NanoForge. Check [releases][github-re ## Usage -To use Nanoforge Schematics, please refer to the [Schematics documentation][cli-source] ! +To use Nanoforge Schematics, please refer to the [CLI documentation][cli-source] ! -First, install the Schematics : +First, install the CLI : ```bash npm install -g @nanoforge-dev/cli @@ -31,63 +34,14 @@ And then create a new project : nf new ``` -## Commands +## Schematics -The nanoforge client interface has multiple commands usable : +This repository provide multiples schematics, usable with Angular Devkit schematics. -```sh -nf [command] [options] -``` - -### `build` - -Used to build your nanoforge project. - -`-d, --directory [directory]` specify the directory of the nanoforge project to build. -`-c, --config [config]` path to the config file. -`--client-outDir [clientDirectory]` specifies the client directory. -`--server-outDir [serverDirectory]` specifies the server directory. - -### `generate` - -Used to generate nanoforge project files from config - -`-d, --directory [directory]` specify the directory of the nanoforge project to build. -`-c, --config [config]` path to the config file. - -### `install` or `add` - -Used to add a nanoforge library to your project - -`-d, --directory [directory]` specify the directory of the nanoforge project to build. - -### `new` - -Used to create a new nanoforge project - -`-d, --directory [directory]` specify the directory of your project -`--name [name]` specify the name of your project -`--path [path]` specify the path of your project -`--package-manager [packageManager]` specify the package manager of your project -`--language [language]` specify the language of your project -`--strict` use strict mode -`--no-strict` do not use strict mode -`--server` create a server -`--no-server` do not create a server -`--init-functions` initialize functions -`--no-init-functions` do not initialize functions -`--skip-install` skip installing dependencies -`--no-skip-install` do not skip installing dependencies - -### `start` - -Used to start your nanoforge project - -`-d, --directory [directory]` specify the directory of your project -`-c, --config [config]` path to the config file (default: "nanoforge.config.json") -`-p, --client-port [clientPort]` specify the port of the loader (the website to load the game) -`--game-exposure-port [gameExposurePort]` specify the port of the game exposure -`--server-port [serverPort]` specify the port of the server +- `application` : Base of a Nanoforge app +- `configuration` : Template of `nanoforge.config.json` with premade fields +- `part-base` : Base of Nanoforge client or server +- `part-main` : Client or server `main.ts` from a config ## Contributing @@ -97,8 +51,8 @@ Please read through our [contribution guidelines][contributing] before starting If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please ask on [Discussions][discussions]. -[contributing]: https://github.com/NanoForge-dev/Schematics/blob/main/.github/CONTRIBUTING.md -[discussions]: https://github.com/NanoForge-dev/Schematics/discussions -[cli-source]: https://github.com/NanoForge-dev/Schematics -[github-releases]: https://github.com/NanoForge-dev/Schematics/releases -[good-first-issue]: https://github.com/NanoForge-dev/Schematics/contribute +[contributing]: https://github.com/NanoForge-dev/schematics/blob/main/.github/CONTRIBUTING.md +[discussions]: https://github.com/NanoForge-dev/schematics/discussions +[cli-source]: https://github.com/NanoForge-dev/CLI +[github-releases]: https://github.com/NanoForge-dev/schematics/releases +[good-first-issue]: https://github.com/NanoForge-dev/schematics/contribute diff --git a/package.json b/package.json index 0218351..233ae5a 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "type": "git", "url": "git+https://github.com/NanoForge-dev/schematics.git" }, - "funding": "", + "funding": "https://github.com/NanoForge-dev/schematics?sponsor", "scripts": { "build": "tsc --noEmit && tsup", "postbuild": "pnpm run copy:collection && pnpm run copy:lib", @@ -79,7 +79,6 @@ "husky": "^9.1.7", "lint-staged": "^16.2.6", "prettier": "^3.6.2", - "taze": "^19.9.0", "tsup": "^8.5.1", "typescript": "^5.9.3", "typescript-eslint": "^8.46.2"