Skip to content

Commit

Permalink
Remove node_modules path from scripts and use the "run" shortcut when…
Browse files Browse the repository at this point in the history
… running them braziljs#74
  • Loading branch information
Zeno Rocha committed Jun 29, 2014
1 parent 52c17ed commit 201c80a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README-pt.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Pré-requisitos: Instale o [Git](http://git-scm.com/downloads) e o [NodeJS](http
5. E finalmente rode:

```sh
$ npm run-script watch
$ npm run watch
```

Agora você irá ver o site rodando em `localhost:9778` :D
Expand Down Expand Up @@ -239,7 +239,7 @@ partners: [
Nós não gostamos de centralizar o poder de deploy em uma pessoa, portanto utilizaremos o recurso de [GitHub Pages](http://pages.github.com) que ainda é gratuito. Para realizar o deploy basta rodar:
```sh
$ npm run-script deploy
$ npm run deploy
```

Espere alguns minutos até que o GitHub lhe envie um e-mail avisando que tudo ocorreu bem. Depois é só acessar: `http://seuUsuario.github.com/seuFork`
Expand All @@ -255,7 +255,7 @@ Caso você não queira utilizar o domínio do GitHub, é possível usar seu pró

Se você prefere utilizar seu próprio servidor para hospedar o site:

* Rode `npm run-script generate` na raíz do projeto.
* Rode `npm run generate` na raíz do projeto.

Esse comando irá gerar uma pasta `out` contendo apenas arquivos estáticos, depois é só fazer o upload do conteúdo dessa pasta para sua hospedagem.

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ By default, we have the following sections:
5. And finally run:
```sh
$ npm run-script watch
$ npm run watch
```
Now you can see the website running in `localhost:9778` :D
Expand Down Expand Up @@ -239,7 +239,7 @@ partners: [
We don't like to centralize the power of deploy in one person, so we'll use [GitHub Pages](http://pages.github.com) that is free. You just need to run:
```sh
$ npm run-script deploy
$ npm run deploy
```
Wait a few minutes until GitHub send you an email telling that everything went well. Then just access: `http://yourUser.github.com/yourFork`
Expand All @@ -255,7 +255,7 @@ If you don't want to use GitHub domain, you can use your own with a few steps.

If you want to use your own server to host the website:

* Run `npm run-script generate` on the root of the project.
* Run `npm run generate` on the root of the project.

This command will generate a folder called `out` that contains just static files, then just upload them to your server.

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"npm": "1.1.x"
},
"scripts": {
"deploy": "node_modules/docpad/bin/docpad deploy-ghpages --env static",
"generate": "node_modules/docpad/bin/docpad generate --env static",
"watch": "node_modules/docpad/bin/docpad run"
"deploy": "docpad deploy-ghpages --env static",
"generate": "docpad generate --env static",
"watch": "docpad run"
},
"dependencies": {
"docpad": "6.30.x",
Expand Down

0 comments on commit 201c80a

Please sign in to comment.