Skip to content

Commit

Permalink
Monorepo (#2014)
Browse files Browse the repository at this point in the history
* First crack at monorepo

* Update test command

* Update path to script

* Remove node 6 from CI
  • Loading branch information
brianc committed Dec 17, 2019
1 parent 2b59209 commit 1b5f3e3
Show file tree
Hide file tree
Showing 121 changed files with 5,539 additions and 58 deletions.
11 changes: 1 addition & 10 deletions .travis.yml
Expand Up @@ -2,7 +2,7 @@ language: node_js
dist: bionic

before_script:
- node script/create-test-tables.js pg://postgres@127.0.0.1:5432/postgres
- node packages/pg/script/create-test-tables.js pg://postgres@127.0.0.1:5432/postgres

env:
- CC=clang CXX=clang++ npm_config_clang=1 PGUSER=postgres PGDATABASE=postgres
Expand All @@ -17,15 +17,6 @@ addons:

matrix:
include:
# different Node versions on PostgreSQL 9.5 that require precise
- node_js: lts/argon
addons:
postgresql: "9.5"
dist: precise
- node_js: lts/boron
addons:
postgresql: "9.5"
dist: precise
- node_js: lts/carbon
addons:
postgresql: "9.5"
Expand Down
8 changes: 8 additions & 0 deletions lerna.json
@@ -0,0 +1,8 @@
{
"packages": [
"packages/*"
],
"npmClient": "yarn",
"useWorkspaces": true,
"version": "independent"
}
60 changes: 12 additions & 48 deletions package.json
@@ -1,54 +1,18 @@
{
"name": "pg",
"version": "7.14.0",
"description": "PostgreSQL client - pure javascript & libpq with the same API",
"keywords": [
"database",
"libpq",
"pg",
"postgre",
"postgres",
"postgresql",
"rdbms"
"name": "node-postgres",
"description": "node postgres monorepo",
"main": "index.js",
"private": true,
"repository": "git@github.com:brianc/node-postgres.git",
"author": "Brian M. Carlson <brian.m.carlson@gmail.com>",
"license": "MIT",
"workspaces": [
"packages/*"
],
"homepage": "http://github.com/brianc/node-postgres",
"repository": {
"type": "git",
"url": "git://github.com/brianc/node-postgres.git"
},
"author": "Brian Carlson <brian.m.carlson@gmail.com>",
"main": "./lib",
"dependencies": {
"buffer-writer": "2.0.0",
"packet-reader": "1.0.0",
"pg-connection-string": "0.1.3",
"pg-pool": "^2.0.7",
"pg-types": "^2.1.0",
"pgpass": "1.x",
"semver": "4.3.2"
},
"devDependencies": {
"async": "0.9.0",
"bluebird": "3.5.2",
"co": "4.6.0",
"eslint": "^6.0.1",
"eslint-config-standard": "^13.0.1",
"eslint-plugin-import": "^2.18.1",
"eslint-plugin-node": "^9.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
"pg-copy-streams": "0.3.0"
},
"minNativeVersion": "2.0.0",
"scripts": {
"test": "make test-all"
"test": "yarn lerna exec --parallel yarn test"
},
"files": [
"lib",
"SPONSORS.md"
],
"license": "MIT",
"engines": {
"node": ">= 4.5.0"
"devDependencies": {
"lerna": "^3.19.0"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
54 changes: 54 additions & 0 deletions packages/pg/package.json
@@ -0,0 +1,54 @@
{
"name": "pg",
"version": "7.14.0",
"description": "PostgreSQL client - pure javascript & libpq with the same API",
"keywords": [
"database",
"libpq",
"pg",
"postgre",
"postgres",
"postgresql",
"rdbms"
],
"homepage": "http://github.com/brianc/node-postgres",
"repository": {
"type": "git",
"url": "git://github.com/brianc/node-postgres.git"
},
"author": "Brian Carlson <brian.m.carlson@gmail.com>",
"main": "./lib",
"dependencies": {
"buffer-writer": "2.0.0",
"packet-reader": "1.0.0",
"pg-connection-string": "0.1.3",
"pg-pool": "^2.0.7",
"pg-types": "^2.1.0",
"pgpass": "1.x",
"semver": "4.3.2"
},
"devDependencies": {
"async": "0.9.0",
"bluebird": "3.5.2",
"co": "4.6.0",
"eslint": "^6.0.1",
"eslint-config-standard": "^13.0.1",
"eslint-plugin-import": "^2.18.1",
"eslint-plugin-node": "^9.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
"pg-copy-streams": "0.3.0"
},
"minNativeVersion": "2.0.0",
"scripts": {
"test": "make test-all"
},
"files": [
"lib",
"SPONSORS.md"
],
"license": "MIT",
"engines": {
"node": ">= 4.5.0"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 1b5f3e3

Please sign in to comment.