update grunt build process

This commit is contained in:
pointbiz 2015-01-05 19:09:03 -04:00
parent f6c6bbe53d
commit 6d7012f260
4 changed files with 29 additions and 8 deletions

View file

@ -1,3 +1,5 @@
var packageObject = require('./package.json');
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
@ -39,13 +41,26 @@ module.exports = function (grunt) {
{ token: "//ninja.detailwallet.js", file: "./src/ninja.detailwallet.js" },
{ token: "//qrcode.js", file: "./src/qrcode.js" },
{ token: "//securerandom.js", file: "./src/securerandom.js" },
{ token: "//main.css", file: "./src/main.css" }
{ token: "//main.css", file: "./src/main.css" },
{ token: "//version", string: packageObject.version }
]
}
},
lineending: { // Task
dist: { // Target
options: { // Target options
eol: 'lf'
},
files: { // Files to process
'./bitaddress.org.html': ['./bitaddress.org.html']
}
}
}
});
grunt.file.defaultEncoding = 'utf-8';
grunt.loadNpmTasks("grunt-combine");
grunt.registerTask("default", ["combine:single"]);
grunt.loadNpmTasks('grunt-lineending');
grunt.registerTask("default", ["combine:single", "lineending"]);
};

View file

@ -6879,7 +6879,7 @@ body, html { height: 99%; }
</div>
<div class="authorpgp">
<span class="item">
<a href="pgpsignedmsg.txt" target="_blank"><span id="footerlabelversion">Version History</span> (v2.9.5)</a>
<a href="pgpsignedmsg.txt" target="_blank"><span id="footerlabelversion">Version History</span> (2.9.6)</a>
(<a href="ninja_bitaddress.org.txt" target="_blank" id="footerlabelpgp">PGP</a>)
</span>
<span class="item">527B 5C82 B1F6 B2DB 72A0<br />ECBF 8749 7B91 6397 4F5A</span>

View file

@ -1,14 +1,20 @@
{
"name": "bitaddress.org",
"version": "2.9.5",
"sha1sum": "49713367a1fa3f9ed189702064fd7cc5c3584699",
"version": "2.9.6",
"sha1sum": "b392e9bcc432b1c246317378f90c84544e5401d5",
"sha256sum": "c613440db6af79ceda44e98affbc9d4cc3914c2d39b304d5bacf13beab039e82",
"description": "Open Source JavaScript Client-Side Bitcoin Wallet Generator",
"main": "Gruntfile.js",
"dependencies": {
"grunt": "~0.4.1",
"grunt-combine": "~0.8.3"
"grunt-combine": "~0.8.3",
"grunt-lineending": "~0.2.4"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-combine": "~0.8.3",
"grunt-lineending": "~0.2.4"
},
"devDependencies": {},
"scripts": {
"test": ""
},

View file

@ -465,7 +465,7 @@
</div>
<div class="authorpgp">
<span class="item">
<a href="pgpsignedmsg.txt" target="_blank"><span id="footerlabelversion">Version History</span> (v2.9.5)</a>
<a href="pgpsignedmsg.txt" target="_blank"><span id="footerlabelversion">Version History</span> (//version)</a>
(<a href="ninja_bitaddress.org.txt" target="_blank" id="footerlabelpgp">PGP</a>)
</span>
<span class="item">527B 5C82 B1F6 B2DB 72A0<br />ECBF 8749 7B91 6397 4F5A</span>