You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
signale.success(`Saved build information to \`${exportPath}\``);
95
108
}catch{
96
109
signale.error(`An error occured writing to \`${exportPath}\`, does the path exist?`);
97
110
}
98
111
}
99
112
100
-
asyncfunctioninit(){
113
+
asyncfunctioninit(): Promise<void>{
101
114
// Path we write the file to, should match your Angular projects `src/` folder
102
115
constexportPath=process.cwd()+"/src/build.ts";
103
116
104
117
signale.info("Welcome to `angular-build-info`!");
105
118
signale.info(
106
-
`We will now create a boilerplate \`build.ts\` file in \`${exportPath}\` and fill it with basic information so you can start implementing it in your front-end.`
119
+
`We will now create a boilerplate \`build.ts\` file in \`${exportPath}\` and fill it with basic information so you can start implementing it in your front-end.`,
107
120
);
108
121
signale.info(
109
-
`If you wish for more info on how to implement the provided info in your Angular app, feel free to check out the main repo over at https://github.com/4dams/angular-build-info`
122
+
`If you wish for more info on how to implement the provided info in your Angular app, feel free to check out the main repo over at https://github.com/4dams/angular-build-info`,
signale.success("Successfully created `build.ts` file!");
132
145
signale.info(
133
-
"You should now modify your build/deploy scripts in your `package.json` file to run this script every time before your Angular app is built. An example would be:"
146
+
"You should now modify your build/deploy scripts in your `package.json` file to run this script every time before your Angular app is built. An example would be:",
134
147
);
135
148
signale.info(`[...] "build": "build-info && ng build --prod", [...]`);
136
149
signale.info("Again, you can find more info on implementing this tool on the main repo.");
@@ -153,7 +166,7 @@ async function displayManual() {
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
44
+
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
45
+
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
46
+
// "typeRoots": [], /* List of folders to include type definitions from. */
47
+
// "types": [], /* Type declaration files to be included in compilation. */
48
+
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
49
+
"esModuleInterop": true/* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
50
+
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
55
+
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
56
+
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
57
+
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
58
+
59
+
/* Experimental Options */
60
+
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
61
+
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
62
+
63
+
/* Advanced Options */
64
+
"forceConsistentCasingInFileNames": true/* Disallow inconsistently-cased references to the same file. */,
0 commit comments