Skip to content

Commit e7646f0

Browse files
author
Christopher J. Brody
committed
pegjs updates
package.json - move pegjs to devDependencies in package.json - add pegjs script to package.json - update README.md with easier pegjs instructions & reminder notice
1 parent 80e3a51 commit e7646f0

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@ grammar. Other tests will use the prebuilt parser (`lib/parser/pbxproj.js`).
5454

5555
To rebuild the parser js file after editing the grammar, run:
5656

57-
./node_modules/.bin/pegjs lib/parser/pbxproj.pegjs
57+
npm run pegjs
5858

59-
(easier if `./node_modules/.bin` is in your path)
59+
(and be sure to restore the Apache license notice in
60+
`lib/parser/pbxproj.js` before committing)
6061

6162
## License
6263

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@
1111
"node": ">=0.6.7"
1212
},
1313
"dependencies": {
14-
"pegjs": "^0.10.0",
1514
"simple-plist": "^0.2.1",
1615
"uuid": "3.0.1"
1716
},
1817
"devDependencies": {
19-
"nodeunit": "^0.11.3"
18+
"nodeunit": "^0.11.3",
19+
"pegjs": "^0.10.0"
2020
},
2121
"scripts": {
22+
"pegjs": "node_modules/.bin/pegjs lib/parser/pbxproj.pegjs",
2223
"test": "node_modules/.bin/nodeunit test/parser test"
2324
},
2425
"license": "Apache-2.0",

0 commit comments

Comments
 (0)