Skip to content
This repository has been archived by the owner on Aug 3, 2022. It is now read-only.

Commit

Permalink
v2.1.15
Browse files Browse the repository at this point in the history
- Update dependencies
- Add reset shortcut
  • Loading branch information
ndaidong committed Jun 6, 2017
1 parent 0e75e2c commit e829852
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -12,3 +12,7 @@ coverage
.nyc_output

storage

yarn.lock
coverage.lcov
package-lock.json
12 changes: 7 additions & 5 deletions package.json
@@ -1,5 +1,5 @@
{
"version": "2.1.14",
"version": "2.1.15",
"name": "flat-db",
"description": "Flat-file based data storage",
"homepage": "https://www.npmjs.com/package/flat-db",
Expand All @@ -21,19 +21,21 @@
"test": "npm run tape",
"posttest": "npm run report",
"coveralls": "npm test && cat ./coverage/lcov.info | coveralls",
"try": "node test/manual"
"try": "node test/manual",
"reset": "node reset"
},
"dependencies": {
"bellajs": "6.x.x",
"bellajs": "7.x.x",
"debug": "2.x.x",
"mkdirp": "0.x.x"
"mkdirp": "0.x.x",
"stabilize.js": "2.x.x"
},
"devDependencies": {
"coveralls": "2.x.x",
"eslint": "3.x.x",
"eslint-config-ggc": "1.x.x",
"nsp": "2.x.x",
"nyc": "10.x.x",
"nyc": "11.x.x",
"tap-spec": "4.x.x",
"tape": "4.x.x"
},
Expand Down
31 changes: 31 additions & 0 deletions reset.js
@@ -0,0 +1,31 @@
#!/usr/bin/env node

var {
existsSync,
unlinkSync
} = require('fs');
var exec = require('child_process').execSync;

var dirs = [
'.nyc_output',
'coverage',
'node_modules'
];

var files = [
'yarn.lock',
'package-lock.json',
'coverage.lcov'
];

dirs.forEach((d) => {
exec(`rm -rf ${d}`);
});

files.forEach((f) => {
if (existsSync(f)) {
unlinkSync(f);
}
});


5 changes: 4 additions & 1 deletion src/main.js
Expand Up @@ -4,10 +4,13 @@
**/

var {
stabilize,
copies
} = require('bellajs');

var {
stabilize
} = require('stabilize.js');

var config = require('./configs');

var {
Expand Down
2 changes: 1 addition & 1 deletion test/db/movies.json
@@ -1 +1 @@
{"name":"movies","lastModified":1496026601986,"schema":{"title":"","imdb":0},"entries":[{"_id_":"JUBxByiVNZoQWlwOkviL2bYCNAQ9o1t8","_ts_":1495990464634,"title":"Independence Day: Resurgence","imdb":7.1}]}
{"name":"movies","lastModified":1496731607559,"schema":{"title":"","imdb":0},"entries":[{"_id_":"JUBxByiVNZoQWlwOkviL2bYCNAQ9o1t8","_ts_":1495990464634,"title":"Independence Day: Resurgence","imdb":7.1}]}

0 comments on commit e829852

Please sign in to comment.