Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
Docs: remove $ in front of console command as it seems to be confusin…
Browse files Browse the repository at this point in the history
…g for newbies (make copy/paste difficult)

Ref react-boilerplate/react-boilerplate#757
  • Loading branch information
MoOx committed Aug 19, 2016
1 parent 8fb4d69 commit c145610
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 38 deletions.
22 changes: 11 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ boilerplate:
for more information.
Except new features, no real breaking changes (except that ``react-helmet``
don‘t includes some (may be) required polyfills by default).
You can upgrade by doing ``$ npm install react-helmet@^3.0.0 --save``
You can upgrade by doing ``npm install react-helmet@^3.0.0 --save``
([#348](https://github.com/MoOx/phenomic/pull/348))
- Changed: ``PHENOMIC_PATHNAME`` is now ``PHENOMIC_USER_PATHNAME``.
But no need to update that in your configuration as it's injected
Expand Down Expand Up @@ -557,13 +557,13 @@ boilerplate:
To be sure, run the following commands.

```sh
$ npm remove --save-dev statinamic
$ npm install --save-dev phenomic@^0.10.2
$ find . -type f \( -iname \*.css -o -iname \*.js -o -iname \*.json \) -not \( -path './.git/*' -o -path './node_modules/*' \) \
npm remove --save-dev statinamic
npm install --save-dev phenomic@^0.10.2
find . -type f \( -iname \*.css -o -iname \*.js -o -iname \*.json \) -not \( -path './.git/*' -o -path './node_modules/*' \) \
-exec sed -i '' 's|Statinamic|Phenomic|g' {} \;
$ find . -type f \( -iname \*.css -o -iname \*.js -o -iname \*.json \) -not \( -path './.git/*' -o -path './node_modules/*' \) \
find . -type f \( -iname \*.css -o -iname \*.js -o -iname \*.json \) -not \( -path './.git/*' -o -path './node_modules/*' \) \
-exec sed -i '' 's|statinamic|phenomic|g' {} \;
$ find . -type f \( -iname \*.css -o -iname \*.js -o -iname \*.json \) -not \( -path './.git/*' -o -path './node_modules/*' \) \
find . -type f \( -iname \*.css -o -iname \*.js -o -iname \*.json \) -not \( -path './.git/*' -o -path './node_modules/*' \) \
-exec sed -i '' 's|STATINAMIC|PHENOMIC|g' {} \;
```

Expand Down Expand Up @@ -603,18 +603,18 @@ boilerplate:
_EDIT: the commands below are not enough, see release **0.10.2**._

```sh
$ npm remove --save-dev statinamic
$ npm install --save-dev phenomic
$ find . -type f \( -iname \*.js -o -iname \*.json \) -not \( -path './.git/*' -o -path './node_modules/*' \) \
npm remove --save-dev statinamic
npm install --save-dev phenomic
find . -type f \( -iname \*.js -o -iname \*.json \) -not \( -path './.git/*' -o -path './node_modules/*' \) \
-exec sed -i '' 's|Statinamic|Phenomic|g' {} \;
$ find . -type f \( -iname \*.js -o -iname \*.json \) -not \( -path './.git/*' -o -path './node_modules/*' \) \
find . -type f \( -iname \*.js -o -iname \*.json \) -not \( -path './.git/*' -o -path './node_modules/*' \) \
-exec sed -i '' 's|statinamic|phenomic|g' {} \;
```

If you want to double check what files will be changed, just run

```sh
$ find . -type f \( -iname \*.js -o -iname \*.json \) -not \( -path './.git/*' -o -path './node_modules/*' \)
find . -type f \( -iname \*.js -o -iname \*.json \) -not \( -path './.git/*' -o -path './node_modules/*' \)
```

_This will look for S|statinamic occurence and will replace it by P|phenomic in
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

* ⇄ Pull requests and ★ Stars are always welcome.
* For bugs and feature requests, please [create an issue](https://github.com/MoOx/phenomic/issues/new).
* Pull requests must be accompanied by passing automated tests (`$ npm test`).
* Pull requests must be accompanied by passing automated tests (`npm test`).

## [CHANGELOG](CHANGELOG.md)

Expand Down
6 changes: 3 additions & 3 deletions boilerplate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
## Install dependencies

```sh
$ npm install
npm install
```

## Run development server

```sh
$ npm start
npm start
```

## Build for production

```sh
$ npm run build
npm run build
```
10 changes: 5 additions & 5 deletions docs/content/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: How to contribute to Phenomic
To work on the boilerplate, run the following:

```sh
$ npm run boilerplate-start
npm run boilerplate-start
```

Then you can edit files in the `boilerplate` folder.
Expand All @@ -17,7 +17,7 @@ Then you can edit files in the `boilerplate` folder.
To work on the docs, run the following:

```sh
$ npm run docs-start
npm run docs-start
```

Then you can edit files in the `docs` folder.
Expand All @@ -29,7 +29,7 @@ Then you can edit files in the `docs` folder.
- Integration tests are located at the root of the project (`__tests__/*`).

_After every modification, please run the entire test suite by using
`$ npm test`._
`npm test`._

Note that the full test suite can take a few minutes, as it runs unit tests and
integration tests (with several builds, including docs and a new project from
Expand All @@ -45,10 +45,10 @@ Tests will be in ``src/PageContainer/__tests__/*``.
To run tests for the ``PageContainer`` component:

```sh
$ ava src/PageContainer/__tests__/*
ava src/PageContainer/__tests__/*
```

When you think you are done with your update, remember to run `$ npm test`.
When you think you are done with your update, remember to run `npm test`.
Anyway, CI will warn us if something goes wrong.

---
Expand Down
2 changes: 1 addition & 1 deletion docs/content/docs/advanced/good-practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ If you switch to one of these configurations, you might get some linting errors.
To fix this, simply use the following command:

```sh
$ ./node_modules/.bin/eslint --fix .
./node_modules/.bin/eslint --fix .
```

This will fix all the errors that ESLint or its plugins can handle.
Expand Down
24 changes: 12 additions & 12 deletions docs/content/docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ magically open itself in your browser!
### macOS / Linux

```sh
$ DIR=your-website-folder && mkdir $DIR && cd $DIR && mkdir node_modules && \
DIR=your-website-folder && mkdir $DIR && cd $DIR && mkdir node_modules && \
npm i phenomic && ./node_modules/.bin/phenomic setup && npm i && npm start
```

### Windows

```sh
> SET DIR=your-website-folder && mkdir %DIR% && cd %DIR% && mkdir node_modules && ^
```cmd
SET DIR=your-website-folder && mkdir %DIR% && cd %DIR% && mkdir node_modules && ^
npm i phenomic && ./node_modules/.bin/phenomic setup && npm i && npm start
```

Expand All @@ -45,8 +45,8 @@ answer below 😉.
That's an easy step.

```sh
$ DIR=your-website-folder
$ mkdir $DIR && cd $DIR
DIR=your-website-folder
mkdir $DIR && cd $DIR
```

### Get Phenomic
Expand All @@ -60,7 +60,7 @@ different versions of Phenomic.
Anyway, Phenomic will probably not work installed globally._

```sh
$ mkdir node_modules
mkdir node_modules
```

*This command is to be sure that phenomic will be installed in the current
Expand All @@ -70,7 +70,7 @@ finds a ``node_modules`` or a ``package.json``, up to your HOME folder.*
#### Install from npm

```sh
$ npm install phenomic
npm install phenomic
```

* ``--save[-dev]`` is useless because there is no ``package.json`` yet.
Expand All @@ -83,16 +83,16 @@ $ npm install phenomic
To install from git, you will need to get some deps to transpile sources

```sh
$ npm install babel-cli babel-preset-react babel-preset-es2015 babel-preset-stage-1 babel-plugin-flow-react-proptypes
$ npm install https://github.com/MoOx/phenomic.git
npm install babel-cli babel-preset-react babel-preset-es2015 babel-preset-stage-1 babel-plugin-flow-react-proptypes
npm install https://github.com/MoOx/phenomic.git
```

### Setup boilerplate

**Notice:** This step will create (and overwrite) any existing ``package.json``.

```sh
$ ./node_modules/.bin/phenomic setup
./node_modules/.bin/phenomic setup
```

**⚠️ If you got errors here, please double check that you have required version of
Expand All @@ -110,7 +110,7 @@ the configuration options._
When you are done the setup, it's time to get all dependencies.

```sh
$ npm install
npm install
```

npm will install some peer dependencies for you; by doing this we ensure that
Expand All @@ -122,7 +122,7 @@ Now it's time to...
### Start the engine

```sh
$ npm start
npm start
```

It's that simple.
Expand Down
6 changes: 3 additions & 3 deletions docs/content/docs/usage/gh-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ In your `package.json`, add the following items under the `scripts` section:
Now run:

```sh
$ npm run deploy
npm run deploy
```

It should be good!
Expand Down Expand Up @@ -128,8 +128,8 @@ With only `repo` or `public_repo` scopes.
*Note: replace `{YOU/YOUR_REPO}` and `{YOUR_TOKEN}`.*

```sh
$ npm i -g travis-encrypt
$ travis-encrypt --add --repo {YOU/YOUR_REPO} GITHUB_TOKEN={YOUR_TOKEN}
npm i -g travis-encrypt
travis-encrypt --add --repo {YOU/YOUR_REPO} GITHUB_TOKEN={YOUR_TOKEN}
```

## Adjust the deploy script
Expand Down
4 changes: 2 additions & 2 deletions npm/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ stat("lib", function(error, stats1) {
"Do you have to required dependencies to install from git?\n" +
"Be sure to have installed run this before:" +
"\n\n" +
`$ npm install babel-cli ${ pkg.babel.presets }` +
`npm install babel-cli ${ pkg.babel.presets }` +
"\n\n" +
"Then rebuild phenomic by running: " +
"\n\n" +
"$ npm rebuild phenomic" +
"npm rebuild phenomic" +
"\n\n"
)

Expand Down

0 comments on commit c145610

Please sign in to comment.