Skip to content

Commit

Permalink
Merge 803e4a7 into 913d5d8
Browse files Browse the repository at this point in the history
  • Loading branch information
GiladShoham authored Feb 22, 2020
2 parents 913d5d8 + 803e4a7 commit c05f5f9
Show file tree
Hide file tree
Showing 390 changed files with 8,484 additions and 3,168 deletions.
14 changes: 1 addition & 13 deletions .bitmap
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,5 @@
"origin": "AUTHORED",
"exported": true
},
"wix/stylable": {
"files": [
{
"relativePath": "src/plugins/wix/stylable.js",
"test": false,
"name": "stylable.js"
}
],
"mainFile": "src/plugins/wix/stylable.js",
"origin": "AUTHORED",
"exported": false
},
"version": "14.2.5"
"version": "14.7.5-dev.1"
}
13 changes: 10 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
node_modules
e2e/fixtures

# A temp file should be required from outside (via npm) so no point to fix it
src/graph/graph.ts

# Should be replaced by an external graph - no point to fix it
src/r-graph/toposort.ts

# files that are not in use, so no point fixing them
src/cli/commands/public-cmds/search-cmd.ts
src/git-hooks/exceptions/index.ts
Expand All @@ -11,12 +17,13 @@ src/search/indexer.ts
src/search/serverless-index.ts
src/search/search-adapter.ts
src/search/query-builder.ts
src/extensions/core-extensions/ext-docs-parser.ts
src/extensions/extension-command.ts
src/legacy-extensions/core-extensions/ext-docs-parser.ts
src/legacy-extensions/extension-command.ts
src/consumer/migrations/consumer-migrator.ts
src/consumer/migrations/bit-map/index.ts
src/scope/migrations/component-version/to-semver-migration.ts
src/scope/migrations/scope-migrator.ts
src/scope/migrations/component-version/remove-latest-from-compiler.ts
src/extensions/extension.ts
src/legacy-extensions/extension.ts
src/consumer/component/environment/validate-plugin.ts
src/addons/run-configuration.ts
8 changes: 8 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
module.exports = {
parser: '@typescript-eslint/parser',
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx']
}
}
},
parserOptions: {
project: './tsconfig.json'
},
Expand Down Expand Up @@ -41,6 +48,7 @@ module.exports = {
'import/export': 'off', // typescript does allow multiple export default when overloading. not sure why it's enabled here. rule source: https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/export.md
'prefer-object-spread': 'off',
'import/no-duplicates': 'off',
'import/prefer-default-export': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'import/no-cycle': 'off',
'import/no-useless-path-segments': 'off',
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
logs
*.log
npm-debug.log*
types
# Runtime data
pids
*.pid
Expand Down
40 changes: 10 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,64 +6,44 @@
<a href="https://join.slack.com/t/bit-dev-community/shared_invite/enQtNzM2NzQ3MTQzMTg3LWI2YmFmZjQwMTkxNmFmNTVkYzU2MGI2YjgwMmJlZDdkNWVhOGIzZDFlYjg4MGRmOTM4ODAxNTIxMTMwNWVhMzg" ><img alt="Join Slack" src="https://img.shields.io/badge/Slack-Join%20Bit%20Slack-blueviolet"/></a>
[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Share%20code%20components%20as%20a%20team%20@bitdev_&url=https://bit.dev&hashtags=opensource,javascript,programming,reactjs,webdev,vuejs,angularjs)

# Bit is the platform for collaborating on components
# Bit / Component Workspace

![Bit Workflow](https://storage.googleapis.com/static.bit.dev/docs/images/quick_start.png)

[Documentation](https://docs.bit.dev)[Tutorials](https://docs.bit.dev/docs/tutorials/bit-react-tutorial)[Quick start guide ](https://docs.bit.dev/docs/quick-start)[Workflows](https://docs.bit.dev/docs/workflows/workflows)[bit.dev components cloud](https://bit.dev)[Video demo](https://www.youtube.com/watch?v=E5lgoz6-nfs)
[Documentation](https://docs.bit.dev)[Tutorials](https://docs.bit.dev/docs/tutorials/bit-react-tutorial)[Quick start guide ](https://docs.bit.dev/docs/quick-start)[Workflows](https://docs.bit.dev/docs/workflows/workflows)[bit.dev components cloud](https://bit.dev)[Video demo](https://www.youtube.com/watch?v=E5lgoz6-nfs)

## What is Bit? 🤔

Bit is an [open-source](https://github.com/teambit/bit) cli tool for collaborating on isolated components across projects and repositories.
Use Bit to distribute discrete components from a design library or a project into a standalone reusable package and utilize it across applications.
Bit is an [open-source](https://github.com/teambit/bit) cli tool for collaborating on isolated components across projects and repositories.
Use Bit to distribute discrete components from a design library or a project into a standalone reusable package and utilize it across applications.
You can set up your own server for components collaboration, or use the [bit.dev cloud](#bitdev-cloud-%EF%B8%8F) hosting for private and public components sharing.

## Why Bit? 🎖️

Bit facilitates the process of collaborating on UI components. Team members can share, maintain, and synchronize isolated components from different projects.

Bit allows teams to:

- Increase code reusability
- Increase design and development efficiency
- Retain UI and UX consistency
- Increase project's stability

## Key Features 🔑

- Extract a component for sharing directly from an existing library or project.
- Validate the component's independence by building and testing each component separately from the rest of the project.
- Change the source code of shared components from any application that utilizes it.
- Get published changes in components on top of local modifications.
- Contribute back changes made to components directly from the consuming applications.
- Automatically wrap each component as an npm package.
- Distribute discrete components instead of a single massive package.
- Automate component versioning according to changes in its dependencies.
- Use with leading frameworks and tools: React, Vue, Angular, Mocha, Jest.
- Works alongside Git, NPM, and Yarn.

Bit is working with Javascript and Javascript frameworks:

<img src="https://storage.googleapis.com/static.bit.dev/docs/images/js_logos.png">

## Installation 🚪

Using npm:
Using npm:

```bash
npm install bit-bin --global
```

Using yarn:
Using yarn:
```bash
yarn global add bit-bin
yarn global add bit-bin
```

Bit cli requires node 8.12 and above. Check other [installation](https://docs.bit.dev/docs/installation) methods.

## Quick start

## bit.dev cloud 🌩️

Use [bit.dev](https://bit.dev) cloud hosting solution as a shared server and showcase for your components.
Use [bit.dev](https://bit.dev) cloud hosting solution as a shared server and showcase for your components.
<p align="center">
<a href="https://bit.dev"><img src="https://storage.googleapis.com/bit-docs/component-discovery-bit-react-gif.gif"></a>
</p>
Expand Down
5 changes: 3 additions & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module.exports = function (api) {
module.exports = function(api) {
api.cache(true);

const presets = [
'@babel/preset-react',
'@babel/typescript',
[
'@babel/preset-env',
Expand Down Expand Up @@ -34,7 +35,7 @@ module.exports = function (api) {
return {
presets,
plugins,
only: ['**/*.ts'],
only: ['**/*.ts', '**/*.tsx'],
ignore: ['components/*']
};
};
5 changes: 2 additions & 3 deletions bin/bit.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@ function loadCli() {
function promptAnalyticsIfNeeded(cb) {
// this require is needed here because bit caches are not created yet and will cause exception
const { Analytics } = require('../dist/analytics/analytics');
return Analytics.promptAnalyticsIfNeeded(process.argv.slice(2))
.then(() => cb())
.catch(() => console.log(chalk.yellow('\noperation aborted')));
return Analytics.promptAnalyticsIfNeeded(process.argv.slice(2)).then(() => cb());
// .catch(() => console.log(chalk.yellow('\noperation aborted')));
}
verifyCompatibility();
ensureDirectories();
Expand Down
170 changes: 0 additions & 170 deletions components/container/fs-container/container.spec.ts

This file was deleted.

Loading

0 comments on commit c05f5f9

Please sign in to comment.