Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
var packageObject = require('./package.json');

module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
combine: {
single: {
input: "./src/bitaddress-ui.html",
output: "./liteaddress.org.html",
output: "./bitaddress.org.html",
tokens: [
{ token: "//array.map.js", file: "./src/array.map.js" },
{ token: "//biginteger.js", file: "./src/biginteger.js" },
Expand All @@ -24,6 +26,7 @@ module.exports = function (grunt) {
{ token: "//cryptojs.ripemd160.js", file: "./src/cryptojs.ripemd160.js" },
{ token: "//crypto-scrypt.js", file: "./src/crypto-scrypt.js" },
{ token: "//ellipticcurve.js", file: "./src/ellipticcurve.js" },
{ token: "//secrets.js", file: "./src/secrets.js" },
{ token: "//ninja.key.js", file: "./src/ninja.key.js" },
{ token: "//ninja.misc.js", file: "./src/ninja.misc.js" },
{ token: "//ninja.onload.js", file: "./src/ninja.onload.js" },
Expand All @@ -34,16 +37,30 @@ module.exports = function (grunt) {
{ token: "//ninja.bulkwallet.js", file: "./src/ninja.bulkwallet.js" },
{ token: "//ninja.brainwallet.js", file: "./src/ninja.brainwallet.js" },
{ token: "//ninja.vanitywallet.js", file: "./src/ninja.vanitywallet.js" },
{ token: "//ninja.splitwallet.js", file: "./src/ninja.splitwallet.js" },
{ 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"]);
};
4 changes: 2 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ JavaScript Client-Side Vertcoin Wallet Generator

GPG key for validation: http://pgp.mit.edu/pks/lookup?op=vindex&search=0xFD948CCC1EAB2FB5

A fork of the liteaddress.org project located at:
https://github.com/litecoin-project/liteaddress.org
A fork of the bitaddress.org project located at:
https://github.com/pointbiz/bitaddress.org

Provides an all-in-one HTML document with embedded JavaScript/Css/Images. The JavaScript is readable not minified and contains no XMLHttpRequest's (no AJAX). The benefit of this technique is you can load the JavaScript locally and trust that the JavaScript did not change after being loaded.

Expand Down
Loading