Skip to content
This repository has been archived by the owner on Mar 1, 2019. It is now read-only.

Template compiler fix #251

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tungstenjs",
"version": "0.13.5",
"version": "0.14.0",
"description": "A modular framework for creating web UIs with high-performance rendering on both server and client.",
"author": "Matt DeGennaro <mdegennaro@wayfair.com>",
"license": "Apache-2.0",
Expand Down
4 changes: 0 additions & 4 deletions precompile/tungsten_template/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
*/
'use strict';

var path = require('path');
var _ = require('underscore');
var compiler = require('../../src/template/compiler');

Expand All @@ -22,9 +21,6 @@ module.exports = function(contents) {
this.cacheable();
var templateData = compiler(contents);

var templatePath = path.relative(path.dirname(module.dest), __dirname + '/template');
templatePath = templatePath.replace(/\\/g, '/');

var output = 'var Template=require("tungstenjs").Template;';
output += 'var template=new Template(' + JSON.stringify(templateData.templateObj) + ');';
output += 'module.exports=template;';
Expand Down
3 changes: 1 addition & 2 deletions test/bump-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,11 @@ function final(error, match) {
});
},
function writeJson(package, callback) {
package.files = ['dist'];
fs.writeFile(packagePath, JSON.stringify(package, null, 2), function(error) {
if (error) {
callback(error);
} else {
prettyLog.success('Successfully added [files] attribute to package.json');
prettyLog.success('Successfully updated package.json');
}
});
}
Expand Down