Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Apache cordova

License

NotificationsYou must be signed in to change notification settings

Athorcis/cordova-node-xcode

 
 

Repository files navigation

NPM

Node CI

Parser utility for xcodeproj project files

Allows you to edit xcodeproject files and write them back out.

based on donated code fromalunny / node-xcode

Example

// API is a bit wonky right nowvarxcode=require('xcode'),fs=require('fs'),projectPath='myproject.xcodeproj/project.pbxproj',myProj=xcode.project(projectPath);// parsing is async, in a different processmyProj.parse(function(err){myProj.addHeaderFile('foo.h');myProj.addSourceFile('foo.m');myProj.addFramework('FooKit.framework');fs.writeFileSync(projectPath,myProj.writeSync());console.log('new project written');});

Working on the parser

If there's a problem parsing, you will want to edit the grammar underlib/parser/pbxproj.pegjs. You can test it online with the PEGjs online thingyathttps://pegjs.org/online - I have had some mixed results though.

Tests under thetest/parser directory will compile the parser from thegrammar. Other tests will use the prebuilt parser (lib/parser/pbxproj.js).

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

npm run pegjs

(and be sure to restore the Apache license notice inlib/parser/pbxproj.js before committing)

License

Apache V2

About

Apache cordova

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript98.3%
  • PEG.js1.5%
  • Makefile0.2%

[8]ページ先頭

©2009-2025 Movatter.jp