Random little cleanups
This commit is contained in:
parent
79b9cd734b
commit
4ba38763f4
@ -53,7 +53,7 @@ These are `npm --global` dependencies:
|
|||||||
|
|
||||||
# Run Tests
|
# Run Tests
|
||||||
|
|
||||||
`lerna run test`
|
Run `npm test` in the base project directory.
|
||||||
|
|
||||||
# Development
|
# Development
|
||||||
|
|
||||||
|
|||||||
@ -8,11 +8,11 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"check_code_format": "nodejs node_modules/prettier/bin-prettier.js --config ./prettier.config.js --list-different \"{.,{packages,bin}/**/!(dist)}/*.{js,json,md}\"",
|
"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}\"",
|
"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": {
|
"husky": {
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"pre-commit": "npm run pre-commit"
|
"pre-commit": "npm run test"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,9 +2,7 @@
|
|||||||
"name": "Gallery",
|
"name": "Gallery",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "Personal photo gallery",
|
"description": "Personal photo gallery",
|
||||||
"keywords": [
|
"keywords": ["javascript"],
|
||||||
"javascript"
|
|
||||||
],
|
|
||||||
"author": "Timothy Farrell <tim@thecookiejar.me> (https://github.com/explorigin)",
|
"author": "Timothy Farrell <tim@thecookiejar.me> (https://github.com/explorigin)",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -21,11 +19,10 @@
|
|||||||
"frptools": "~3.2.0",
|
"frptools": "~3.2.0",
|
||||||
"linear-partitioning": "0.3.2",
|
"linear-partitioning": "0.3.2",
|
||||||
"pica": "~2.0.8",
|
"pica": "~2.0.8",
|
||||||
"pouchdb-adapter-http": "~7.0.0",
|
|
||||||
"pouchdb-adapter-idb": "~7.0.0",
|
"pouchdb-adapter-idb": "~7.0.0",
|
||||||
|
"pouchdb-attachmentproxy": "~1.0.0",
|
||||||
"pouchdb-core": "~7.0.0",
|
"pouchdb-core": "~7.0.0",
|
||||||
"pouchdb-find": "~7.0.0",
|
"pouchdb-find": "~7.0.0",
|
||||||
"pouchdb-replication": "~7.0.0",
|
|
||||||
"pouchtype": "~1.0.0",
|
"pouchtype": "~1.0.0",
|
||||||
"request": "~2.87.0",
|
"request": "~2.87.0",
|
||||||
"router": "2.1.0",
|
"router": "2.1.0",
|
||||||
|
|||||||
@ -25,10 +25,11 @@ module.exports = {
|
|||||||
server.app.listen(API_PORT, API_HOST);
|
server.app.listen(API_PORT, API_HOST);
|
||||||
console.log(`Running api host on ${API_HOST}:${API_PORT}`);
|
console.log(`Running api host on ${API_HOST}:${API_PORT}`);
|
||||||
},
|
},
|
||||||
|
compress: true,
|
||||||
contentBase: path.join(__dirname, 'dist'),
|
contentBase: path.join(__dirname, 'dist'),
|
||||||
|
headers: formatHeaders(),
|
||||||
host: '0.0.0.0',
|
host: '0.0.0.0',
|
||||||
https: true,
|
https: true,
|
||||||
headers: formatHeaders(),
|
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': `http://${API_HOST}:${API_PORT}`
|
'/api': `http://${API_HOST}:${API_PORT}`
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,13 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "pouchtype",
|
"name": "pouchtype",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"description": "Document Management Layer for PouchDB",
|
"description": "Document Management Layer for PouchDB",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"files": [
|
"files": ["dist", "lib", "src"],
|
||||||
"dist",
|
|
||||||
"lib",
|
|
||||||
"src"
|
|
||||||
],
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "node ../../bin/runTests.js ./",
|
"test": "node ../../bin/runTests.js ./",
|
||||||
"pre-commit": "npm run test"
|
"pre-commit": "npm run test"
|
||||||
@ -15,7 +11,9 @@
|
|||||||
"author": "Timothy Farrell <tim@thecookiejar.me> (https://github.com/explorigin)",
|
"author": "Timothy Farrell <tim@thecookiejar.me> (https://github.com/explorigin)",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"frptools": "~3.2.1",
|
"frptools": "~3.2.1"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
"pouchdb": "~7.0.0"
|
"pouchdb": "~7.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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';
|
export { TypeHandler } from './type.js';
|
||||||
|
|||||||
@ -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 { Watcher } from './watcher.js';
|
||||||
import { pouchDocArrayHash } from './utils.js';
|
import { pouchDocArrayHash } from './utils.js';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user