Created
July 29, 2010 17:07
-
-
Save julsdelatierra/498682 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env python | |
REQUIRES_MAIN_JS ='''var %(module)s = require('%(module)s'); | |
''' | |
MAIN_JS = ''' | |
exports.main = function(options, callbacks){ | |
console.log('Jetpack addon running'); | |
/*Your code is here below*/ | |
} | |
''' | |
MAIN_JS_DOC = '''Documentation about main function.''' | |
MODULE_JS = '''%(module)s = function(options){ | |
options = options || {}; | |
let self = this; | |
} | |
''' | |
DEFAULT_README_DOC = '''This is my %(packName)s package. It contains: | |
* A main module. | |
* A main test. | |
* Some meager documentation. | |
''' | |
PACKAGE_TEMPLATE = '''{ | |
'name':'%(packName)s', | |
'fullName':'%(packName)s', | |
'description':'Describe your addon.', | |
'author':'', | |
'id':'', | |
'license':'MPL', | |
'version':'0.1' | |
} | |
''' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment