Skip to content

Commit

Permalink
bit.dev domain (#1496)
Browse files Browse the repository at this point in the history
* replace bitsrc.io with bit.dev
  • Loading branch information
GiladShoham committed Mar 18, 2019
1 parent 8cb6138 commit fe25783
Show file tree
Hide file tree
Showing 34 changed files with 331 additions and 137 deletions.
16 changes: 8 additions & 8 deletions .circleci/config.yml
Expand Up @@ -49,14 +49,14 @@ jobs:
steps:
# prod registry
# -
# run: npm config set @bit:registry https://node.bitsrc.io
# run: npm config set @bit:registry https://node.bit.dev
# -
# run: echo "//node.bitsrc.io/:_authToken=$registryProdToken" >> ~/.npmrc
# run: echo "//node.bit.dev/:_authToken=$registryProdToken" >> ~/.npmrc
# stage registry
-
run: 'npm config set @bit:registry https://node-stg.bitsrc.io'
run: 'npm config set @bit:registry https://node-stg.bit.dev'
-
run: 'echo "//node-stg.bitsrc.io/:_authToken=$registryStgToken" >> ~/.npmrc'
run: 'echo "//node-stg.bit.dev/:_authToken=$registryStgToken" >> ~/.npmrc'
-
save_cache:
# key: bitsrc-registry2
Expand Down Expand Up @@ -308,10 +308,10 @@ jobs:
-
run: 'bit config set user.name tester'
-
run: 'bit config set user.email ci@bitsrc.io'
run: 'bit config set user.email ci@bit.dev'
-
# uncomment to configure circle to run against stg enviorment
run: 'bit config set hub_domain hub-stg.bitsrc.io'
run: 'bit config set hub_domain hub-stg.bit.dev'
-
run:
name: 'Run e2e tests'
Expand Down Expand Up @@ -363,10 +363,10 @@ jobs:
-
run: 'bit config set user.name tester'
-
run: 'bit config set user.email ci@bitsrc.io'
run: 'bit config set user.email ci@bit.dev'
-
# uncomment to configure circle to run against stg enviorment
run: 'bit config set hub_domain hub-stg.bitsrc.io'
run: 'bit config set hub_domain hub-stg.bit.dev'
-
run:
name: 'Run performance tests'
Expand Down
8 changes: 6 additions & 2 deletions CHANGELOG.md
Expand Up @@ -17,6 +17,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- add authentication fallback to ssh-key in case the ssh-agent is enabled but failed to authenticate
- improve authentication error message to clearly indicate the various strategies failures

## [14.0.4] - 2019-03-18

- replace default bitsrc.io domain to bit.dev

## [14.0.3] - 2019-03-12

- fix importing components when one file is a prefix of the other in the same directory
Expand Down Expand Up @@ -60,7 +64,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Summary

*Bit’s v14 is released side-by-side with the release of the v2 for [bitsrc.io](https://bitsrc.io), Bit’s component community hub. New features for bitsrc.io v2 are announced in [Bit’s Blog](https://blog.bitsrc.io/).*
*Bit’s v14 is released side-by-side with the release of the v2 for [bit.dev](https://bit.dev), Bit’s component community hub. New features for bit.dev v2 are announced in [Bit’s Blog](https://blog.bitsrc.io/).*

With over 65 new features, changes and bug fixes, v14 is Bit’s largest and richest release to date. V14 is focused on increased **stability**, **agility** and **performance**. It is is fully backwards compatible, and provides a faster and smoother workflow with improved compatibility throughout the ecosystem.

Expand Down Expand Up @@ -411,7 +415,7 @@ As a reminder, we're switching to major versions to indicate that we, like many
## [0.12.0] - 2018-01-18

### New
- [extension system (beta)](https://docs.bitsrc.io/docs/ext-concepts.html)
- [extension system (beta)](https://docs.bit.dev/docs/ext-concepts.html)
- [#540](https://github.com/teambit/bit/issues/540) support Yarn as package manager
- `bit import`: install hub dependencies as npm packages by default
- `bit import`: install npm packages by default
Expand Down
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Expand Up @@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at team@bitsrc.io. All
reported by contacting the project team at team@bit.dev. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Expand Up @@ -2,7 +2,7 @@ Bit - Distributed code component manager.

Copyright (C) 2017 Cocycles LTD.

Can be contacted at: team@bitsrc.io
Can be contacted at: team@bit.dev

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
56 changes: 28 additions & 28 deletions README.md

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions appveyor.yml
Expand Up @@ -83,11 +83,11 @@ install:
- ps: $pubSshContent = $env:testerBitsrcSSHPublicKey.Replace(' ', "`n")
- ps: Set-Content c:\users\appveyor\.ssh\id_rsa.pub $pubSshContent
# prod registry
# - ps: $npmrcContent = "@bit:registry=https://node.bitsrc.io/`n"
# - ps: $npmrcContent += "//node.bitsrc.io/:_authToken=$env:registryProdToken`n"
# - ps: $npmrcContent = "@bit:registry=https://node.bit.dev/`n"
# - ps: $npmrcContent += "//node.bit.dev/:_authToken=$env:registryProdToken`n"
# stg registry
- ps: $npmrcContent = "@bit:registry=https://node-stg.bitsrc.io/`n"
- ps: $npmrcContent += "//node-stg.bitsrc.io/:_authToken=$env:registryStgToken`n"
- ps: $npmrcContent = "@bit:registry=https://node-stg.bit.dev/`n"
- ps: $npmrcContent += "//node-stg.bit.dev/:_authToken=$env:registryStgToken`n"
- ps: Set-Content $env:userprofile\.npmrc $npmrcContent
- npm config ls
- ps: Install-Product node 6
Expand All @@ -96,7 +96,7 @@ install:
- "npm run build"
- "npm install -g"
- "bit config set set user.name tester"
- "bit config set user.email ci@bitsrc.io"
- "bit config set user.email ci@bit.dev"
- "bit config set ssh_key_file c:\\users\\appveyor\\.ssh\\id_rsa"
- "bit config set analytics_reporting false"
- "bit config set error_reporting false"
Expand Down
10 changes: 6 additions & 4 deletions e2e/bitsrc-tester.js
@@ -1,12 +1,14 @@
import requestify from 'requestify';
import { BASE_WEB_DOMAIN } from '../src/constants';

// const apiBaseUrl = process.env.NODE_ENV === 'production' ? 'https://api.bitsrc.io' : 'https://api-stg.bitsrc.io';
// const apiBaseUrl = process.env.NODE_ENV === 'production' ? `https://api.${BASE_WEB_DOMAIN}` : `https://api-stg.${BASE_WEB_DOMAIN}`;
const isAppVeyor = process.env.APPVEYOR === 'True';
const supportTestingOnBitsrc = !isAppVeyor;
// const supportTestingOnBitsrc = true;
const apiBaseUrl = process.env.BITSRC_ENV === 'stg' ? 'https://api-stg.bitsrc.io' : 'https://api.bitsrc.io';
const username = process.env.testerBitsrcUsername || 'tester';
const password = process.env.testerBitsrcPassword;
const apiBaseUrl =
process.env.BITSRC_ENV === 'stg' ? `https://api-stg.${BASE_WEB_DOMAIN}` : `https://api.${BASE_WEB_DOMAIN}`;
const username = process.env.testerBitDevUsername || 'tester';
const password = process.env.testerBitDevPassword;

export { username, supportTestingOnBitsrc };
const debugMode = !!process.env.npm_config_debug;
Expand Down
8 changes: 4 additions & 4 deletions e2e/e2e-helper.js
Expand Up @@ -10,7 +10,7 @@ import fs from 'fs-extra';
import json from 'comment-json';
import { expect } from 'chai';
import set from 'lodash.set';
import { VERSION_DELIMITER, BIT_VERSION, BIT_MAP } from '../src/constants';
import { VERSION_DELIMITER, BIT_VERSION, BIT_MAP, BASE_WEB_DOMAIN } from '../src/constants';
import defaultErrorHandler from '../src/cli/default-error-handler';
import * as fixtures from './fixtures/fixtures';
import { NOTHING_TO_TAG_MSG } from '../src/cli/commands/public-cmds/tag-cmd';
Expand Down Expand Up @@ -462,13 +462,13 @@ export default class Helper {
this.createCompiler();
}
// Temporary - for checking new serialization against the stage env
// this.setHubDomain('hub-stg.bitsrc.io');
// this.setHubDomain(`hub-stg.${BASE_WEB_DOMAIN}`);
return this.runCmd(`bit import ${id} --compiler`);
}

importTester(id) {
// Temporary - for checking new serialization against the stage env
// this.setHubDomain('hub-stg.bitsrc.io');
// this.setHubDomain(`hub-stg.${BASE_WEB_DOMAIN}`);
this.runCmd(`bit import ${id} --tester`);
}

Expand Down Expand Up @@ -589,7 +589,7 @@ export default class Helper {
: '';
return this.runCmd(`bit inject-conf ${id} ${value}`);
}
setHubDomain(domain: string = 'hub.bitsrc.io') {
setHubDomain(domain: string = `hub.${BASE_WEB_DOMAIN}`) {
this.runCmd(`bit config set hub_domain ${domain}`);
}
// #endregion
Expand Down
76 changes: 40 additions & 36 deletions e2e/flows/export-eject.e2e.3.js
Expand Up @@ -2,47 +2,51 @@ import chai, { expect } from 'chai';
import path from 'path';
import Helper from '../e2e-helper';
import BitsrcTester, { username, supportTestingOnBitsrc } from '../bitsrc-tester';
import { BASE_WEB_DOMAIN } from '../../src/constants';

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

(supportTestingOnBitsrc ? describe : describe.skip)('export --eject functionality using bitsrc.io', function () {
this.timeout(0);
const helper = new Helper();
const bitsrcTester = new BitsrcTester();
let scopeName;
before(() => {
return bitsrcTester
.loginToBitSrc()
.then(() => bitsrcTester.createScope())
.then((scope) => {
scopeName = scope;
});
});
after(() => {
helper.destroyEnv();
return bitsrcTester.deleteScope(scopeName);
});
describe('as author', () => {
(supportTestingOnBitsrc ? describe : describe.skip)(
`export --eject functionality using ${BASE_WEB_DOMAIN}`,
function () {
this.timeout(0);
const helper = new Helper();
const bitsrcTester = new BitsrcTester();
let scopeName;
before(() => {
helper.reInitLocalScope();
helper.createComponentBarFoo();
helper.addComponentBarFoo();
helper.tagAllComponents();
helper.exportAllComponents(`${username}.${scopeName} --eject`);
});
it('should delete the original component files from the file-system', () => {
expect(path.join(helper.localScopePath, 'bar', 'foo.js')).not.to.be.a.path();
return bitsrcTester
.loginToBitSrc()
.then(() => bitsrcTester.createScope())
.then((scope) => {
scopeName = scope;
});
});
it('should have the component files as a package (in node_modules)', () => {
expect(
path.join(helper.localScopePath, 'node_modules', '@bit', `${username}.${scopeName}.bar.foo`, 'foo.js')
).to.be.a.path();
after(() => {
helper.destroyEnv();
return bitsrcTester.deleteScope(scopeName);
});
it('should delete the component from bit.map', () => {
const bitMap = helper.readBitMap();
Object.keys(bitMap).forEach((id) => {
expect(id).not.to.have.string('foo');
describe('as author', () => {
before(() => {
helper.reInitLocalScope();
helper.createComponentBarFoo();
helper.addComponentBarFoo();
helper.tagAllComponents();
helper.exportAllComponents(`${username}.${scopeName} --eject`);
});
it('should delete the original component files from the file-system', () => {
expect(path.join(helper.localScopePath, 'bar', 'foo.js')).not.to.be.a.path();
});
it('should have the component files as a package (in node_modules)', () => {
expect(
path.join(helper.localScopePath, 'node_modules', '@bit', `${username}.${scopeName}.bar.foo`, 'foo.js')
).to.be.a.path();
});
it('should delete the component from bit.map', () => {
const bitMap = helper.readBitMap();
Object.keys(bitMap).forEach((id) => {
expect(id).not.to.have.string('foo');
});
});
});
});
});
}
);
3 changes: 2 additions & 1 deletion e2e/flows/import-from-bit-hub.e2e.3.js
Expand Up @@ -4,10 +4,11 @@ import fs from 'fs-extra';
import Helper from '../e2e-helper';
import BitsrcTester, { username, supportTestingOnBitsrc } from '../bitsrc-tester';
import * as fixtures from '../fixtures/fixtures';
import { BASE_WEB_DOMAIN } from '../../src/constants';

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

(supportTestingOnBitsrc ? describe : describe.skip)('importing bit components from bitsrc.io', function () {
(supportTestingOnBitsrc ? describe : describe.skip)(`importing bit components from ${BASE_WEB_DOMAIN}`, function () {
this.timeout(0);
const helper = new Helper();
const bitsrcTester = new BitsrcTester();
Expand Down
Expand Up @@ -84,7 +84,7 @@
"message": "tag-message",
"date": "1541679327434",
"username": "David First",
"email": "david@bitsrc.io"
"email": "david@bit.dev"
},
"deprecated": false
}
Expand Up @@ -84,7 +84,7 @@
"message": "tag-message",
"date": "1541679327415",
"username": "David First",
"email": "david@bitsrc.io"
"email": "david@bit.dev"
},
"deprecated": false
}
Expand Up @@ -70,7 +70,7 @@
"message": "tag-message",
"date": "1541679327388",
"username": "David First",
"email": "david@bitsrc.io"
"email": "david@bit.dev"
},
"deprecated": false
}
2 changes: 1 addition & 1 deletion fixtures/consumer-components/es6/bar-foo.json
Expand Up @@ -137,7 +137,7 @@
"message": "tag-message",
"date": "1541595829940",
"username": "David First",
"email": "david@bitsrc.io"
"email": "david@bit.dev"
},
"deprecated": false
}
2 changes: 1 addition & 1 deletion fixtures/consumer-components/es6/utils-is-string.json
Expand Up @@ -86,7 +86,7 @@
"message": "tag-message",
"date": "1541595829918",
"username": "David First",
"email": "david@bitsrc.io"
"email": "david@bit.dev"
},
"deprecated": false
}
2 changes: 1 addition & 1 deletion fixtures/consumer-components/es6/utils-is-type.json
Expand Up @@ -74,7 +74,7 @@
"message": "tag-message",
"date": "1541595829888",
"username": "David First",
"email": "david@bitsrc.io"
"email": "david@bit.dev"
},
"deprecated": false
}
2 changes: 1 addition & 1 deletion fixtures/consumer-components/plain-javascript/bar-foo.json
Expand Up @@ -49,7 +49,7 @@
"message": "tag-message",
"date": "1541588058604",
"username": "David First",
"email": "david@bitsrc.io"
"email": "david@bit.dev"
},
"deprecated": false
}
Expand Up @@ -49,7 +49,7 @@
"message": "tag-message",
"date": "1541588058580",
"username": "David First",
"email": "david@bitsrc.io"
"email": "david@bit.dev"
},
"deprecated": false
}
Expand Up @@ -43,7 +43,7 @@
"message": "tag-message",
"date": "1541588058327",
"username": "David First",
"email": "david@bitsrc.io"
"email": "david@bit.dev"
},
"deprecated": false
}
Expand Up @@ -43,7 +43,7 @@
"message": "tag-message",
"date": "1541588058327",
"username": "David First",
"email": "david@bitsrc.io"
"email": "david@bit.dev"
},
"deprecated": false
}
2 changes: 1 addition & 1 deletion fixtures/version-model-extended.json
Expand Up @@ -36,7 +36,7 @@
"message": "tag-message",
"date": "1527523854385",
"username": "David First",
"email": "david@bitsrc.io"
"email": "david@bit.dev"
},
"ci": {},
"docs": [],
Expand Down
2 changes: 1 addition & 1 deletion fixtures/version-model-object.json
Expand Up @@ -24,7 +24,7 @@
"message": "init",
"date": "1497953762445",
"username": "David First",
"email": "david@bitsrc.io"
"email": "david@bit.dev"
},
"ci": {
"startTime": "1497953909560",
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "bit-bin",
"version": "14.0.4-dev.1",
"version": "14.0.4",
"license": "Apache-2.0",
"main": "./dist/api.js",
"preferGlobal": true,
Expand Down

1 comment on commit fe25783

@FDiskas
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.