Skip to content

Commit

Permalink
Merge pull request #87 from grain-lang/update-start-instructions
Browse files Browse the repository at this point in the history
Update start commands
  • Loading branch information
ospencer authored Jul 21, 2020
2 parents 0255598 + 1877a90 commit addc1bf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
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

0 comments on commit addc1bf

Please sign in to comment.