Skip to content

Commit

Permalink
Rename driver 2gel (#1180)
Browse files Browse the repository at this point in the history
  • Loading branch information
diksipav committed Jan 23, 2025
1 parent d610f48 commit 59ccfaf
Show file tree
Hide file tree
Showing 133 changed files with 22 additions and 21 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
# gel

- name: Copy readme
run: cp README.md packages/driver/README.md
run: cp README.md packages/gel/README.md

- name: Build gel
run: yarn workspace gel run build
Expand All @@ -37,7 +37,7 @@ jobs:
name: Dry-run publish 'gel' to npm
uses: JS-DevTools/npm-publish@4b07b26a2f6e0a51846e1870223e545bae91c552
with:
package: packages/driver/package.json
package: packages/gel/package.json
token: ${{ secrets.NPM_TOKEN }}
dry-run: true

Expand All @@ -46,13 +46,13 @@ jobs:
run: |
echo "Version in package.json has not changed. Creating canary release."
yarn workspace gel version --no-git-tag-version --minor
CURRENT_VERSION=$(node -p "require('./packages/driver/package.json').version")
CURRENT_VERSION=$(node -p "require('./packages/gel/package.json').version")
yarn workspace gel version --no-git-tag-version --new-version "${CURRENT_VERSION}-canary.$(date +'%Y%m%dT%H%M%S')"
- name: Publish 'gel'
uses: JS-DevTools/npm-publish@4b07b26a2f6e0a51846e1870223e545bae91c552
with:
package: packages/driver/package.json
package: packages/gel/package.json
token: ${{ secrets.NPM_TOKEN }}
access: public
tag: ${{ steps.check_publish_driver.outputs.type == '' && 'canary' || 'latest' }}
Expand Down
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "packages/driver/test/shared-client-testcases"]
path = packages/driver/test/shared-client-testcases
[submodule "packages/gel/test/shared-client-testcases"]
path = packages/gel/test/shared-client-testcases
url = [email protected]:edgedb/shared-client-testcases.git
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
packages/driver/test/shared-client-testcases/
packages/gel/test/shared-client-testcases/
4 changes: 2 additions & 2 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";

const DRIVER_PATH = "packages/driver/src/**/*.?(m)ts";
const DRIVER_PATH = "packages/gel/src/**/*.?(m)ts";
const GENERATE_PATH = "packages/generate/src/**/*.?(m)ts";
const FEATURE_LIBRARIES_PATH = "packages/!(driver|generate)/src/**/*.?(m)ts";
const FEATURE_LIBRARIES_PATH = "packages/!(gel|generate)/src/**/*.?(m)ts";
const INTEGRATION_TESTS_PATH = "integration-tests/*/*.test.?(m)ts";

const ALL_PATHS = [
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/legacy/testRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
startServer,
runCommand,
configToEnv,
} from "../../packages/driver/test/testUtil";
} from "../../packages/gel/test/testUtil";

(async function main() {
console.log("\nStarting Gel test cluster...");
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/lts/testRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
startServer,
runCommand,
configToEnv,
} from "../../packages/driver/test/testUtil";
} from "../../packages/gel/test/testUtil";

(async function main() {
console.log("\nStarting Gel test cluster...");
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/nightly/testRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
startServer,
runCommand,
configToEnv,
} from "../../packages/driver/test/testUtil";
} from "../../packages/gel/test/testUtil";

(async function main() {
console.log("\nStarting Gel test cluster...");
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/stable/testRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
startServer,
runCommand,
configToEnv,
} from "../../packages/driver/test/testUtil";
} from "../../packages/gel/test/testUtil";

(async function main() {
console.log("\nStarting Gel test cluster...");
Expand Down
2 changes: 1 addition & 1 deletion packages/auth-core/test/globalSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
getServerCommand,
getWSLPath,
startServer,
} from "../../driver/test/testUtil";
} from "../../gel/test/testUtil";

export default async () => {
// tslint:disable-next-line
Expand Down
2 changes: 1 addition & 1 deletion packages/auth-core/test/globalTeardown.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { shutdown } from "../../driver/test/testUtil";
import { shutdown } from "../../gel/test/testUtil";

export default async () => {
// tslint:disable-next-line
Expand Down
2 changes: 1 addition & 1 deletion packages/auth-core/test/testbase.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Client, ConnectOptions } from "gel";
import * as testbase from "../../driver/test/testbase";
import * as testbase from "../../gel/test/testbase";

export const getClient = testbase.getClient as unknown as (
opts?: ConnectOptions,
Expand Down
1 change: 0 additions & 1 deletion packages/driver/test/shared-client-testcases
Submodule shared-client-testcases deleted from d720f5
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion packages/driver/package.json → packages/gel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
},
"repository": {
"type": "git",
"url": "https://github.com/geldata/gel-js.git"
"url": "https://github.com/geldata/gel-js.git",
"directory": "packages/gel"
},
"main": "./dist/index.node.js",
"types": "./dist/index.node.d.ts",
Expand Down
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.
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.
1 change: 1 addition & 0 deletions packages/gel/test/shared-client-testcases
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/generate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Execute `playground.ts` (uses `tsx`). Useful for testing things quickly in devel
yarn play
```

> ⚠️ All imports from `"gel"` resolve to the local build version of the driver in `packages/driver/dist`. This imports the _built_ library, not the so you need to re-run `yarn workspace gel build` for changes to be reflected in your playground code. Run `yarn dev` watcher inside `packages/driver` to rebuild the project anytime you make a change.
> ⚠️ All imports from `"gel"` resolve to the local build version of the driver in `packages/gel/dist`. This imports the _built_ library, not the so you need to re-run `yarn workspace gel build` for changes to be reflected in your playground code. Run `yarn dev` watcher inside `packages/gel` to rebuild the project anytime you make a change.
Run commands in watch mode. Useful when in development. The following command rebuilds the package and executes the playground whenever a file change is detected.

Expand Down
4 changes: 2 additions & 2 deletions packages/generate/test/testRunner.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import createClient from "../../driver/src/index.node";
import createClient from "../../gel/src/index.node";

import {
shutdown,
Expand All @@ -9,7 +9,7 @@ import {
startServer,
runCommand,
configToEnv,
} from "../../driver/test/testUtil";
} from "../../gel/test/testUtil";

(async function main() {
console.log("\nStarting Gel test cluster...");
Expand Down

0 comments on commit 59ccfaf

Please sign in to comment.