Skip to content

Commit

Permalink
[gh315] Do not need --no-live when the --no-html is given
Browse files Browse the repository at this point in the history
  • Loading branch information
andyduong1920 committed Mar 10, 2023
1 parent 29121fa commit ec3d4b8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/wiki/Generation.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Modify the path to locate the `elixir-templates` directory. For example `~/elixi

- Web project: `make create_phoenix_project PROJECT_DIRECTORY=sample_project OPTIONS="--no-live"`
- Live project: `make create_phoenix_project PROJECT_DIRECTORY=sample_project OPTIONS=""`
- API project: `make create_phoenix_project PROJECT_DIRECTORY=sample_project OPTIONS="--no-html --no-assets --no-live"`
- API project: `make create_phoenix_project PROJECT_DIRECTORY=sample_project OPTIONS="--no-html --no-assets"`

3. Answer the prompt `Fetch and install dependencies? [Yn]` with `n` (not install)

Expand Down
6 changes: 3 additions & 3 deletions .github/wiki/Testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ mix phx.new awesome_project
- API variants do NOT support HTML and Assets configuration.

```bash
mix phx.new awesome_project --no-html --no-assets --no-live
mix phx.new awesome_project --no-html --no-assets
```

- Custom project variants allow us to modify the app name or module name.
Expand All @@ -108,8 +108,8 @@ Web project

API project

- Standard (`mix phx.new awesome_project --no-html --no-assets --no-live`)
- Custom (`mix phx.new awesome_project --no-html --no-assets --no-live --module=CustomModuleName --app=custom_otp_app_name`)
- Standard (`mix phx.new awesome_project --no-html --no-assets`)
- Custom (`mix phx.new awesome_project --no-html --no-assets --module=CustomModuleName --app=custom_otp_app_name`)

LiveView project

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/apply_api_variant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ jobs:
name: Test on a Standard API project
uses: ./.github/workflows/reusable_phoenix_project.yml
with:
new_project_options: "--no-html --no-assets --no-live"
new_project_options: "--no-html --no-assets"
variant: "api"

long_custom_name_api_project:
name: Test on a long custom name API project
uses: ./.github/workflows/reusable_phoenix_project.yml
with:
new_project_options: "--no-html --no-assets --no-live --module=SampleCustomModule --app=sample_custom_app"
new_project_options: "--no-html --no-assets --module=SampleCustomModule --app=sample_custom_app"
variant: "api"

short_custom_name_api_project:
Expand Down

0 comments on commit ec3d4b8

Please sign in to comment.