Skip to content

Instantly share code, notes, and snippets.

@julsdelatierra
Created July 29, 2010 17:07
Show Gist options
  • Save julsdelatierra/498682 to your computer and use it in GitHub Desktop.
Save julsdelatierra/498682 to your computer and use it in GitHub Desktop.
#!/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