Giter Site home page Giter Site logo

ngx-tabs-libdemo's Introduction

Angular Tabs - Demo Library

semantic-release Build Status

by Juri Strumpflohner ยท https://juristr.com/blog

WARNING: This is not a production ready library, but rather just an example to showcase how to release custom Angular libraries.

This repo is meant to demonstrate the creation of an Angular library, following the Angular Package Format.

Contents

So what's in this repo?

  • setup with ng-packagr (master) - the master branch shows the suggested approach, namely to setup your library with ng-packagr.
  • NX workspace setup (with-demoproj-setup) - Setup that shows how you can use Nrwl/NX to setup a nice workspace containing a library project and demo it straight away.
  • Building libraries with Bazel (bazel) - This branch shows how to use Bazel to generate an Angular package.
  • manual setup (manual-setup) - the manual-setup branch on the other hand, demonstrates how to assemble the different tooling in order to get a manual setup with simple npm scripts that are being executed one after the other. This allows for full flexibility and serves for educational purposes, to learn how things are done behind the scenes. This is a slightly improved version of the talk given at NG-BE (see link below).

Useful links

Angular Package Format v5.0, design document at Google Docs

Talks

Create and publish Angular libs like a Pro (March 2018) - Juri Strumpflohner at ngVikings, demoing building Angular libraries with ng-packagr, with NX as well as Bazel (30min talk) (Slides)

Juri Strumpflohner - Create & Publish Angular Libs like a PRO at ngVikings

Packaging Angular Libraries (Jan 2018) - Jason Aden at Angular Mountain View Meetup (45min talk)

Packaging Angular Libraries - Jason Aden at Angular Mountain View Meetup

Create and publish Angular libs like a Pro (Dec 2017) - Juri Strumpflohner at NG-BE (30min talk) (Slides)

Juri Strumpflohner - Create and publish Angular libs like a Pro

Packaging Angular (April 2017)- Jason Aden at ng-conf 2017 (28min talk)

Packaging Angular - Jason Aden

Bugs, questions,...

Open an issue here on the repo or simply reach out to me on Twitter ๐Ÿ˜ƒ

ngx-tabs-libdemo's People

Contributors

alexeagle avatar juristr avatar konjevicante avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ngx-tabs-libdemo's Issues

Is there any way to run it using postinstall script.

In my scenario I do not want to publish the package . Instead I want to consume the library directly from the git repo to my project and build the library inside of node_modules with a post install script. I.e -

  • Library package :
"build:lib": "ng-packagr -p package.json",
 "postinstall": "npm run build:lib",
  • In my project package json -
"dependencies": {
 "lib": "github:libraryname#e578717489c921915f12e23a6d809c96c7dba7ed",
}

FAILED: Build did NOT complete successfully

Rajeshs-MBP:ngx-tabs-libdemo rajesh$ yarn build:lib
yarn run v1.12.3
$ bazel build :npm_package
WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:
/Volumes/WindowsHD/Projects/VSTS/ngx-tabs-libdemo/tools/bazel.rc
INFO: Invocation ID: 37f86409-5e61-4215-a91b-e45df6bccfc7
ERROR: error loading package '': Encountered error while reading extension file 'defs.bzl': no such package '@build_bazel_rules_nodejs//': The native http_arch
ive rule is deprecated. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") for a drop-in replacement.
Use --incompatible_remove_native_http_archive=false to temporarily continue using the native rule.
ERROR: error loading package '': Encountered error while reading extension file 'defs.bzl': no such package '@build_bazel_rules_nodejs//': The native http_arch
ive rule is deprecated. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") for a drop-in replacement.
Use --incompatible_remove_native_http_archive=false to temporarily continue using the native rule.
INFO: Elapsed time: 0.164s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

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.