Skip to content

Commit 1b5f3e3

Browse files
authored
Monorepo (brianc#2014)
* First crack at monorepo * Update test command * Update path to script * Remove node 6 from CI
1 parent 2b59209 commit 1b5f3e3

File tree

121 files changed

+5539
-58
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+5539
-58
lines changed

.travis.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ language: node_js
22
dist: bionic
33

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

77
env:
88
- CC=clang CXX=clang++ npm_config_clang=1 PGUSER=postgres PGDATABASE=postgres
@@ -17,15 +17,6 @@ addons:
1717

1818
matrix:
1919
include:
20-
# different Node versions on PostgreSQL 9.5 that require precise
21-
- node_js: lts/argon
22-
addons:
23-
postgresql: "9.5"
24-
dist: precise
25-
- node_js: lts/boron
26-
addons:
27-
postgresql: "9.5"
28-
dist: precise
2920
- node_js: lts/carbon
3021
addons:
3122
postgresql: "9.5"

lerna.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"packages": [
3+
"packages/*"
4+
],
5+
"npmClient": "yarn",
6+
"useWorkspaces": true,
7+
"version": "independent"
8+
}

package.json

Lines changed: 12 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,18 @@
11
{
2-
"name": "pg",
3-
"version": "7.14.0",
4-
"description": "PostgreSQL client - pure javascript & libpq with the same API",
5-
"keywords": [
6-
"database",
7-
"libpq",
8-
"pg",
9-
"postgre",
10-
"postgres",
11-
"postgresql",
12-
"rdbms"
2+
"name": "node-postgres",
3+
"description": "node postgres monorepo",
4+
"main": "index.js",
5+
"private": true,
6+
"repository": "git@github.com:brianc/node-postgres.git",
7+
"author": "Brian M. Carlson <brian.m.carlson@gmail.com>",
8+
"license": "MIT",
9+
"workspaces": [
10+
"packages/*"
1311
],
14-
"homepage": "http://github.com/brianc/node-postgres",
15-
"repository": {
16-
"type": "git",
17-
"url": "git://github.com/brianc/node-postgres.git"
18-
},
19-
"author": "Brian Carlson <brian.m.carlson@gmail.com>",
20-
"main": "./lib",
21-
"dependencies": {
22-
"buffer-writer": "2.0.0",
23-
"packet-reader": "1.0.0",
24-
"pg-connection-string": "0.1.3",
25-
"pg-pool": "^2.0.7",
26-
"pg-types": "^2.1.0",
27-
"pgpass": "1.x",
28-
"semver": "4.3.2"
29-
},
30-
"devDependencies": {
31-
"async": "0.9.0",
32-
"bluebird": "3.5.2",
33-
"co": "4.6.0",
34-
"eslint": "^6.0.1",
35-
"eslint-config-standard": "^13.0.1",
36-
"eslint-plugin-import": "^2.18.1",
37-
"eslint-plugin-node": "^9.1.0",
38-
"eslint-plugin-promise": "^4.2.1",
39-
"eslint-plugin-standard": "^4.0.0",
40-
"pg-copy-streams": "0.3.0"
41-
},
42-
"minNativeVersion": "2.0.0",
4312
"scripts": {
44-
"test": "make test-all"
13+
"test": "yarn lerna exec --parallel yarn test"
4514
},
46-
"files": [
47-
"lib",
48-
"SPONSORS.md"
49-
],
50-
"license": "MIT",
51-
"engines": {
52-
"node": ">= 4.5.0"
15+
"devDependencies": {
16+
"lerna": "^3.19.0"
5317
}
5418
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)