Random little cleanups

This commit is contained in:
Timothy Farrell 2018-07-25 03:55:00 -05:00
parent 79b9cd734b
commit 4ba38763f4
7 changed files with 14 additions and 18 deletions

View File

@ -53,7 +53,7 @@ These are `npm --global` dependencies:
# Run Tests
`lerna run test`
Run `npm test` in the base project directory.
# Development

View File

@ -8,11 +8,11 @@
"scripts": {
"check_code_format": "nodejs node_modules/prettier/bin-prettier.js --config ./prettier.config.js --list-different \"{.,{packages,bin}/**/!(dist)}/*.{js,json,md}\"",
"format_code": "nodejs node_modules/prettier/bin-prettier.js --config ./prettier.config.js --write \"{.,{packages,bin}/**/!(dist)}/*.{js,json,md}\"",
"pre-commit": "sh ./bin/pre-commit.sh"
"test": "sh ./bin/pre-commit.sh"
},
"husky": {
"hooks": {
"pre-commit": "npm run pre-commit"
"pre-commit": "npm run test"
}
}
}

View File

@ -2,9 +2,7 @@
"name": "Gallery",
"version": "0.0.1",
"description": "Personal photo gallery",
"keywords": [
"javascript"
],
"keywords": ["javascript"],
"author": "Timothy Farrell <tim@thecookiejar.me> (https://github.com/explorigin)",
"license": "Apache-2.0",
"scripts": {
@ -21,11 +19,10 @@
"frptools": "~3.2.0",
"linear-partitioning": "0.3.2",
"pica": "~2.0.8",
"pouchdb-adapter-http": "~7.0.0",
"pouchdb-adapter-idb": "~7.0.0",
"pouchdb-attachmentproxy": "~1.0.0",
"pouchdb-core": "~7.0.0",
"pouchdb-find": "~7.0.0",
"pouchdb-replication": "~7.0.0",
"pouchtype": "~1.0.0",
"request": "~2.87.0",
"router": "2.1.0",

View File

@ -25,10 +25,11 @@ module.exports = {
server.app.listen(API_PORT, API_HOST);
console.log(`Running api host on ${API_HOST}:${API_PORT}`);
},
compress: true,
contentBase: path.join(__dirname, 'dist'),
headers: formatHeaders(),
host: '0.0.0.0',
https: true,
headers: formatHeaders(),
proxy: {
'/api': `http://${API_HOST}:${API_PORT}`
}

View File

@ -1,13 +1,9 @@
{
"name": "pouchtype",
"version": "1.0.1",
"version": "1.0.2",
"description": "Document Management Layer for PouchDB",
"main": "src/index.js",
"files": [
"dist",
"lib",
"src"
],
"files": ["dist", "lib", "src"],
"scripts": {
"test": "node ../../bin/runTests.js ./",
"pre-commit": "npm run test"
@ -15,7 +11,9 @@
"author": "Timothy Farrell <tim@thecookiejar.me> (https://github.com/explorigin)",
"license": "Apache-2.0",
"dependencies": {
"frptools": "~3.2.1",
"frptools": "~3.2.1"
},
"devDependencies": {
"pouchdb": "~7.0.0"
}
}

View File

@ -1,2 +1,2 @@
import { isObject, deepAssign, pouchDocHash, pouchDocArrayHash } from './utils.js';
export { isObject, deepAssign, pouchDocHash, pouchDocArrayHash } from './utils.js';
export { TypeHandler } from './type.js';

View File

@ -1,4 +1,4 @@
import { prop, computed, id } from '../node_modules/frptools/src/index.js';
import { prop, computed, id } from 'frptools';
import { Watcher } from './watcher.js';
import { pouchDocArrayHash } from './utils.js';