@jatinmourya/ng-init 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -34,14 +34,14 @@ A comprehensive command-line interface (CLI) tool designed to automate and strea
34
34
  - Version selection (latest or specific)
35
35
  - Multiple library queue management
36
36
 
37
- - ** Dynamic Library Version Resolution **
37
+ - **Dynamic Library Version Resolution**
38
38
  - Automatically resolves compatible versions based on Angular version
39
39
  - Checks peer dependencies from npm registry
40
40
  - Matches major versions for Angular-scoped packages
41
41
  - Displays compatibility warnings
42
42
  - Caches npm responses for performance
43
43
 
44
- - ** 📦 Popular Library Bundles **
44
+ - **📦 Popular Library Bundles**
45
45
  - UI Framework Bundle (Material + CDK + Flex Layout)
46
46
  - State Management Bundle (NgRx suite)
47
47
  - Form & Validation Bundle
package/dist/runner.js CHANGED
@@ -1,5 +1,5 @@
1
1
  var R=Object.defineProperty;var y=(u,v)=>R(u,"name",{value:v,configurable:!0});import{select as m,input as P,confirm as d,checkbox as N}from"@inquirer/prompts";import e from"chalk";import F from"path";import{displaySystemVersions as G,getNodeVersion as T,isNvmInstalled as D,switchNodeVersion as k,installNodeVersion as M,getInstalledNodeVersions as O}from"./utils/version-checker.js";import{getAngularVersions as _,getNodeRequirementsForAngular as U,getMajorVersions as W,getMinorVersionsForMajor as z,getPatchVersionsForMinor as H}from"./utils/npm-search.js";import{checkNodeCompatibility as J,displayCompatibilityStatus as q,findCompatibleVersions as B,getRecommendedNodeVersion as K,resolveLibraryVersionsAsync as Y}from"./utils/compatibility.js";import{createAngularProject as Q,installPackages as h,runNpmInstall as X,installNodeWithWinget as Z,displayNvmInstallGuide as ee}from"./utils/installer.js";import{interactiveLibrarySearch as oe,simpleLibraryInput as ae,askLibrarySearchPreference as se}from"./utils/prompt-handler.js";import{PROJECT_TEMPLATES as f,LIBRARY_BUNDLES as S,CONFIG_PRESETS as w,PROJECT_STRUCTURE as V,GIT_CONFIG as C,DOC_TEMPLATES as $}from"./templates/templates.js";import{initGitRepo as te,createGitignore as ne,createInitialCommit as ie,createProjectFolders as le,createProjectFiles as E,createReadme as re,createChangelog as ce,validateDirectoryName as ge,updatePackageJsonScripts as me}from"./utils/file-utils.js";import{saveProfile as de,loadProfile as ue,listProfiles as pe,displayProfileInfo as fe}from"./utils/profile-manager.js";import{readFileSync as ye}from"fs";import{fileURLToPath as he}from"url";import{dirname as we,join as ve}from"path";const be=he(import.meta.url),Pe=we(be),je=JSON.parse(ye(ve(Pe,"../package.json"),"utf-8"));async function ze(){try{console.log(e.bold.cyan(`
2
- \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557`)),console.log(e.bold.cyan(`\u2551 Angular Project Automation CLI v${je.version.padEnd(10)}\u2551`)),console.log(e.bold.cyan(`\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D
2
+ \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557`)),console.log(e.bold.cyan(`\u2551 Angular Project Automation CLI v${je.version.padEnd(13)}\u2551`)),console.log(e.bold.cyan(`\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D
3
3
  `));const u=await G(),v=await d({message:"Would you like to use a saved profile?",default:!1});let o={};if(v){const a=await pe();if(a.length===0)console.log(e.yellow(`No saved profiles found. Continuing with manual setup...
4
4
  `));else{const s=await m({message:"Select a profile:",choices:a.map(g=>({name:g,value:g}))}),i=await ue(s);fe(s,i),await d({message:"Use this profile?",default:!0})&&(o=i)}}if(!o.angularVersion){console.log(e.bold.cyan(`
5
5
  \u{1F4E6} Fetching Angular versions...
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jatinmourya/ng-init",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "main": "dist/index.js",
5
5
  "description": "A comprehensive CLI tool to automate Angular project initialization with intelligent version management and prerequisite handling",
6
6
  "files": [