Skip to content

Commit 27fd13b

Browse files
authored
new npm commands added (#42)
* new npm commands added * correcting from valueParameter to flagParameter in npm file * packets moved a value parameter * fix npm
1 parent 2e024e6 commit 27fd13b

1 file changed

Lines changed: 136 additions & 5 deletions

File tree

PowerType/Dictionaries/npm.ps1

Lines changed: 136 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,20 @@
1414
}
1515

1616
[PowerTypeDictionary]@{
17+
Keys = @("npm");
18+
Name = "npm";
19+
Description = "the package manager for JavaScript";
1720
Platforms = ([Platforms]::All);
1821
State = [DictionaryState]::Experimental -bor [DictionaryState]::Incomplete;
1922
Source = "Hand crafted";
2023
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");
2425
Parameters = @(
2526
[CommandParameter]@{
2627
Keys = @("start");
2728
Name = "start";
2829
Description = "Alias for 'npm run start'";
29-
}
30+
},
3031
[CommandParameter]@{
3132
Keys = @("run", "run-script", "rum", "urn");
3233
Name = "run";
@@ -37,7 +38,137 @@
3738
Description = "What script to run";
3839
Source = $scripts;
3940
}
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+
)
41172
}
42173
)
43174
}

0 commit comments

Comments
 (0)