@nrwl/bazel
TypeScript icon, indicating that this package has built-in type declarations

7.8.7 • Public • Published

Bazel Commands

Add new app

node_modules/.bin/ng generate app [name]

Example: node_modules/.bin/ng generate app test

Add new component

node_modules/.bin/ng generate component [name] --directory=[dir]

Example: node_modules/.bin/ng generate component friends --directory=myDir

  • must manually import the component's Bazel rule in the consuming Bazel rule

Add new lib

node_modules/.bin/ng generate lib [name]

Example: node_modules/.bin/ng generate lib mylib

  • must manually import the lib's Bazel rule in the consuming Bazel rule

Run dev server

ibazel run apps/[app specific path]]/src:devserver (anything between apps/**/src points to a specific app)

Example: ibazel run apps/my-dir/my-app/src:devserver

Run prod server

bazel run apps/[app specific path]]/src:prodserver (anything between apps/**/src points to a specific app)

Example: bazel run apps/my-dir/my-app/src:prodserver

Run unit tests

ibazel test //libs/mylib/src:test

  • currently works for libs

/@nrwl/bazel/

    Package Sidebar

    Install

    npm i @nrwl/bazel

    Weekly Downloads

    41

    Version

    7.8.7

    License

    MIT

    Unpacked Size

    91.4 kB

    Total Files

    45

    Last publish

    Collaborators

    • jameshenry
    • meeroslav
    • altan-nrwl
    • juristr
    • jack-nrwl
    • nrwl-jason
    • nrwlowner