@create-node-app/core 0.0.0

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.
@@ -0,0 +1,39 @@
1
+ type Addon = {
2
+ url: string;
3
+ ignorePackage?: boolean;
4
+ };
5
+
6
+ declare const printEnvInfo: () => Promise<never>;
7
+ type CnaOptions = {
8
+ projectName: string;
9
+ info?: boolean;
10
+ alias?: string;
11
+ srcDir?: string;
12
+ interactive?: boolean;
13
+ verbose?: boolean;
14
+ useNpm?: boolean;
15
+ nodeps?: boolean;
16
+ template?: string;
17
+ addons?: Addon[];
18
+ };
19
+ type CnaOptionsTransform = (options: CnaOptions) => Promise<CnaOptions>;
20
+ /**
21
+ * Main procress to bootstrap the Node app using user options
22
+ * @param programName - Name of the program to bootstrap the Node application
23
+ * @param options - CnaOptions to bootstrap the Node application
24
+ * @param options.info - Print environment debug info
25
+ * @param options.alias - Metadata to specify alias, usefull for backends using webpack
26
+ * @param options.srcDir - Metadata to specify where to put the source code
27
+ * @param options.interactive - Specify if it is needed to use interactive mode or not
28
+ * @param options.verbose - Specify if it is needed to use verbose mode or not
29
+ * @param options.projectName - Project's name
30
+ * @param options.useNpm - Use npm mandatorily
31
+ * @param options.nodeps - Generate package.json file without installing dependencies
32
+ * @param options.template - Template to bootstrap the aplication
33
+ * @param options.extend - Extensions to apply for the boilerplate generation
34
+ * @param options.addons - Official extensions to apply
35
+ * @param transformOptions - Function to transform the options
36
+ */
37
+ declare const createNodeApp: (programName: string, options: CnaOptions, transformOptions: CnaOptionsTransform) => Promise<void>;
38
+
39
+ export { CnaOptions, CnaOptionsTransform, createNodeApp, printEnvInfo };