cheminfo-build
Advanced tools
Comparing version
@@ -23,3 +23,3 @@ #!/usr/bin/env node | ||
requiresArg: true, | ||
default: process.cwd() | ||
default: process.cwd(), | ||
}) | ||
@@ -30,3 +30,3 @@ .option('out', { | ||
requiresArg: true, | ||
default: 'dist' | ||
default: 'dist', | ||
}) | ||
@@ -36,3 +36,3 @@ .option('out-name', { | ||
describe: 'Name of the output file', | ||
requiresArg: true | ||
requiresArg: true, | ||
}) | ||
@@ -42,3 +42,3 @@ .option('root', { | ||
describe: 'Root name of the library', | ||
requiresArg: true | ||
requiresArg: true, | ||
}) | ||
@@ -48,11 +48,11 @@ .option('entry', { | ||
describe: 'Library entry point', | ||
requiresArg: true | ||
requiresArg: true, | ||
}) | ||
.option('minify', { | ||
default: true, | ||
describe: 'Generate a .min.js file' | ||
describe: 'Generate a .min.js file', | ||
}) | ||
.option('source-map', { | ||
default: true, | ||
describe: 'Generate source maps' | ||
describe: 'Generate source maps', | ||
}) | ||
@@ -95,10 +95,10 @@ .strict() | ||
'last 2 safari versions', | ||
'last 2 firefox version' | ||
] | ||
} | ||
} | ||
] | ||
] | ||
}) | ||
] | ||
'last 2 firefox version', | ||
], | ||
}, | ||
}, | ||
], | ||
], | ||
}), | ||
], | ||
}; | ||
@@ -108,4 +108,4 @@ if (minify) { | ||
terser({ | ||
sourcemap: program.sourceMap | ||
}) | ||
sourcemap: program.sourceMap, | ||
}), | ||
); | ||
@@ -124,3 +124,3 @@ } | ||
banner: banner.getMainBanner(pkg), | ||
sourcemap: program.sourceMap | ||
sourcemap: program.sourceMap, | ||
}); | ||
@@ -134,3 +134,3 @@ if (program.minify) { | ||
name: name, | ||
sourcemap: program.sourceMap | ||
sourcemap: program.sourceMap, | ||
}); | ||
@@ -137,0 +137,0 @@ } |
{ | ||
"name": "cheminfo-build", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "CLI tool to build ChemInfo packages", | ||
@@ -25,7 +25,7 @@ "keywords": [], | ||
"dependencies": { | ||
"@babel/core": "^7.5.4", | ||
"@babel/preset-env": "^7.5.4", | ||
"rollup": "^1.17.0", | ||
"@babel/core": "^7.5.5", | ||
"@babel/preset-env": "^7.5.5", | ||
"rollup": "^1.19.4", | ||
"rollup-plugin-babel": "^4.3.3", | ||
"rollup-plugin-commonjs": "^10.0.1", | ||
"rollup-plugin-commonjs": "^10.0.2", | ||
"rollup-plugin-json": "^4.0.0", | ||
@@ -36,3 +36,3 @@ "rollup-plugin-node-resolve": "^5.2.0", | ||
}, | ||
"gitHead": "c3b7ad4811e467db0f244c88c70355616fdc6132" | ||
"gitHead": "fcaa4a8ffced6a35f1f0238049e787c3f7f2d185" | ||
} |
@@ -22,3 +22,3 @@ 'use strict'; | ||
module.exports = { | ||
getMainBanner | ||
getMainBanner, | ||
}; |
5688
0.35%Updated
Updated
Updated