[{"data":1,"prerenderedAt":51},["ShallowReactive",2],{"project-libs":3},{"repository":4,"readmeHtml":36,"readmeTruncated":32,"headings":37},{"id":5,"name":6,"slug":6,"description":7,"url":8,"homepage":9,"topics":10,"language":21,"languages":22,"stars":26,"forks":26,"sizeKb":27,"license":9,"createdAt":28,"updatedAt":29,"pushedAt":30,"defaultBranch":31,"lastCommit":9,"latestRelease":9,"isPinned":32,"pinnedOrder":9,"previewImage":33,"previewSource":34,"placeholderIndex":35},893008076,"libs","Automated NPM Library Publishing Template 🚀","https:\u002F\u002Fgithub.com\u002FElpiu\u002Flibs",null,[11,12,13,14,15,16,17,18,19,20],"angular","angular-library","automation","ci-cd","gh-act","github-actions","library-template","local-testing","npm","npm-publish","TypeScript",[23],{"name":21,"color":24,"percent":25},"#3178c6",100,0,349,"2024-11-23T09:38:45Z","2024-11-23T13:59:08Z","2024-11-27T20:34:54Z","master",false,"https:\u002F\u002Fraw.githubusercontent.com\u002FElpiu\u002Flibs\u002Fmaster\u002Fschema.excalidraw.png","readme",4,"\u003Ch2 id=\"automated-npm-library-publishing-template\">Automated NPM Library Publishing Template 🚀\u003C\u002Fh2>\n\u003Cp>This branch serves as a template for automating the process of publishing libraries to NPM. You can add a new library and configure a dedicated GitHub workflow to handle its publishing seamlessly.\u003C\u002Fp>\n\u003Cp>Additionally, you can run GitHub Actions locally using the gh act extension for easier testing and debugging.\u003C\u002Fp>\n\u003Ch3 id=\"features\">Features ✨\u003C\u002Fh3>\n\u003Cul>\n\u003Cli>Template for multiple libraries: Easily add and manage new libraries for automated publishing.\u003C\u002Fli>\n\u003Cli>GitHub Actions integration: Configure workflows for automatic builds and publishing.\u003C\u002Fli>\n\u003Cli>Local Action testing: Test and debug workflows on your local machine before pushing changes.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FElpiu\u002Flibs\u002Fmaster\u002Fschema.excalidraw.png\" alt=\"img\" loading=\"lazy\" decoding=\"async\" \u002F>\u003C\u002Fp>\n\u003Ch4 id=\"run-github-actions-locally\">Run GitHub Actions Locally 🚀\u003C\u002Fh4>\n\u003Cp>To run workflows locally, you need to install the gh act extension see \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fnektos\u002Fgh-act\" target=\"_blank\" rel=\"noopener noreferrer\">gh-act\u003C\u002Fa>.\u003C\u002Fp>\n\u003Cp>After installation run:\u003C\u002Fp>\n\u003Cpre class=\"shiki shiki-themes github-light-high-contrast github-dark-high-contrast\" style=\"--shiki-light:#0e1116;--shiki-dark:#f0f3f6;--shiki-light-bg:#ffffff;--shiki-dark-bg:#0a0c10\" tabindex=\"0\">\u003Ccode class=\"language-bash\">\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#702C00;--shiki-dark:#FFB757\">gh\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032563;--shiki-dark:#ADDCFF\"> act\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#023B95;--shiki-dark:#91CBFF\"> -j\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032563;--shiki-dark:#ADDCFF\"> 'job-name'\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#023B95;--shiki-dark:#91CBFF\"> --pull=false\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch4 id=\"adding-a-new-library\">Adding a New Library 🛠️\u003C\u002Fh4>\n\u003Cul>\n\u003Cli>\u003Cstrong>\u003Cem>Create the library\u003C\u002Fem>\u003C\u002Fstrong>: Add your library under the appropriate folder in the repository.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Cem>Write a workflow\u003C\u002Fem>\u003C\u002Fstrong>: Define a GitHub workflow for the library, specifying its build and publishing steps.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Cem>Test locally\u003C\u002Fem>\u003C\u002Fstrong>: Use gh act to ensure your workflow is correctly configured.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>\u003Cem>Push to the repository\u003C\u002Fem>\u003C\u002Fstrong>: The workflow will automatically trigger on the appropriate events (e.g., pushes to main).\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch4 id=\"how-to-recreate-this-workspace\">How to Recreate This Workspace 🛠️\u003C\u002Fh4>\n\u003Cp>Follow these steps to set up a new workspace and libraries from scratch:\u003C\u002Fp>\n\u003Ch5 id=\"step-1-initialize-a-new-folder\">Step 1: Initialize a New Folder\u003C\u002Fh5>\n\u003Cp>Create a new folder for your workspace:\u003C\u002Fp>\n\u003Cpre class=\"shiki shiki-themes github-light-high-contrast github-dark-high-contrast\" style=\"--shiki-light:#0e1116;--shiki-dark:#f0f3f6;--shiki-light-bg:#ffffff;--shiki-dark-bg:#0a0c10\" tabindex=\"0\">\u003Ccode class=\"language-bash\">\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#702C00;--shiki-dark:#FFB757\">mkdir\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032563;--shiki-dark:#ADDCFF\"> my-workspace\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#023B95;--shiki-dark:#91CBFF\">cd\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032563;--shiki-dark:#ADDCFF\"> my-workspace\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#702C00;--shiki-dark:#FFB757\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032563;--shiki-dark:#ADDCFF\"> init\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch5 id=\"step-2-create-angular-library\">Step 2: Create Angular Library\u003C\u002Fh5>\n\u003Cp>Run the following command to create an Angular workspace without a default application:\u003C\u002Fp>\n\u003Cpre class=\"shiki shiki-themes github-light-high-contrast github-dark-high-contrast\" style=\"--shiki-light:#0e1116;--shiki-dark:#f0f3f6;--shiki-light-bg:#ffffff;--shiki-dark-bg:#0a0c10\" tabindex=\"0\">\u003Ccode class=\"language-bash\">\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#702C00;--shiki-dark:#FFB757\">ng\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032563;--shiki-dark:#ADDCFF\"> new\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032563;--shiki-dark:#ADDCFF\"> my-workspace\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#023B95;--shiki-dark:#91CBFF\"> --no-create-application\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#023B95;--shiki-dark:#91CBFF\">cd\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032563;--shiki-dark:#ADDCFF\"> my-workspace\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#702C00;--shiki-dark:#FFB757\">ng\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032563;--shiki-dark:#ADDCFF\"> generate\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032563;--shiki-dark:#ADDCFF\"> library\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032563;--shiki-dark:#ADDCFF\"> my-lib\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\n",[38,42,45,48],{"id":39,"text":40,"level":41},"features","Features ✨",3,{"id":43,"text":44,"level":35},"run-github-actions-locally","Run GitHub Actions Locally 🚀",{"id":46,"text":47,"level":35},"adding-a-new-library","Adding a New Library 🛠️",{"id":49,"text":50,"level":35},"how-to-recreate-this-workspace","How to Recreate This Workspace 🛠️",1795449475561]