You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Add a new .ts file for your plugin in the plugins directory at `packages\create-next-stack\src\main\plugins`
73
+
2. Useful npm scripts of `packages/create-next-stack` to run during development:
74
+
75
+
- `check-types:watch`- Runs TypeScript in watch mode to check types as you make changes. You can run this instead of `build:watch` while working on the CLI, as the e2e tests do just-in-time compilation via `ts-node`.
76
+
- `jest:watch`- Runs Jest in watch mode to run unit tests as you make changes.
77
+
- `test`- Runs e2e tests. Note that this will run all e2e tests, which can take quite a while.
78
+
- `lint`- Runs ESLint to lint the project.
79
+
- `test:manual`
80
+
- For example, `pnpm run test:manual --package-manager=pnpm --styling=emotion`.
81
+
- Sets up a new directory for a test run of the CLI, runs the CLI with the specified flags, and builds the generated Next app, and checks formatting and linting.
82
+
- This is useful for manually testing the CLI. Pass whatever flags to the CLI that you want to test. The `app_name` argument will be set automatically.
83
+
- `test:raw`- Runs the binary directly. Rarely used, but can be useful for manual tests where you want to be able to specify the `app_name` argument yourself.
84
+
- `clean`- Removes all generated files, including build files and the `create-next-stack-tests` directory created by the e2e tests.
85
+
86
+
3. Add a new .ts file for your plugin in the plugins directory at `packages\create-next-stack\src\main\plugins`
74
87
75
88
- See the [Writing a plugin section](#writing-a-plugin) below to learn how to write a Create Next Stack plugin.
76
89
77
-
3. Add new flags to the `create-next-stack` command in [`create-next-stack.ts`](packages\create-next-stack\src\main\commands\create-next-stack.ts).
78
-
4. Add the plugin to the `plugins` array in [`setup.ts`](packages/create-next-stack/src/main/setup/setup.ts).
79
-
5. Add potential plugin steps to the `steps` array in [`setup.ts`](packages/create-next-stack/src/main/setup/setup.ts). Steps are run top-to-bottom.
80
-
6. Update the [`README.md`](README.md):
90
+
4. Add new flags to the `create-next-stack` command in [`create-next-stack.ts`](packages\create-next-stack\src\main\commands\create-next-stack.ts).
91
+
5. Add the plugin to the `plugins` array in [`setup.ts`](packages/create-next-stack/src/main/setup/setup.ts).
92
+
6. Add potential plugin steps to the `steps` array in [`setup.ts`](packages/create-next-stack/src/main/setup/setup.ts). Steps are run top-to-bottom.
93
+
7. Update the [`README.md`](README.md):
81
94
- Add the technology to the technology list
82
95
- Update the `Usage` section by copy pasting the output of running `yarn print:help`
83
-
7. Consider expanding some of the e2e tests to include the new technology. See [`test.ts`](packages\create-next-stack\src\tests\e2e\test.ts) for current tests.
84
-
8. Run tests using `yarn test` to ensure they all pass.
85
-
9. Submit a Pull Request on GitHub.
96
+
8. Consider expanding some of the e2e tests to include the new technology. See [`test.ts`](packages\create-next-stack\src\tests\e2e\test.ts) for current tests.
97
+
9. Run tests using `yarn test` to ensure they all pass.
0 commit comments