|
14 | 14 | } |
15 | 15 |
|
16 | 16 | [PowerTypeDictionary]@{ |
| 17 | + Keys = @("npm"); |
| 18 | + Name = "npm"; |
| 19 | + Description = "the package manager for JavaScript"; |
17 | 20 | Platforms = ([Platforms]::All); |
18 | 21 | State = [DictionaryState]::Experimental -bor [DictionaryState]::Incomplete; |
19 | 22 | Source = "Hand crafted"; |
20 | 23 | Url = "https://www.npmjs.com/"; |
21 | | - Keys = @("npm"); |
22 | | - Name = "npm"; |
23 | | - Description = "the package manager for JavaScript"; |
| 24 | + Version = [Version]::Parse("0.0.2"); |
24 | 25 | Parameters = @( |
25 | 26 | [CommandParameter]@{ |
26 | 27 | Keys = @("start"); |
27 | 28 | Name = "start"; |
28 | 29 | Description = "Alias for 'npm run start'"; |
29 | | - } |
| 30 | + }, |
30 | 31 | [CommandParameter]@{ |
31 | 32 | Keys = @("run", "run-script", "rum", "urn"); |
32 | 33 | Name = "run"; |
|
37 | 38 | Description = "What script to run"; |
38 | 39 | Source = $scripts; |
39 | 40 | } |
40 | | - ); |
| 41 | + ) |
| 42 | + }, |
| 43 | + [CommandParameter]@{ |
| 44 | + Keys = @("init"); |
| 45 | + Name = "init"; |
| 46 | + Description = "This command initializes a package by creating a package.json file."; |
| 47 | + }, |
| 48 | + [CommandParameter]@{ |
| 49 | + Keys = @("uninstall","remove"); |
| 50 | + Name = "uninstall"; |
| 51 | + Description = "uninstall a package"; |
| 52 | + }, |
| 53 | + [CommandParameter]@{ |
| 54 | + Keys = @("update"); |
| 55 | + Name = "update"; |
| 56 | + Description = "update a package"; |
| 57 | + }, |
| 58 | + [CommandParameter]@{ |
| 59 | + Keys = @("outdated"); |
| 60 | + Name = "outdated"; |
| 61 | + Description = "list outdated packages"; |
| 62 | + }, |
| 63 | + [CommandParameter]@{ |
| 64 | + Keys = @("audit"); |
| 65 | + Name = "audit"; |
| 66 | + Description = "check for security vulnerabilities"; |
| 67 | + }, |
| 68 | + [CommandParameter]@{ |
| 69 | + Keys = @("list","la","ll"); |
| 70 | + Name = "list"; |
| 71 | + Description = "list installed packages"; |
| 72 | + }, |
| 73 | + [CommandParameter]@{ |
| 74 | + Keys = @("search","s"); |
| 75 | + Name = "search"; |
| 76 | + Description = "search for packages"; |
| 77 | + }, |
| 78 | + [CommandParameter]@{ |
| 79 | + Keys = @("help","h","?"); |
| 80 | + Name = "help"; |
| 81 | + Description = "show help"; |
| 82 | + }, |
| 83 | + [CommandParameter]@{ |
| 84 | + Keys = @("version","v"); |
| 85 | + Name = "version"; |
| 86 | + Description = "show version"; |
| 87 | + }, |
| 88 | + [CommandParameter]@{ |
| 89 | + Keys = @("install","i"); |
| 90 | + Name = "install"; |
| 91 | + Description = "Install everything in package.json"; |
| 92 | + Parameters = @( |
| 93 | + # Paquetes comunes (drivers, ORMs, etc.) |
| 94 | + [ValueParameter]@{ |
| 95 | + Name = "package"; |
| 96 | + Description = "The npm package to install"; |
| 97 | + Source = [StaticSource]@{ |
| 98 | + Name = "Common npm packages"; |
| 99 | + Items = @( |
| 100 | + [SourceItem]@{ |
| 101 | + Name = "mysql"; |
| 102 | + Description = "Original MySQL driver"; |
| 103 | + }, |
| 104 | + [SourceItem]@{ |
| 105 | + Name = "mysql2"; |
| 106 | + Description = "Faster MySQL driver"; |
| 107 | + }, |
| 108 | + [SourceItem]@{ |
| 109 | + Name = "pg"; |
| 110 | + Description = "PostgreSQL client (node-postgres)"; |
| 111 | + }, |
| 112 | + [SourceItem]@{ |
| 113 | + Name = "pg-promise"; |
| 114 | + Description = "Promise-based PostgreSQL client"; |
| 115 | + }, |
| 116 | + [SourceItem]@{ |
| 117 | + Name = "mongoose"; |
| 118 | + Description = "MongoDB ODM with schemas"; |
| 119 | + }, |
| 120 | + [SourceItem]@{ |
| 121 | + Name = "mongodb"; |
| 122 | + Description = "Official MongoDB driver"; |
| 123 | + }, |
| 124 | + [SourceItem]@{ |
| 125 | + Name = "sqlite3"; |
| 126 | + Description = "SQLite binding"; |
| 127 | + }, |
| 128 | + [SourceItem]@{ |
| 129 | + Name = "better-sqlite3"; |
| 130 | + Description = "Faster SQLite library"; |
| 131 | + }, |
| 132 | + [SourceItem]@{ |
| 133 | + Name = "redis"; |
| 134 | + Description = "Modern Redis client"; |
| 135 | + }, |
| 136 | + [SourceItem]@{ |
| 137 | + Name = "ioredis"; |
| 138 | + Description = "Advanced Redis client"; |
| 139 | + }, |
| 140 | + [SourceItem]@{ |
| 141 | + Name = "tedious"; |
| 142 | + Description = "MSSQL driver for Node.js"; |
| 143 | + }, |
| 144 | + [SourceItem]@{ |
| 145 | + Name = "sequelize"; |
| 146 | + Description = "Promise-based ORM"; |
| 147 | + }, |
| 148 | + [SourceItem]@{ |
| 149 | + Name = "typeorm"; |
| 150 | + Description = "ORM with Active Record & Data Mapper"; |
| 151 | + }, |
| 152 | + [SourceItem]@{ |
| 153 | + Name = "prisma"; |
| 154 | + Description = "Modern type-safe ORM"; |
| 155 | + }, |
| 156 | + [SourceItem]@{ |
| 157 | + Name = "objection"; |
| 158 | + Description = "ORM built on Knex.js"; |
| 159 | + }, |
| 160 | + [SourceItem]@{ |
| 161 | + Name = "bookshelf"; |
| 162 | + Description = "ORM built on Knex.js with plugins"; |
| 163 | + }, |
| 164 | + [SourceItem]@{ |
| 165 | + Name = "typescript"; |
| 166 | + Description = "TypeScript compiler"; |
| 167 | + } |
| 168 | + ) |
| 169 | + } |
| 170 | + } |
| 171 | + ) |
41 | 172 | } |
42 | 173 | ) |
43 | 174 | } |
0 commit comments