commit | 111392ac485fa090565d89f9dc476ce84cab8730 | [log] [tgz] |
---|---|---|
author | alunny <alunny@gmail.com> | Thu Oct 18 13:21:19 2012 -0700 |
committer | alunny <alunny@gmail.com> | Thu Oct 18 13:21:19 2012 -0700 |
tree | bc65c66b8d909cca6cdb85423695017e8e54908a | |
parent | aeb25d732354422b9d949764a0d79a49e857a180 [diff] |
[project] accessor for productName javascript getter. HM!
parser/toolkit for xcodeproj project files
Allows you to edit xcodeproject files and write them back out.
// API is a bit wonky right now var xcode = require('xcode'), fs = require('fs'), projectPath = 'myproject.xcodeproj/project.pbxproj', myProj = xcode.project(projectPath); // parsing is async, in a different process myProj.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'); });
MIT