Skip to content

Instantly share code, notes, and snippets.

@diosmosis
Created February 19, 2012 09:24
Show Gist options
  • Save diosmosis/1862725 to your computer and use it in GitHub Desktop.
Save diosmosis/1862725 to your computer and use it in GitHub Desktop.
cakejam example (Adobe AIR target)
cakejam = require 'cakejam'
# aliases
jslib = cakejam.targets.jslib
aircert = cakejam.targets.aircert
airapp = cakejam.targets.airapp
# a JavaScript library that will hold all the code in one file
lightspeedjs = jslib 'lightspeedjs', __dirname,
sources: ['src/config.coffee',
'src/utility.coffee',
'src/feed_format.coffee',
'src/models.coffee',
'src/lightspeed_dao.coffee',
'src/site_bfs.coffee',
'src/application.coffee',
'src/template.coffee',
'src/lightspeedrss.coffee']
no_minify: true
# an Adobe AIR certificate target
exports.lightspeedcert = aircert 'lightspeedcert', __dirname,
store_type: 'pkcs12'
key_type: '2048-RSA'
password: 'example_password'
# the Adobe AIR target
exports.lightspeedrss = airapp 'lightspeedrss', __dirname,
sources: ['lib/jquery-1.6.2.min.js',
'lib/jquery-ui-1.8.14.custom.min.js',
'lib/jsquickhtml/jsquickhtml.coffee',
'lib/air/AIRAliases.js',
'lib/applicationupdater_ui.swf',
'extra',
lightspeedjs]
app_meta: 'lightspeedrss-app.xml'
certificate: exports.lightspeedcert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment