ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Base Snippets

by base ALL

Sublime Text 2 & 3 snippets for Base.

Details

Installs

  • Total 1K
  • Win 870
  • Mac 180
  • Linux 130
Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15
Windows 0 0 0 0 0 1 0 0 0 0 1 0 0 1 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 2 0 0 0 1
Mac 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 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 1 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 1 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Base Snippets

Sublime Text snippets for Base.

Getting Started

Heads up! Until this is registered with package control, you'll need to install manually.

1. Installation

Package Control

If you already have Package Control installed in Sublime Text:

  • Select “Install Package” from the Command Palette: Ctrl+Shift+P on Windows and Linux or ⇧⌘P on OS X)
  • Search for “Base Snippets” and click enter.

Manual Installation

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

Snippets

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

.pipe(app.dest('dest'))

emit

app.emit('name', 'value');

on

app.on('name', function(value) {

});

through

through.obj(function(file, enc, next) {

  next(null, file);
})

Author

Jon Schlinkert

License

Copyright © 2016, Jon Schlinkert. Released under the MIT license.