Exemplo n.º 1
0
            webassemble(f.src, f.dest, options).end(function (parser) {
                // Assemble bundles
                time = Date.now() - time;
                grunt.log.ok('Done [' + parser.modulesFiles.length + ' modules from ' +
                    count(parser.packages) + ' packages in ' + (time / 1000).toFixed(2) +
                    's]');
                grunt.log.ok('File ' + f.dest + ' created.');

                cb();
            });
Exemplo n.º 2
0
	var copy = compact(map(data, function self(value, key) {
		if (isArray(value)) {
			return every(value, pluck('read')) ? null : value.map(function (art) {
				var obj = {};
				this.forEach(function (name) {
					obj[name] = art[name];
				});
				return obj;
			}, ['author', 'date', 'description', 'guid', 'headTitle', 'link', 'read',
				 'skipAuthor', 'skipTitle', 'title']);
		} else if (value) {
			value = compact(map(value, self));
			return count(value) ? value : null;
		} else {
			return false;
		}
	}));
Exemplo n.º 3
0
				value.on('update', function () {
					if (!count(this)) {
						el.parentNode.removeChild(el);
					}
				});