Skip to content

Commit 9e01d35

Browse files
authored
Introducing Lerna as mono-repo manager (#763)
The internal structure for the JS driver started to be a bit complex to maintain and realise what's the boundaries between packages. Introducing Lerna helps to keep the repository tidy and easy to build. - Moving packages to a separated folder - Fix the build process and testkit - Automate build with lerna - Update Readme.md with the build instructions and package information.
1 parent 698595d commit 9e01d35

File tree

412 files changed

+20068
-18456
lines changed

Some content is hidden

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

412 files changed

+20068
-18456
lines changed

README.md

+1-2

buildDependencies.sh

-8
This file was deleted.

lerna.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"packages": [
3+
"packages/*"
4+
],
5+
"version": "4.4.0-dev"
6+
}

package-lock.json

+4,641-13,464
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+15-108
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,20 @@
11
{
2-
"name": "neo4j-driver",
3-
"version": "4.3.0-dev",
4-
"description": "Connect to Neo4j 3.5.0 and up from JavaScript",
5-
"author": "Neo4j",
6-
"license": "Apache-2.0",
7-
"repository": {
8-
"type": "git",
9-
"url": "git://github.com/neo4j/neo4j-javascript-driver.git"
10-
},
11-
"scripts": {
12-
"lint": "eslint --fix --ext .js ./",
13-
"format": "prettier-eslint '**/*.js' '**/*.json' '**/*.md' '**/*.ts' '**/*.html' --write",
14-
"test": "gulp test",
15-
"build": "gulp all",
16-
"start-neo4j": "gulp start-neo4j",
17-
"stop-neo4j": "gulp stop-neo4j",
18-
"run-stress-tests": "gulp run-stress-tests-without-jasmine",
19-
"run-ts-declaration-tests": "gulp run-ts-declaration-tests",
20-
"predocs": "cd core && npm run docs",
21-
"docs": "esdoc -c esdoc.json",
22-
"versionRelease": "gulp set --x $VERSION && npm version $VERSION --no-git-tag-version",
23-
"browser": "gulp browser && gulp test-browser"
24-
},
25-
"husky": {
26-
"hooks": {
27-
"pre-commit": "lint-staged"
28-
}
29-
},
30-
"lint-staged": {
31-
"*.{js,json,ts,md,html}": [
32-
"prettier-eslint --write",
33-
"git add"
34-
]
35-
},
36-
"main": "lib/index.js",
37-
"browser": {
38-
"./lib/internal/node/index.js": "./lib/internal/browser/index.js"
39-
},
40-
"unpkg": "lib/browser/neo4j-web.js",
41-
"jsdelivr": "lib/browser/neo4j-web.js",
42-
"types": "types/index.d.ts",
2+
"name": "root",
3+
"private": true,
434
"devDependencies": {
44-
"@babel/core": "^7.5.5",
45-
"@babel/plugin-transform-runtime": "^7.5.5",
46-
"@babel/preset-env": "^7.5.5",
47-
"@babel/register": "^7.5.5",
48-
"@istanbuljs/nyc-config-babel": "^2.1.1",
49-
"async": "^3.2.0",
50-
"babel-eslint": "^10.0.3",
51-
"babel-plugin-istanbul": "^5.2.0",
52-
"babelify": "^10.0.0",
53-
"browserify": "^16.5.0",
54-
"browserify-transform-tools": "^1.7.0",
55-
"esdoc": "^1.1.0",
56-
"esdoc-importpath-plugin": "^1.0.2",
57-
"esdoc-standard-plugin": "^1.0.0",
58-
"eslint": "^6.8.0",
59-
"eslint-config-standard": "^14.1.1",
60-
"eslint-plugin-import": "^2.23.3",
61-
"eslint-plugin-jasmine": "^2.10.1",
62-
"eslint-plugin-node": "^9.2.0",
63-
"eslint-plugin-promise": "^4.2.1",
64-
"eslint-plugin-standard": "^4.0.1",
65-
"fancy-log": "^1.3.3",
66-
"fs-extra": "^8.1.0",
67-
"gulp": "^4.0.2",
68-
"gulp-babel": "^8.0.0",
69-
"gulp-batch": "^1.0.5",
70-
"gulp-decompress": "^2.0.3",
71-
"gulp-download": "^0.0.1",
72-
"gulp-file": "^0.4.0",
73-
"gulp-install": "^1.1.0",
74-
"gulp-jasmine": "^4.0.0",
75-
"gulp-replace": "^1.1.3",
76-
"gulp-typescript": "^5.0.1",
77-
"gulp-uglify": "^3.0.2",
78-
"gulp-watch": "^5.0.1",
79-
"husky": "^3.1.0",
80-
"istanbul": "^0.4.5",
81-
"jasmine-spec-reporter": "^4.2.1",
82-
"karma": "^4.4.1",
83-
"karma-browserify": "^6.1.0",
84-
"karma-chrome-launcher": "^3.1.0",
85-
"karma-edge-launcher": "^0.4.2",
86-
"karma-firefox-launcher": "^1.3.0",
87-
"karma-ie-launcher": "^1.0.0",
88-
"karma-jasmine": "^2.0.1",
89-
"karma-source-map-support": "^1.4.0",
90-
"karma-spec-reporter": "^0.0.32",
91-
"lint-staged": "^9.5.0",
92-
"lodash": "^4.17.20",
93-
"lolex": "^4.2.0",
94-
"minimist": "^1.2.5",
95-
"mustache": "^3.2.1",
96-
"nyc": "^14.1.1",
97-
"prettier-eslint": "^9.0.2",
98-
"prettier-eslint-cli": "^5.0.0",
99-
"run-sequence": "^2.2.1",
100-
"semver": "^6.3.0",
101-
"tmp": "0.1.0",
102-
"typescript": "^3.9.7",
103-
"vinyl-buffer": "^1.0.1",
104-
"vinyl-source-stream": "^2.0.0",
105-
"webpack": "^4.44.2"
5+
"lerna": "^4.0.0"
1066
},
107-
"dependencies": {
108-
"@babel/runtime": "^7.5.5",
109-
"neo4j-driver-bolt-connection": "file:./bolt-connection",
110-
"neo4j-driver-core": "file:./core",
111-
"rxjs": "^6.6.3"
7+
"scripts": {
8+
"clean": "lerna clean -y && lerna run clean",
9+
"build": "lerna bootstrap --ci",
10+
"test::unit": "lerna run test::unit --stream",
11+
"test::integration": "lerna run test::integration --stream",
12+
"test::browser": "lerna run test::browser --stream",
13+
"test::stress": "lerna run test::stress --stream",
14+
"test": "lerna run test --stream",
15+
"start-neo4j": "lerna run start-neo4j --scope neo4j-driver",
16+
"stop-neo4j": "lerna run stop-neo4j --scope neo4j-driver",
17+
"start-testkit-backend": "lerna run start --scope testkit-backend --stream",
18+
"lerna": "lerna"
11219
}
11320
}
File renamed without changes.
File renamed without changes.

bolt-connection/README.md renamed to packages/bolt-connection/README.md

+13-3

bolt-connection/package-lock.json renamed to packages/bolt-connection/package-lock.json

+1-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bolt-connection/package.json renamed to packages/bolt-connection/package.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
{
22
"name": "neo4j-driver-bolt-connection",
3-
"version": "4.3.0-dev",
3+
"version": "4.4.0-dev",
44
"description": "Implements the connection with the Neo4j Database using the Bolt Protocol",
55
"main": "lib/index.js",
66
"types": "types/index.d.ts",
77
"scripts": {
88
"build": "tsc",
99
"test": "jest --passWithNoTests",
10-
"test::watch": "jest --watch"
10+
"test::watch": "jest --watch",
11+
"test::unit": "npm run test",
12+
"prepare": "npm run build",
13+
"clean": "rm -fr node_modules lib"
1114
},
1215
"repository": {
1316
"type": "git",
@@ -35,7 +38,7 @@
3538
"typescript": "^4.1.3"
3639
},
3740
"dependencies": {
38-
"neo4j-driver-core": "file:../core",
41+
"neo4j-driver-core": "^4.4.0-dev",
3942
"text-encoding-utf-8": "^1.0.2"
4043
}
4144
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

core/README.md renamed to packages/core/README.md

+14-2
File renamed without changes.
File renamed without changes.

core/package-lock.json renamed to packages/core/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/package.json renamed to packages/core/package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "neo4j-driver-core",
3-
"version": "4.3.0-dev",
3+
"version": "4.4.0-dev",
44
"description": "Internals of neo4j-driver",
55
"main": "lib/index.js",
66
"types": "types/index.d.ts",
@@ -9,8 +9,11 @@
99
"build::es6": "tsc --target ES6 --outdir lib6",
1010
"test": "jest",
1111
"test::watch": "jest --watch",
12+
"test::unit": "npm run test",
1213
"predocs": "npm run build && npm run build::es6",
13-
"docs": "esdoc -c esdoc.json"
14+
"docs": "esdoc -c esdoc.json",
15+
"prepare": "npm run build",
16+
"clean": "rm -fr node_modules lib types"
1417
},
1518
"repository": {
1619
"type": "git",
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.

neo4j-driver-lite/README.md renamed to packages/neo4j-driver-lite/README.md

+14-7
File renamed without changes.

0 commit comments

Comments
 (0)