forked from ivands/crypto-address-validator
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathGruntfile.js
42 lines (40 loc) · 1.17 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-simple-mocha');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-mocha');
grunt.initConfig({
uglify: {
dist: {
files: {
'dist/wallet-address-validator.min.js': [
'bower_components/jssha/src/sha256.js',
'src/base58.js',
'src/crypto_utils.js',
'src/currencies.js',
'src/wallet_address_validator.js'
]
}
}
},
// running tests in node
simplemocha: {
options: {
timeout: 3000,
ignoreLeaks: false,
ui: 'bdd',
reporter: 'spec'
},
all: { src: ['test/**/*.js'] }
},
// running tests in browser
mocha: {
all: {
src: ['test/runner.html'],
},
options: {
run: true
}
}
});
grunt.registerTask('default', ['simplemocha', 'uglify', 'mocha']);
};