Sublime Text snippets for Base.
Heads up! Until this is registered with package control, you'll need to install manually.
If you already have Package Control installed in Sublime Text:
Go to Preferences -> Browse Packages
, and then either download and unzip this plugin into that directory, or:
git clone https://github.com/node-base/sublime-text-base-snippets.git
gen
Generator.
'use strict'; module.exports = function(app, base) { app.task('default', function(cb) { console.log('generator', app.name, '> task', this.name); cb(); }); };
gen empty
'use strict'; module.exports = function(app, base) { };
app
Exported instance.
'use strict'; var App = require('base'); var app = new App(); app.task('default', function(cb) { console.log('appfile.js', '> task', this.name); cb(); }); module.exports = app;
sub
Sub-generator.
module.exports = function(app, base) { };
plugin
'use strict'; module.exports = function(options) { return function(app, base) { this.define('name', function() { }); }; };
reg
app.register('name', function(app, base) { });
task
app.task('default', function(cb) { cb(); });
src
app.src('*.js') .pipe(app.renderFile('*'))
dest
emit
app.emit('name', 'value');
on
app.on('name', function(value) { });
through
through.obj(function(file, enc, next) { next(null, file); })
Jon Schlinkert
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4