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
* Initial prompts setup
* Overwrite flags
* Update e2e tests
* Add package README, allow for prompt bypass for onepage if no port provided
* Remove mdx as option
* Explicate boolean logic a bit
* Add changeset
* Remove mdx from README
TODO: Write a README for the migrated project generator.
3
+
This package contains `create-spectacle`, the boilerplate-generator for Spectacle. The simplest usage is to run one of the following commands (based on your package manager of choice):
4
+
5
+
```shell
6
+
yarn create spectacle # yarn
7
+
npm create spectacle # npm
8
+
npx create-spectacle # using npx
9
+
pnpm create spectacle # using pnpm
10
+
```
11
+
12
+
Once running the respective command, you will be prompted to provide information about the spectacle project you'd like to create. Once you provide necessary information, a new spectacle project will be created in the directory derived from the project name you provided.
13
+
14
+
## Flags
15
+
16
+
`create-spectacle`'s core usage is via the interactive prompts. However, there are a handful of arguments/flags that you can provide to pre-fill prompt options:
17
+
18
+
- Pass a project name as the main argument to specify a project name, e.g. `yarn create spectacle my-presentation`.
19
+
- Pass the `--type` or `-t` flag to specify the type of spectacle project you'd like to create. Options are `jsx`, `tsx`, or `onepage`. Example: `yarn create spectacle -t onepage my-presentation`.
20
+
- Pass the `--lang` or `-l` flag to specify the HTML lang attribute for your presentation. Example: `yarn create spectacle -l en my-presentation`.
21
+
- Pass the `--port` or `-p` flag to specify the port to run the presentation on. Example: `yarn create spectacle -p 8080 my-presentation`.
22
+
23
+
### Bypassing Prompts
24
+
25
+
If you want to bypass the prompts entirely, pass the `-t`, `-l`, and `-p` flags as well as the project name as the main argument. For example:
26
+
27
+
```shell
28
+
yarn create spectacle -t jsx -l en -p 8080 my-presentation
0 commit comments