Comparing version 1.2.8 to 1.2.9
@@ -5,3 +5,3 @@ { | ||
"description": "Compile and manage your TypeScript project", | ||
"version": "1.2.8", | ||
"version": "1.2.9", | ||
"homepage": "https://github.com/basarat/grunt-ts", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -343,2 +343,10 @@ /// <reference path="../defs/node/node.d.ts"/> | ||
// Write out a binary file: | ||
var binaryTemplate = _.template('define(["<%= filenames %>"],function () {});'); | ||
var binaryFilesNames = files.before.concat(files.generated.concat(files.unordered.concat(files.after))); | ||
var binaryContent = binaryTemplate({ filenames: binaryFilesNames.join('","') }); | ||
var binFileExtension = '.bin.js'; | ||
var loaderFileWithoutExtension = path.dirname(loaderFile) + pathSeperator + path.basename(loaderFile, '.js'); | ||
fs.writeFileSync(loaderFileWithoutExtension + binFileExtension, binaryContent); | ||
// | ||
@@ -377,10 +385,2 @@ // Notice that we build inside out in the below sections: | ||
fs.writeFileSync(loaderFile, output); | ||
// Also write out a binary file: | ||
var binaryTemplate = _.template('define(["<%= filenames %>"],function () {});'); | ||
var binaryFilesNames = files.before.concat(files.generated.concat(files.unordered.concat(files.after))); | ||
var binaryContent = binaryTemplate({ filenames: binaryFilesNames.join('","') }); | ||
var binFileExtension = '.bin.js'; | ||
var loaderFileWithoutExtension = path.dirname(loaderFile) + pathSeperator + path.basename(loaderFile, '.js'); | ||
fs.writeFileSync(loaderFileWithoutExtension + binFileExtension, binaryContent); | ||
} | ||
@@ -387,0 +387,0 @@ } else { |
@@ -377,2 +377,11 @@ /// <reference path="../defs/node/node.d.ts"/> | ||
// Write out a binary file: | ||
var binaryTemplate = _.template('define(["<%= filenames %>"],function () {});'); | ||
var binaryFilesNames = files.before.concat(files.generated.concat(files.unordered.concat(files.after))); | ||
var binaryContent = binaryTemplate({ filenames: binaryFilesNames.join('","') }); | ||
var binFileExtension = '.bin.js'; | ||
var loaderFileWithoutExtension = path.dirname(loaderFile) + pathSeperator + path.basename(loaderFile, '.js'); | ||
fs.writeFileSync(loaderFileWithoutExtension + binFileExtension, binaryContent); | ||
// | ||
@@ -412,10 +421,2 @@ // Notice that we build inside out in the below sections: | ||
fs.writeFileSync(loaderFile, output); | ||
// Also write out a binary file: | ||
var binaryTemplate = _.template('define(["<%= filenames %>"],function () {});'); | ||
var binaryFilesNames = files.before.concat(files.generated.concat(files.unordered.concat(files.after))); | ||
var binaryContent = binaryTemplate({ filenames: binaryFilesNames.join('","') }); | ||
var binFileExtension = '.bin.js'; | ||
var loaderFileWithoutExtension = path.dirname(loaderFile) +pathSeperator+ path.basename(loaderFile, '.js'); | ||
fs.writeFileSync(loaderFileWithoutExtension+binFileExtension, binaryContent); | ||
} | ||
@@ -422,0 +423,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
162143