update grunt build process
This commit is contained in:
parent
f6c6bbe53d
commit
6d7012f260
4 changed files with 29 additions and 8 deletions
19
Gruntfile.js
19
Gruntfile.js
|
@ -1,3 +1,5 @@
|
||||||
|
var packageObject = require('./package.json');
|
||||||
|
|
||||||
module.exports = function (grunt) {
|
module.exports = function (grunt) {
|
||||||
// Project configuration.
|
// Project configuration.
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
|
@ -39,13 +41,26 @@ module.exports = function (grunt) {
|
||||||
{ token: "//ninja.detailwallet.js", file: "./src/ninja.detailwallet.js" },
|
{ token: "//ninja.detailwallet.js", file: "./src/ninja.detailwallet.js" },
|
||||||
{ token: "//qrcode.js", file: "./src/qrcode.js" },
|
{ token: "//qrcode.js", file: "./src/qrcode.js" },
|
||||||
{ token: "//securerandom.js", file: "./src/securerandom.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.file.defaultEncoding = 'utf-8';
|
||||||
grunt.loadNpmTasks("grunt-combine");
|
grunt.loadNpmTasks("grunt-combine");
|
||||||
grunt.registerTask("default", ["combine:single"]);
|
grunt.loadNpmTasks('grunt-lineending');
|
||||||
|
grunt.registerTask("default", ["combine:single", "lineending"]);
|
||||||
};
|
};
|
||||||
|
|
|
@ -6879,7 +6879,7 @@ body, html { height: 99%; }
|
||||||
</div>
|
</div>
|
||||||
<div class="authorpgp">
|
<div class="authorpgp">
|
||||||
<span class="item">
|
<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>)
|
(<a href="ninja_bitaddress.org.txt" target="_blank" id="footerlabelpgp">PGP</a>)
|
||||||
</span>
|
</span>
|
||||||
<span class="item">527B 5C82 B1F6 B2DB 72A0<br />ECBF 8749 7B91 6397 4F5A</span>
|
<span class="item">527B 5C82 B1F6 B2DB 72A0<br />ECBF 8749 7B91 6397 4F5A</span>
|
||||||
|
|
14
package.json
14
package.json
|
@ -1,14 +1,20 @@
|
||||||
{
|
{
|
||||||
"name": "bitaddress.org",
|
"name": "bitaddress.org",
|
||||||
"version": "2.9.5",
|
"version": "2.9.6",
|
||||||
"sha1sum": "49713367a1fa3f9ed189702064fd7cc5c3584699",
|
"sha1sum": "b392e9bcc432b1c246317378f90c84544e5401d5",
|
||||||
|
"sha256sum": "c613440db6af79ceda44e98affbc9d4cc3914c2d39b304d5bacf13beab039e82",
|
||||||
"description": "Open Source JavaScript Client-Side Bitcoin Wallet Generator",
|
"description": "Open Source JavaScript Client-Side Bitcoin Wallet Generator",
|
||||||
"main": "Gruntfile.js",
|
"main": "Gruntfile.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"grunt": "~0.4.1",
|
"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": {
|
"scripts": {
|
||||||
"test": ""
|
"test": ""
|
||||||
},
|
},
|
||||||
|
|
|
@ -465,7 +465,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="authorpgp">
|
<div class="authorpgp">
|
||||||
<span class="item">
|
<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>)
|
(<a href="ninja_bitaddress.org.txt" target="_blank" id="footerlabelpgp">PGP</a>)
|
||||||
</span>
|
</span>
|
||||||
<span class="item">527B 5C82 B1F6 B2DB 72A0<br />ECBF 8749 7B91 6397 4F5A</span>
|
<span class="item">527B 5C82 B1F6 B2DB 72A0<br />ECBF 8749 7B91 6397 4F5A</span>
|
||||||
|
|
Loading…
Reference in a new issue