Remove jshint/jscs and fix babelify

(cherry picked from commit e4b810fe412bd5e383507668ef2d60320c31b1ca)
This commit is contained in:
Mahrud Sayrafi 2018-01-04 07:59:21 -08:00 committed by Sanjana Rajan
parent 6886cd648a
commit 370a15e2a1
3 changed files with 6 additions and 14 deletions

View File

@ -46,7 +46,7 @@ module.exports = function(grunt) {
browserifyOptions: {
standalone: 'openpgp'
},
external: [ 'crypto', 'buffer', 'node-localstorage', 'node-fetch' ],
external: [ 'crypto', 'buffer', 'node-localstorage', 'node-fetch', 'asn1.js' ],
transform: [
["babelify", {
plugins: ["transform-async-to-generator",
@ -55,11 +55,7 @@ module.exports = function(grunt) {
"transform-runtime"],
ignore: ['*.min.js'],
presets: [
["babel-preset-env", {
"targets": {
"node": "current"
}
}]
"es2015"
]
}]
],
@ -84,11 +80,7 @@ module.exports = function(grunt) {
"transform-runtime"],
ignore: ['*.min.js'],
presets: [
["babel-preset-env", {
"targets": {
"node": "current"
}
}]
"es2015"
]
}]
],
@ -321,7 +313,7 @@ module.exports = function(grunt) {
grunt.registerTask('default', ['clean', 'copy:zlib', 'browserify', 'version', 'uglify', 'replace_min']);
grunt.registerTask('documentation', ['jsdoc']);
// Test/Dev tasks
grunt.registerTask('test', ['jshint', 'jscs', 'mochaTest']);
grunt.registerTask('test', [ 'mochaTest']);
grunt.registerTask('coverage', ['mocha_istanbul:coverage']);
grunt.registerTask('saucelabs', ['default', 'copy:browsertest', 'connect:test', 'saucelabs-mocha']);

View File

@ -25,7 +25,7 @@
'use strict';
import asn1 from 'asn1';
import asn1 from 'asn1.js';
import jwk2pem from 'jwk-to-pem';
import curves from './curves.js';

View File

@ -17,7 +17,7 @@ export default openpgp;
* import { encryptMessage } from 'openpgp.js'
* encryptMessage(keys, text)
*/
export * from './openpgp';
// export * from './openpgp';
/**
* @see module:key