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

Lines changed: 1 addition & 2 deletions

buildDependencies.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

lerna.json

Lines changed: 6 additions & 0 deletions
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

Lines changed: 4641 additions & 13464 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 15 additions & 108 deletions
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

Lines changed: 13 additions & 3 deletions

0 commit comments

Comments
 (0)