---
title: "Discussion on \"How to create an npm Angular package project using angular workspace\" | Hashnode"
description: "Discussion on \"How to create an npm Angular package project using angular workspace\". This kind of development environment is intend to create a library and then publish it in npm, the project will contain the library and a demo app to test it during development.\nCreating the solution (library + test app)\nUse the Angular CLI to genera..."
url: "https://hashnode.com/posts/how-to-create-an-npm-angular-package-project-using-angular-workspace/61523765040ee872369508da"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to create an npm Angular package project using angular workspace](https://ahmed-develop.hashnode.dev/how-to-create-an-npm-angular-package-project-using-angular-workspace?utm_source=hashnode&utm_medium=feed)

This kind of development environment is intend to create a library and then publish it in npm, the project will contain the library and a demo app to test it during development. Creating the solution (library + test app) Use the Angular CLI to genera...

Sep 27, 2021 · 3 min read · ahmed-develop.hashnode.dev  
Read the article

-   [#angular](https://hashnode.com/tag/angular)
-   [#npm](https://hashnode.com/tag/npm)
-   [#library](https://hashnode.com/tag/library)

## Written by

[Ahmed HABBACHI](https://hashnode.com/@AhmedHabbachi)

@AhmedHabbachi

  
[View profile](https://hashnode.com/@AhmedHabbachi)

Mainly I am a full stack developer (main stack: Angular as frontend and ASP.Net core api as backend).

## Responses 1

Markdown supported · ⌘↵ to post

[Rob Levin](https://hashnode.com/@agnosticui-guy)

[Oct 4, 2021](https://hashnode.com/posts/how-to-create-an-npm-angular-package-project-using-angular-workspace/61523765040ee872369508da/comment/615ada15e2f1936f70b2975a)

You know, I just did this a few days back and then completely overhauled it to use `@nrwl/nx` which is quite handy in terms of generating really nice angular configuration.

I took notes [here](https://roblevin.hashnode.dev/adventures-in-creating-an-npm-library-with-nrwlnx)

The reason I preferred this, is you get things like Storybook configuration, `dg` analysis, etc., etc., all for free.

That said, using this approach here is certainly viable! One thing I would recommend though is to `npm link` and test the package locally first before publishing. Or, `npm pack` and install it locally to do the same. It's not fun to publish to the registry just to learn your package won't install.

[Ahmed HABBACHI](https://hashnode.com/@AhmedHabbachi)

[Oct 4, 2021](https://hashnode.com/posts/how-to-create-an-npm-angular-package-project-using-angular-workspace/61523765040ee872369508da/comment/615ada15e2f1936f70b2975a#reply-615af935e2f1936f70b29a41)

I never tried nrwl/nx and I've heard about it alot. I will take a look to your article and try that approach. Thanks for the share.
