1 | export enum StringConstant {
|
2 | space = ' '
|
3 | }
|
4 |
|
5 | export enum FolderName {
|
6 | node_modules = 'node_modules'
|
7 | }
|
8 |
|
9 | export enum InstallScript {
|
10 | install = 'npm install --no-audit'
|
11 | }
|
12 |
|
13 | export enum CommandlineArgument {
|
14 | distTag = 'distTag',
|
15 | copy = 'copy',
|
16 | sourceFolder = 'sourceFolder',
|
17 | pattern = 'pattern'
|
18 | }
|
19 |
|
20 | export enum DistTag {
|
21 | source = 'source'
|
22 | }
|
23 |
|
24 | export enum PackagePath {
|
25 | distTag = '_requested.fetchSpec',
|
26 | dependencies = 'dependencies',
|
27 | devDependencies = 'devDependencies'
|
28 | }
|
29 |
|
30 | export const ShortCommandlineArgument = {
|
31 | [CommandlineArgument.distTag]: 'd' as 'd',
|
32 | [CommandlineArgument.copy]: 'c' as 'c',
|
33 | [CommandlineArgument.sourceFolder]: 's' as 's',
|
34 | [CommandlineArgument.pattern]: 'p' as 'p'
|
35 | };
|
36 |
|
37 | export interface IStringObject {
|
38 | [key: string]: string;
|
39 | }
|
40 |
|
41 | export interface IPostInstallDistTag {
|
42 | distTag: string;
|
43 | workingDirectory: string;
|
44 | }
|
45 |
|
46 | export interface IGetDependencies {
|
47 | path: string;
|
48 | }
|
49 |
|
50 | export interface IPostInstallCopy {
|
51 | workingDirectory: string;
|
52 | sourceFolder: string;
|
53 | pattern: string;
|
54 | }
|
55 | export interface IInstall {
|
56 | workingDirectory: string;
|
57 | dependencies?: string;
|
58 | }
|
59 |
|
60 | export interface IGetPackageData {
|
61 | path: string;
|
62 | } |
\ | No newline at end of file |