AMD Snippets
Sublime Text AMD Snippets
Labels snippets
Details
Installs
- Total 2K
- Win 1K
- Mac 347
- Linux 244
Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
Mac | 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 |
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.