-
Create new project
Why need to create a project, not an simple dir structure?
- Basically project is a
www
dir, filled up with app code, plus config.xml, which can be retrieved from runtime. Currently config.xml is also stores a non-runtime configuratio,. which relates to build, package and code signing process. Maybe we can split it into two separate files?
- Basically project is a
-
Add a platform
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs") | |
port = process.argv[2] || 8888; | |
http.createServer(function(request, response) { | |
var uri = url.parse(request.url).pathname | |
, filename = path.join(process.cwd(), uri); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MSBuild.exe location. Acquired using system functions | |
[String]$msBuild = [System.Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory() + "MSBuild.exe" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function clink.filter_prompt(prompt) | |
local function add_ansi_codes(p) | |
local c = tonumber(clink.get_setting_int("prompt_colour")) | |
if c < 0 then | |
return p | |
end | |
c = c % 16 | |
--[[ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.onerror = function(message, url, line, col, error) { | |
var errMessage = message + | |
'\nat: ' + url + ':' + line + ':' + col + | |
!!error ? JSON.stringify(error, null, 4) : ''; | |
if (window.alert) { | |
alert(errMessage); | |
} else { | |
console.log(errMessage); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jshint node:true, unused:false */ | |
// TODO: Refine usage of options parameter | |
/** | |
* Class, that acts as abstract on top of Cordova project. Encapsulates the | |
* basic properties, that represents project configuration and methods for | |
* managing the project. This class shouldn't be instantiated directly. | |
* Instead user is intended to use 'getProjectAt' and 'createProject' class |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jshint node:true, unused:false */ | |
var ConfigParser = require('cordova-common').ConfigParser; | |
var PluginInfo = require('cordova-common').PluginInfo; | |
var Requirement = require('cordova-common').Requirement; | |
/** | |
* Class, that acts as abstraction over particular platform. Encapsulates the | |
* platform's properties and methods. |
Class, that acts as abstraction over particular platform. Encapsulates the platform's properties and methods.
Platform that implements own PlatformApi instance should implement all prototype methods of this class to be fully compatible with cordova-lib.
The PlatformApi instance also should define the following field:
Class, that acts as abstract on top of Cordova project. Encapsulates the basic properties, that represents project configuration and methods for managing the project. This class shouldn't be instantiated directly. Instead user is intended to use 'getProjectAt' and 'createProject' class methods.
Kind: global function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* jshint node:true, unused:false */ | |
var path = require('path'); | |
var BuildConfig = require('cordova-common').BuildConfig; | |
var ConfigParser = require('cordova-common').ConfigParser; | |
/** | |
* Encapsulates and stores project information. | |
* | |
* @class |