@create-node-app/core 0.4.0 → 0.5.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/dist/chunk-TMTYXZIP.js +4799 -0
- package/dist/esm-SPIVR2WR.js +34 -0
- package/dist/index.cjs +3794 -0
- package/dist/index.d.cts +23 -0
- package/dist/index.d.mts +37 -0
- package/dist/index.d.ts +1 -15
- package/dist/index.js +599 -4822
- package/dist/index.mjs +1573 -1169
- package/package.json +37 -27
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type TemplateOrExtension = {
|
|
2
|
+
url: string;
|
|
3
|
+
ignorePackage?: boolean;
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
declare const checkNodeVersion: (requiredVersion: string, packageName: string) => void;
|
|
7
|
+
declare const checkForLatestVersion: (packageName: string) => Promise<string | null>;
|
|
8
|
+
declare const printEnvInfo: () => Promise<never>;
|
|
9
|
+
type CnaOptions = {
|
|
10
|
+
projectName: string;
|
|
11
|
+
info?: boolean;
|
|
12
|
+
verbose?: boolean;
|
|
13
|
+
packageManager?: string;
|
|
14
|
+
install?: boolean;
|
|
15
|
+
template?: string;
|
|
16
|
+
templatesOrExtensions?: TemplateOrExtension[];
|
|
17
|
+
} & {
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
type CnaOptionsTransform = (options: CnaOptions) => Promise<CnaOptions>;
|
|
21
|
+
declare const createNodeApp: (programName: string, options: CnaOptions, transformOptions: CnaOptionsTransform) => Promise<void>;
|
|
22
|
+
|
|
23
|
+
export { type CnaOptions, type CnaOptionsTransform, type TemplateOrExtension, checkForLatestVersion, checkNodeVersion, createNodeApp, printEnvInfo };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
type TemplateOrExtension = {
|
|
2
|
+
url: string;
|
|
3
|
+
ignorePackage?: boolean;
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
declare const checkNodeVersion: (requiredVersion: string, packageName: string) => void;
|
|
7
|
+
declare const checkForLatestVersion: (packageName: string) => Promise<string | null>;
|
|
8
|
+
declare const printEnvInfo: () => Promise<never>;
|
|
9
|
+
type CnaOptions = {
|
|
10
|
+
projectName: string;
|
|
11
|
+
info?: boolean;
|
|
12
|
+
verbose?: boolean;
|
|
13
|
+
packageManager?: string;
|
|
14
|
+
install?: boolean;
|
|
15
|
+
template?: string;
|
|
16
|
+
templatesOrExtensions?: TemplateOrExtension[];
|
|
17
|
+
} & {
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
type CnaOptionsTransform = (options: CnaOptions) => Promise<CnaOptions>;
|
|
21
|
+
/**
|
|
22
|
+
* Main procress to bootstrap the Node app using user options
|
|
23
|
+
* @param programName - Name of the program to bootstrap the Node application
|
|
24
|
+
* @param options - CnaOptions to bootstrap the Node application
|
|
25
|
+
* @param options.info - Print environment debug info
|
|
26
|
+
* @param options.verbose - Specify if it is needed to use verbose mode or not
|
|
27
|
+
* @param options.projectName - Project's name
|
|
28
|
+
* @param options.packageManager - Package manager to use
|
|
29
|
+
* @param options.install - Generate package.json file installing dependencies
|
|
30
|
+
* @param options.template - Template to bootstrap the aplication
|
|
31
|
+
* @param options.extend - Extensions to apply for the boilerplate generation
|
|
32
|
+
* @param options.templatesOrExtensions - Official extensions to apply
|
|
33
|
+
* @param transformOptions - Function to transform the options
|
|
34
|
+
*/
|
|
35
|
+
declare const createNodeApp: (programName: string, options: CnaOptions, transformOptions: CnaOptionsTransform) => Promise<void>;
|
|
36
|
+
|
|
37
|
+
export { type CnaOptions, type CnaOptionsTransform, checkForLatestVersion, checkNodeVersion, createNodeApp, printEnvInfo };
|
package/dist/index.d.ts
CHANGED
|
@@ -18,20 +18,6 @@ type CnaOptions = {
|
|
|
18
18
|
[key: string]: unknown;
|
|
19
19
|
};
|
|
20
20
|
type CnaOptionsTransform = (options: CnaOptions) => Promise<CnaOptions>;
|
|
21
|
-
/**
|
|
22
|
-
* Main procress to bootstrap the Node app using user options
|
|
23
|
-
* @param programName - Name of the program to bootstrap the Node application
|
|
24
|
-
* @param options - CnaOptions to bootstrap the Node application
|
|
25
|
-
* @param options.info - Print environment debug info
|
|
26
|
-
* @param options.verbose - Specify if it is needed to use verbose mode or not
|
|
27
|
-
* @param options.projectName - Project's name
|
|
28
|
-
* @param options.packageManager - Package manager to use
|
|
29
|
-
* @param options.install - Generate package.json file installing dependencies
|
|
30
|
-
* @param options.template - Template to bootstrap the aplication
|
|
31
|
-
* @param options.extend - Extensions to apply for the boilerplate generation
|
|
32
|
-
* @param options.templatesOrExtensions - Official extensions to apply
|
|
33
|
-
* @param transformOptions - Function to transform the options
|
|
34
|
-
*/
|
|
35
21
|
declare const createNodeApp: (programName: string, options: CnaOptions, transformOptions: CnaOptionsTransform) => Promise<void>;
|
|
36
22
|
|
|
37
|
-
export { CnaOptions, CnaOptionsTransform, checkForLatestVersion, checkNodeVersion, createNodeApp, printEnvInfo };
|
|
23
|
+
export { type CnaOptions, type CnaOptionsTransform, type TemplateOrExtension, checkForLatestVersion, checkNodeVersion, createNodeApp, printEnvInfo };
|