Speed up initial builds
This commit is contained in:
parent
9bf7bbf45e
commit
a2f53b2ce2
10
Gruntfile.js
10
Gruntfile.js
|
@ -302,14 +302,16 @@ module.exports = function(grunt) {
|
|||
}
|
||||
|
||||
// Build tasks
|
||||
grunt.registerTask('version', ['replace:openpgp', 'replace:openpgp_debug']);
|
||||
grunt.registerTask('version', ['replace:openpgp']);
|
||||
grunt.registerTask('replace_min', ['replace:openpgp_min', 'replace:worker_min']);
|
||||
grunt.registerTask('default', ['clean', 'copy:bzip2', 'browserify', 'version', 'uglify', 'replace_min']);
|
||||
grunt.registerTask('build', ['clean', 'copy:bzip2', 'browserify:openpgp', 'browserify:worker', 'version', 'uglify', 'replace_min']);
|
||||
grunt.registerTask('build_debug', ['copy:bzip2', 'browserify:openpgp_debug', 'browserify:worker']);
|
||||
grunt.registerTask('documentation', ['jsdoc']);
|
||||
grunt.registerTask('default', ['build']);
|
||||
// Test/Dev tasks
|
||||
grunt.registerTask('test', ['eslint', 'mochaTest']);
|
||||
grunt.registerTask('coverage', ['mocha_istanbul:coverage']);
|
||||
grunt.registerTask('saucelabs', ['default', 'copy:browsertest', 'connect:test', 'saucelabs-mocha']);
|
||||
grunt.registerTask('browsertest', ['default', 'copy:browsertest', 'connect:test', 'watch']);
|
||||
grunt.registerTask('saucelabs', ['build', 'browserify:unittests', 'copy:browsertest', 'connect:test', 'saucelabs-mocha']);
|
||||
grunt.registerTask('browsertest', ['build', 'copy:browsertest', 'connect:test', 'watch']);
|
||||
|
||||
};
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @requires asmcrypto.js
|
||||
*/
|
||||
|
||||
import { AES_ECB } from 'asmcrypto.js/dist_es8/aes/ecb';
|
||||
import { AES_ECB } from 'asmcrypto.js/dist_es5/aes/ecb';
|
||||
|
||||
// TODO use webCrypto or nodeCrypto when possible.
|
||||
function aes(length) {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* @module crypto/cmac
|
||||
*/
|
||||
|
||||
import { AES_CBC } from 'asmcrypto.js/dist_es8/aes/cbc';
|
||||
import { AES_CBC } from 'asmcrypto.js/dist_es5/aes/cbc';
|
||||
import util from '../util';
|
||||
|
||||
const webCrypto = util.getWebCrypto();
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
* @module crypto/eax
|
||||
*/
|
||||
|
||||
import { AES_CTR } from 'asmcrypto.js/dist_es8/aes/ctr';
|
||||
import { AES_CTR } from 'asmcrypto.js/dist_es5/aes/ctr';
|
||||
import CMAC from './cmac';
|
||||
import util from '../util';
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
* @module crypto/gcm
|
||||
*/
|
||||
|
||||
import { AES_GCM } from 'asmcrypto.js/dist_es8/aes/gcm';
|
||||
import { AES_GCM } from 'asmcrypto.js/dist_es5/aes/gcm';
|
||||
import util from '../util';
|
||||
|
||||
const webCrypto = util.getWebCrypto(); // no GCM support in IE11, Safari 9
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
* @module crypto/hash
|
||||
*/
|
||||
|
||||
import { Sha1 } from 'asmcrypto.js/dist_es8/hash/sha1/sha1';
|
||||
import { Sha256 } from 'asmcrypto.js/dist_es8/hash/sha256/sha256';
|
||||
import { Sha512 } from 'asmcrypto.js/dist_es8/hash/sha512/sha512';
|
||||
import { Sha1 } from 'asmcrypto.js/dist_es5/hash/sha1/sha1';
|
||||
import { Sha256 } from 'asmcrypto.js/dist_es5/hash/sha256/sha256';
|
||||
import { Sha512 } from 'asmcrypto.js/dist_es5/hash/sha512/sha512';
|
||||
import sha224 from 'hash.js/lib/hash/sha/224';
|
||||
import sha384 from 'hash.js/lib/hash/sha/384';
|
||||
import { ripemd160 } from 'hash.js/lib/hash/ripemd';
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
* @requires util
|
||||
*/
|
||||
|
||||
import { AES_CFB } from 'asmcrypto.js/dist_es8/aes/cfb';
|
||||
import { AES_CFB } from 'asmcrypto.js/dist_es5/aes/cfb';
|
||||
|
||||
import stream from 'web-stream-tools';
|
||||
import config from '../config';
|
||||
|
|
Loading…
Reference in New Issue
Block a user