Permalink
Browse files

fix indentation for code examples in package.json doc

  • Loading branch information...
1 parent 30b6783 commit 3e6e99409ec14aba1ea6c2e1bd00b31d95c792cc @alexgorbatchev alexgorbatchev committed with domenic Feb 20, 2014
Showing with 18 additions and 22 deletions.
  1. +18 −22 doc/files/package.json.md
View
@@ -360,15 +360,13 @@ an argument to `git checkout`. The default is `master`.
As of version 1.1.65, you can refer to GitHub urls as just "foo": "user/foo-project". For example:
-```json
-{
- "name": "foo",
- "version": "0.0.0",
- "dependencies": {
- "express": "visionmedia/express"
- }
-}
-```
+ {
+ "name": "foo",
+ "version": "0.0.0",
+ "dependencies": {
+ "express": "visionmedia/express"
+ }
+ }
## devDependencies
@@ -389,19 +387,17 @@ script to do this, and make the required package a devDependency.
For example:
-```json
-{ "name": "ethopia-waza",
- "description": "a delightfully fruity coffee varietal",
- "version": "1.2.3",
- "devDependencies": {
- "coffee-script": "~1.6.3"
- },
- "scripts": {
- "prepublish": "coffee -o lib/ -c src/waza.coffee"
- },
- "main": "lib/waza.js"
-}
-```
+ { "name": "ethopia-waza",
+ "description": "a delightfully fruity coffee varietal",
+ "version": "1.2.3",
+ "devDependencies": {
+ "coffee-script": "~1.6.3"
+ },
+ "scripts": {
+ "prepublish": "coffee -o lib/ -c src/waza.coffee"
+ },
+ "main": "lib/waza.js"
+ }
The `prepublish` script will be run before publishing, so that users
can consume the functionality without requiring them to compile it

0 comments on commit 3e6e994

Please sign in to comment.