AMD Snippets
Sublime Text AMD Snippets
Labels snippets
Details
Installs
- Total 2K
- Win 1K
- Mac 355
- Linux 256
| Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | Aug 2 | Aug 1 | Jul 31 | Jul 30 | Jul 29 | Jul 28 | Jul 27 | Jul 26 | Jul 25 | Jul 24 | Jul 23 | Jul 22 | Jul 21 | Jul 20 | Jul 19 | Jul 18 | Jul 17 | Jul 16 | Jul 15 | Jul 14 | Jul 13 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Mac | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
AMDsnippets
Installation
Use Sublime Text's Package Control to install this plugin.
Manual Installation
Open up Terminal.app and execute these commands:
Sublime Text 2
cd ~/Library/"Application Support"/"Sublime Text 2"/Packages/
git clone git@github.com:pierceray/AMDsnippets.git
Sublime Text 3
cd ~/Library/"Application Support"/"Sublime Text 3"/Packages/
git clone git@github.com:pierceray/AMDsnippets.git
Snippets
Start typing define and the snippets should appear in the autocomplete.
AMD Anonymous Module
define( [
'${1:dependencies}'
], function (
${2:DependParam}
) {
${2:DependParam}.${3:methodToCall}();
} );
AMD Twitter Flight Module
define( [
'${1:flight/lib/component}'
], function (
component
) {
return component( ${2:functionNameUI} );
function ${2:functionNameUI}() {
this.attributes( {
} );
this.after( 'initialize', function () {
} );
this.${3:methodName} = function(){
};
}
} );
AMD Named Module
define(
'${1:module_id}',
[
'${2:dependencies}'
], function (
${3:DependParam}
) {
${3:DependParam}.${4:methodToCall}();
} );
Usage
Tab through the snippet params and fill in your information.