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

Update start commands #87

Merged
merged 1 commit into from
Jul 21, 2020
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
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,20 @@ title: Some Title of Some Topic

### Previewing the Site

Once a PR is created, Netlify will create a preview site and comment on the PR with a link. If you'd like to view your changes locally, run
Once a PR is created, Netlify will create a preview site and comment on the PR with a link. If you'd like to view your changes locally,

For the docs, run:

```sh
npm install
npm run start-docs
```

For the blog, run:

```sh
npm install
npm start
npm run start-blog
```

This will install all build dependencies and serve the website on port 3000.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
},
"scripts": {
"cleanup": "hexo clean",
"prestart": "npm run cleanup",
"start": "hexo generate --config docs_config.yml,blog_config.yml --watch & node server.js & wait",
"prebuild": "npm run cleanup",
"build": "hexo generate --config docs_config.yml && npm run cleanup && hexo generate --config blog_config.yml"
"prestart-docs": "npm run cleanup",
"prestart-blog": "npm run cleanup",
"start-docs": "hexo generate --config docs_config.yml --watch & node server.js & wait",
"start-blog": "hexo generate --config blog_config.yml --watch & node server.js & wait",
"build": "npm run cleanup && hexo generate --config docs_config.yml && npm run cleanup && hexo generate --config blog_config.yml"
},
"dependencies": {
"hexo": "^4.2.1",
Expand Down