Giter Club home page Giter Club logo

bit-collections's Introduction

Bit Collections

Collections

Angular

How to use

Configure

  • bit init inside the project
  • bit login

Utility

  • bit add <component-name> for example: bit add src/app/ui/no-items and set entry module with --main=src/app/ui/no-items/no-items.module.ts. If you want to group a set of files in an unique namespace you have to specify the id --id=no-items
  • bit tag <component-name> for example: bit tag no-items: improve a component version (and trigger a build for this component);
  • bit export <user-name>.<collection-name> <user-name>.<collection-name>/<component-name> for example bit export ptesser.ng-ui ptesser.ng-ui/no-items: load component into a specific collection if the component is already tracked else TODO;
  • bit build <component-name>: build all components or a specific component;
  • bit show <component-name>: show all component dependencies and a general overview;

Remove components

  • bit remove <component-id>
  • bit untrack <component-id>

Useful links

This link is useful for this kind of errors:

NullInjectorError: StaticInjectorError(AppModule)[NgClassImpl -> ElementRef]: 

Compiler

Angular compiler that works in this project is version 0.1.7.

Run bit import bit.envs/compilers/[email protected] --compiler

Version 0.2.1 generates error:

error: bit failed to load bit.envs/compilers/[email protected] with the following exception:
Cannot find module '/Users/ptesser/Documents/repository/github/personal/bit-collections/ng-collections/.bit/components/compilers/angular/bit.envs/0.2.1/dist/angular/tsconfig.json'.
Error: Cannot find module '/Users/ptesser/Documents/repository/github/personal/bit-collections/ng-collections/.bit/components/compilers/angular/bit.envs/0.2.1/dist/angular/tsconfig.json'

Version 0.1.2 generates error:

Command failed: node /Users/ptesser/Documents/repository/github/personal/bit-collections/ng-collections/.bit/components/compilers/angular/bit.envs/0.1.2/node_modules/ng-packagr/cli/main.js -p ng-package.json -c tsconfig.json
error TS6046: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.string', 'es2019.symbol', 'esnext.array', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.bigint'.


Building Angular Package

bit-collections's People

Contributors

ptesser avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.