Skip to content

Commit

Permalink
⬆️ Upgrading dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nuintun committed Dec 28, 2017
1 parent 0db5f5b commit c21b23c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 6 deletions.
10 changes: 9 additions & 1 deletion lib/adodb.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "MIT",
"keywords": ["sql", "adodb", "access", "database", "node-adodb", "microsoft adodb"],
"homepage": "https://github.com/nuintun/node-adodb",
"description": "A Node.js JavaScript Client implementing the ADODB protocol .",
"description": "A Node.js JavaScript Client implementing the ADODB protocol.",
"author": {
"name": "nuintun",
"email": "[email protected]"
Expand All @@ -28,9 +28,9 @@
},
"devDependencies": {
"chai": "^4.1.2",
"rollup": "^0.52.1",
"rollup": "^0.53.0",
"holding": "^2.0.1",
"uglify-es": "^3.2.2"
"uglify-es": "^3.3.2"
},
"readmeFilename": "README.md",
"scripts": {
Expand Down
22 changes: 20 additions & 2 deletions rollup.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
/**
* @module rollup
* @license MIT
* @version 2017/11/09
*/

'use strict';

const fs = require('fs');
const rollup = require('rollup');
const uglify = require('uglify-es');
const pkg = require('./package.json');

const banner = `/**
* @module ${pkg.name}
* @author ${pkg.author.name}
* @license ${pkg.license}
* @version ${pkg.version}
* @description ${pkg.description}
* @see ${pkg.homepage}
*/
`;

rollup
.rollup({
Expand All @@ -16,7 +33,8 @@ rollup
.generate({
format: 'iife',
indent: true,
strict: true
strict: true,
banner: banner
})
.then(function(result) {
result = uglify.minify(result.code, {
Expand All @@ -25,7 +43,7 @@ rollup
mangle: { eval: true }
});

fs.writeFileSync(min, result.code);
fs.writeFileSync(min, banner + result.code);
console.log(` Build ${min} success!`);
})
.catch(function(error) {
Expand Down

0 comments on commit c21b23c

Please sign in to comment.