Skip to content

Commit

Permalink
Annotations for linker and proper dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dgreensp committed Jun 17, 2013
1 parent a6e1619 commit 3df9d66
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 2 deletions.
2 changes: 2 additions & 0 deletions examples/unfinished/shark/.meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ preserve-inputs
ui
html5-tokenizer
spacebars
ordered-dict
ejson
1 change: 1 addition & 0 deletions packages/html5-tokenizer/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.build*
2 changes: 1 addition & 1 deletion packages/html5-tokenizer/html5_tokenizer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

// @export HTML5Tokenizer
HTML5Tokenizer = {
tokenize: function (inputString) {
var tokens = [];
Expand Down
1 change: 1 addition & 0 deletions packages/spacebars/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.build*
2 changes: 2 additions & 0 deletions packages/spacebars/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ Package.describe({
Package.on_use(function (api, where) {
where = where || ['client', 'server'];

api.use('random', where);
api.use('underscore', where);
api.use('jsparse', where);
api.use('html5-tokenizer', where);
api.add_files(['spacebars.js'], where);
});

Package.on_test(function (api) {
api.use('underscore');
api.use('spacebars');
api.use('tinytest');
api.add_files('spacebars_tests.js', ['client', 'server']);
Expand Down
1 change: 1 addition & 0 deletions packages/spacebars/spacebars.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

// @export Spacebars
Spacebars = {};

var makeStacheTagStartRegex = function (r) {
Expand Down
1 change: 1 addition & 0 deletions packages/ui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.build*
4 changes: 4 additions & 0 deletions packages/ui/component.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var constructorsLocked = true;

// @export Component
Component = function (args) {
if (constructorsLocked)
throw new Error("To create a Component, " +
Expand Down Expand Up @@ -556,18 +557,21 @@ Component.extend = function (options) {
return newClass;
};

// @export TextComponent
TextComponent = Component.extend({
render: function (buf) {
buf.text(this.getArg('text'));
}
});

// @export RawHtmlComponent
RawHtmlComponent = Component.extend({
render: function (buf) {
buf.rawHtml(this.getArg('html'));
}
});

// @export RootComponent
RootComponent = Component.extend({
constructed: function () {
this.stage = Component.ADDED;
Expand Down
3 changes: 3 additions & 0 deletions packages/ui/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ Package.describe({
});

Package.on_use(function (api) {
api.use('deps');
api.use('random');
api.use('domutils');
api.use('underscore', 'client');
api.use('ejson', 'client');

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/renderbuffer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

// @export RenderBuffer
RenderBuffer = function (component) {
this._component = component;
this._htmlBuf = [];
Expand Down

0 comments on commit 3df9d66

Please sign in to comment.