Skip to content

Commit 9aba3f0

Browse files
GiladShohamgitedenKutnerUriguysaar223
authored
Update community and cloud links (teambit#5544)
* update links and constants to bit.cloud, bit.dev/docs and node.bit.cloud * more updates * revert changes to pnpm-lock * replace hardcoded docs domain with constant * fix link * fixes * moving consts - linting * add missing import * add hard coded docs urls temporarily * pass docs domain from community aspect across all commands * linting * import community main as type * linting and types * fixes * update bit url in component url Co-authored-by: Eden <[email protected]> Co-authored-by: Kutner JS <[email protected]> Co-authored-by: Guy Saar <[email protected]>
1 parent 4d1b6a7 commit 9aba3f0

File tree

74 files changed

+280
-187
lines changed

Some content is hidden

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

74 files changed

+280
-187
lines changed

.bitmap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
/**
44
* The Bitmap file is an auto generated file used by Bit to track all your Bit components. It maps the component to a folder in your file system.
55
* This file should be committed to VCS(version control).
6-
* Components are listed using their component ID (https://harmony-docs.bit.dev/aspects/component/#component-id).
6+
* Components are listed using their component ID (https://bit.dev/docs/components/component-id).
77
* If you want to delete components you can use the "bit remove <component-id>" command.
8-
* See the docs (https://harmony-docs.bit.dev/building-with-bit/removing-components) for more information, or use "bit remove --help".
8+
* See the docs (https://bit.dev/docs/components/removing-components) for more information, or use "bit remove --help".
99
*/
1010

1111
{

e2e/bit-hub/export-eject-to-bit-hub.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import chai, { expect } from 'chai';
22
import * as path from 'path';
33

4-
import { BASE_WEB_DOMAIN } from '../../src/constants';
4+
import { BASE_CLOUD_DOMAIN } from '../../src/constants';
55
import Helper from '../../src/e2e-helper/e2e-helper';
66
import BitsrcTester, { supportTestingOnBitsrc, username } from '../bitsrc-tester';
77

88
chai.use(require('chai-fs'));
99

1010
(supportTestingOnBitsrc ? describe : describe.skip)(
11-
`export --eject functionality using ${BASE_WEB_DOMAIN}`,
11+
`export --eject functionality using ${BASE_CLOUD_DOMAIN}`,
1212
function () {
1313
this.timeout(0);
1414
let helper: Helper;

e2e/bit-hub/import-from-bit-hub.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import chai, { expect } from 'chai';
22
import fs from 'fs-extra';
33
import * as path from 'path';
44

5-
import { BASE_WEB_DOMAIN } from '../../src/constants';
5+
import { BASE_CLOUD_DOMAIN } from '../../src/constants';
66
import Helper from '../../src/e2e-helper/e2e-helper';
77
import * as fixtures from '../../src/fixtures/fixtures';
88
import BitsrcTester, { supportTestingOnBitsrc, username } from '../bitsrc-tester';
99

1010
chai.use(require('chai-fs'));
1111

12-
(supportTestingOnBitsrc ? describe : describe.skip)(`importing bit components from ${BASE_WEB_DOMAIN}`, function () {
12+
(supportTestingOnBitsrc ? describe : describe.skip)(`importing bit components from ${BASE_CLOUD_DOMAIN}`, function () {
1313
this.timeout(0);
1414
let helper: Helper;
1515
let bitsrcTester;

e2e/bitsrc-tester.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import fetch from 'node-fetch';
22

3-
import { BASE_WEB_DOMAIN } from '../src/constants';
3+
import { BASE_CLOUD_DOMAIN } from '../src/constants';
44

5-
// const apiBaseUrl = process.env.NODE_ENV === 'production' ? `https://api.${BASE_WEB_DOMAIN}` : `https://api-stg.${BASE_WEB_DOMAIN}`;
5+
// const apiBaseUrl = process.env.NODE_ENV === 'production' ? `https://api.${BASE_CLOUD_DOMAIN}` : `https://api-stg.${BASE_CLOUD_DOMAIN}`;
66
const isAppVeyor = process.env.APPVEYOR === 'True';
77
const skipBitDevTests = process.env.SKIP_BIT_DEV_TESTS === 'True' || process.env.SKIP_BIT_DEV_TESTS === 'true';
88
const supportTestingOnBitsrc = !isAppVeyor && !skipBitDevTests;
99
// const supportTestingOnBitsrc = true;
1010
const apiBaseUrl =
11-
process.env.BITSRC_ENV === 'stg' ? `https://api-stg.${BASE_WEB_DOMAIN}` : `https://api.${BASE_WEB_DOMAIN}`;
11+
process.env.BITSRC_ENV === 'stg' ? `https://api-stg.${BASE_CLOUD_DOMAIN}` : `https://api.${BASE_CLOUD_DOMAIN}`;
1212
const username = process.env.testerBitsrcUsername || 'tester';
1313
const password = process.env.testerBitsrcPassword;
1414

e2e/fixtures/extensions/custom-react-env/jest/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
// Override the Jest config to ignore transpiling from specific folders
3-
// See the base Jest config: https://bit.dev/teambit/react/react/~code/jest/jest.config.js
3+
// See the base Jest config: https://bit.cloud/teambit/react/react/~code/jest/jest.config.js
44

55
// const reactJestConfig = require('@teambit/react/jest/jest.config');
66
// uncomment the line below and install the package if you want to use this function

resources/win-chocolatey/bit.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ scoping mechanism to easily find and reuse components created by you or by other
2828
<licenseUrl>https://raw.githubusercontent.com/teambit/bit/master/LICENSE</licenseUrl>
2929
<requireLicenseAcceptance>false</requireLicenseAcceptance>
3030
<iconUrl>http://assets.bit.dev/bit.png</iconUrl>
31-
<docsUrl>https://docs.bit.dev/</docsUrl>
31+
<docsUrl>https://bit.dev/docs</docsUrl>
3232
<bugTrackerUrl>https://github.com/teambit/bit/issues</bugTrackerUrl>
3333
<releaseNotes>https://github.com/teambit/bit/tags</releaseNotes>
3434

scopes/component/component-issues/multiple-envs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { ComponentIssue, ISSUE_FORMAT_SPACE } from './component-issue';
22

33
export class MultipleEnvs extends ComponentIssue {
44
description = 'multiple envs';
5-
solution =
6-
'remove the old envs by setting them with "-" sign in the variants. see https://harmony-docs.bit.dev/aspects/variants#removing-aspects ';
5+
// TODO: pass the docs url into here after fetch it from the community aspect
6+
solution = `remove the old envs by setting them with "-" sign in the variants. see https://bit.dev/docs/envs/using-envs#component-must-have-a-single-env`;
77
data: string[]; // env ids
88
isTagBlocker = true;
99
dataToString() {

scopes/component/component-log/component-log.main.runtime.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';
22
import { BitId } from '@teambit/legacy-bit-id';
33
import WorkspaceAspect, { Workspace } from '@teambit/workspace';
4+
import { CommunityAspect } from '@teambit/community';
5+
import type { CommunityMain } from '@teambit/community';
6+
47
import { ConsumerNotFound } from '@teambit/legacy/dist/consumer/exceptions';
58
import chalk from 'chalk';
69
import getRemoteByName from '@teambit/legacy/dist/remotes/get-remote-by-name';
@@ -42,11 +45,11 @@ export class ComponentLogMain {
4245
}
4346

4447
static slots = [];
45-
static dependencies = [CLIAspect, WorkspaceAspect];
48+
static dependencies = [CLIAspect, WorkspaceAspect, CommunityAspect];
4649
static runtime = MainRuntime;
47-
static async provider([cli, workspace]: [CLIMain, Workspace]) {
50+
static async provider([cli, workspace, community]: [CLIMain, Workspace, CommunityMain]) {
4851
const componentLog = new ComponentLogMain(workspace);
49-
cli.register(new LogCmd(componentLog));
52+
cli.register(new LogCmd(componentLog, community.getDocsDomain()));
5053
return componentLog;
5154
}
5255
}

scopes/component/component-log/log-cmd.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import { Command, CommandOptions } from '@teambit/cli';
2-
import { BASE_DOCS_DOMAIN } from '@teambit/legacy/dist/constants';
32
import { paintLog } from '@teambit/legacy/dist/cli/chalk-box';
43
import { ComponentLogMain } from './component-log.main.runtime';
54

65
export default class LogCmd implements Command {
76
name = 'log <id>';
87
shortDescription = 'show components(s) version history';
8+
description: string;
99
group = 'info';
10-
description = `show components(s) tag history.\n https://${BASE_DOCS_DOMAIN}/docs/view#log`;
1110
alias = '';
1211
options = [
1312
['r', 'remote', 'show log of a remote component'],
@@ -17,7 +16,9 @@ export default class LogCmd implements Command {
1716
remoteOp = true; // should support log against remote
1817
skipWorkspace = true;
1918

20-
constructor(private componentLog: ComponentLogMain) {}
19+
constructor(private componentLog: ComponentLogMain, docsDomain: string) {
20+
this.description = `show components(s) tag history.\n https://${docsDomain}/reference/cli-reference#log`;
21+
}
2122

2223
async report([id]: [string], { remote = false, parents = false }: { remote: boolean; parents: boolean }) {
2324
if (parents) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const baseUrl = 'https://bit.dev';
1+
export const baseUrl = 'https://bit.cloud';

0 commit comments

Comments
 (0)