Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest react-ts as the default project in docs #86

Merged
merged 1 commit into from
May 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Usage: spraygun <template> <project-directory>

Generate a project in the specified directory, based on a template.

For example, to generate a react app in a directory named hello-world:
$ npx spraygun -t react hello-world
For example, to generate a React TypeScript app in a directory named blog:
$ npx spraygun -t react-ts blog

The officially supported spraygun templates are:
-t express
Expand Down
4 changes: 2 additions & 2 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const usage = chalk`${logo}

Generate a project in the specified directory, based on a template.

For example, to generate a react app in a directory named hello-world:
{gray $} npx spraygun {yellow -t react} {green hello-world}
For example, to generate a React TypeScript app in a directory named blog:
{gray $} npx spraygun {yellow -t react-ts} {green blog}

The officially supported spraygun templates are:
${aliasBullets}
Expand Down
4 changes: 2 additions & 2 deletions src/resolvers/template.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ describe("resolve", () => {
const repositoryResolve = require("./repository");
repositoryResolve.mockReturnValue("/path/to/resolved/repo");

const path = resolve("react");
const path = resolve("react-ts");

expect(path).toEqual("/path/to/resolved/repo");
expect(repositoryResolve).toHaveBeenCalledWith(
"https://github.com/carbonfive/spraygun-react.git"
"https://github.com/carbonfive/spraygun-react-ts.git"
);
});
});
Expand Down