Skip to content

Commit

Permalink
Fixed NPX starter command to create empty git repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ApplebaumIan committed Feb 17, 2023
1 parent 19ae870 commit de47499
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions documentation/.bin/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const runCommand = command => {
}

const repoName = process.argv [2];
const gitCheckoutCommand = `git clone --depth 1 https://github.com/ApplebaumIan/tu-cis-4398-docs-template.git ${repoName}`;
const installDepsCommand = `cd ${repoName}/documentation && yarn`;
const gitCheckoutCommand = `git clone --depth 1 https://github.com/ApplebaumIan/tu-cis-4398-docs-template.git ${repoName} && cd ${repoName} && rm -rf .git && git init && cd ..`;
const installDepsCommand = `cd ${repoName}/documentation && yarn`;
console.log( `Cloning the repository with name ${repoName}`);
const checkedOut = runCommand (gitCheckoutCommand);
if(!checkedOut) process.exit ( -1);
Expand Down
4 changes: 2 additions & 2 deletions documentation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ $ yarn
### Local Development

```
$ yarn start
$ PROJECT_NAME=your-project-name yarn start
```

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

### Build

```
$ yarn build
$ PROJECT_NAME=your-project-name yarn build
```

This command generates static content into the `build` directory and can be served using any static contents hosting service.
Expand Down
2 changes: 1 addition & 1 deletion documentation/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "create-project-docs",
"description": "Create a project with a Docusaurus documentation website template designed for Temple University CIS Projects in Computer Science courses.",
"version": "1.1.0",
"version": "1.1.1",
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start --host 0.0.0.0 ",
Expand Down

0 comments on commit de47499

Please sign in to comment.