Skip to content

Commit de47499

Browse files
committed
Fixed NPX starter command to create empty git repo
1 parent 19ae870 commit de47499

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

documentation/.bin/bin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const runCommand = command => {
1111
}
1212

1313
const repoName = process.argv [2];
14-
const gitCheckoutCommand = `git clone --depth 1 https://github.com/ApplebaumIan/tu-cis-4398-docs-template.git ${repoName}`;
15-
const installDepsCommand = `cd ${repoName}/documentation && yarn`;
14+
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 ..`;
15+
const installDepsCommand = `cd ${repoName}/documentation && yarn`;
1616
console.log( `Cloning the repository with name ${repoName}`);
1717
const checkedOut = runCommand (gitCheckoutCommand);
1818
if(!checkedOut) process.exit ( -1);

documentation/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ $ yarn
1111
### Local Development
1212

1313
```
14-
$ yarn start
14+
$ PROJECT_NAME=your-project-name yarn start
1515
```
1616

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

1919
### Build
2020

2121
```
22-
$ yarn build
22+
$ PROJECT_NAME=your-project-name yarn build
2323
```
2424

2525
This command generates static content into the `build` directory and can be served using any static contents hosting service.

documentation/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "create-project-docs",
33
"description": "Create a project with a Docusaurus documentation website template designed for Temple University CIS Projects in Computer Science courses.",
4-
"version": "1.1.0",
4+
"version": "1.1.1",
55
"scripts": {
66
"docusaurus": "docusaurus",
77
"start": "docusaurus start --host 0.0.0.0 ",

0 commit comments

Comments
 (0)