@jatinmourya/ng-init 1.2.0 → 1.2.2
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 +2 -2
- package/dist/utils/version-checker.js +4 -4
- package/package.json +4 -1
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
|
-
-
|
|
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
|
-
-
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var u=Object.defineProperty;var r=(t,n)=>u(t,"name",{value:n,configurable:!0});import{execa as o}from"execa";import e from"chalk";import
|
|
1
|
+
var u=Object.defineProperty;var r=(t,n)=>u(t,"name",{value:n,configurable:!0});import{execa as o}from"execa";import e from"chalk";import a from"semver";async function m(){try{const{stdout:t}=await o("node",["--version"]);return t.trim().replace("v","")}catch{return null}}r(m,"getNodeVersion");async function d(){try{const{stdout:t}=await o("npm",["--version"]);return t.trim()}catch{return null}}r(d,"getNpmVersion");async function c(){try{const{stdout:t}=await o("nvm",["--version"],{shell:!0});return t.trim()}catch{return null}}r(c,"getNvmVersion");async function g(){return await c()!==null}r(g,"isNvmInstalled");async function p(){try{const{stdout:t}=await o("ng",["--version"],{shell:!0});return t.trim()||null}catch{return null}}r(p,"getAngularCliVersion");async function w(){console.log(e.bold.cyan(`
|
|
2
2
|
\u{1F50D} System Environment Check
|
|
3
|
-
`)),console.log(e.gray("\u2501".repeat(50)));const t=await
|
|
3
|
+
`)),console.log(e.gray("\u2501".repeat(50)));const t=await m(),n=await d(),s=await c(),i=await p();return console.log(e.white("Node.js: ")+(t?e.green(`v${t}`):e.red("Not installed"))),console.log(e.white("npm: ")+(n?e.green(`v${n}`):e.red("Not installed"))),console.log(e.white("nvm: ")+(s?e.green(`v${s}`):e.yellow("Not installed"))),console.log(e.white("Angular CLI: ")+(i?e.green(`v${i}`):e.yellow("Not installed"))),console.log(e.gray("\u2501".repeat(50))+`
|
|
4
4
|
`),{node:t,npm:n,nvm:s,angularCli:i}}r(w,"displaySystemVersions");async function V(){try{const{stdout:t}=await o("nvm",["list","available"],{shell:!0}),n=[],s=t.split(`
|
|
5
|
-
`);for(const i of s){const
|
|
6
|
-
`);for(const i of s){const
|
|
5
|
+
`);for(const i of s){const l=i.match(/(\d+\.\d+\.\d+)/);l&&n.push(l[1])}return n}catch{return[]}}r(V,"getAvailableNodeVersions");async function x(){try{const{stdout:t}=await o("nvm",["list"],{shell:!0}),n=[],s=t.split(`
|
|
6
|
+
`);for(const i of s){const l=i.match(/(\d+\.\d+\.\d+)/);l&&n.push(l[1])}return n}catch{return[]}}r(x,"getInstalledNodeVersions");async function N(t){try{return await o("nvm",["use",t],{shell:!0,stdio:"inherit"}),!0}catch{return!1}}r(N,"switchNodeVersion");async function C(t){try{return await o("nvm",["install",t],{shell:!0,stdio:"inherit"}),!0}catch{return!1}}r(C,"installNodeVersion");function $(t,n){return a.compare(t,n)}r($,"compareVersions");function b(t,n){return a.satisfies(t,n)}r(b,"satisfiesVersion");export{$ as compareVersions,w as displaySystemVersions,p as getAngularCliVersion,V as getAvailableNodeVersions,x as getInstalledNodeVersions,m as getNodeVersion,d as getNpmVersion,c as getNvmVersion,C as installNodeVersion,g as isNvmInstalled,b as satisfiesVersion,N as switchNodeVersion};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jatinmourya/ng-init",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
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": [
|
|
@@ -62,5 +62,8 @@
|
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"esbuild": "^0.27.2"
|
|
65
|
+
},
|
|
66
|
+
"publishConfig": {
|
|
67
|
+
"access": "public"
|
|
65
68
|
}
|
|
66
69
|
}
|