* Adds the core extensions. These provide the basic features * available in gluegun, but follow a similar method * for extending the core as 3rd party extensions do.
(exclude: string[] = [])
| 50 | * for extending the core as 3rd party extensions do. |
| 51 | */ |
| 52 | public addCoreExtensions(exclude: string[] = []): void { |
| 53 | const coreExtensions = [ |
| 54 | 'meta', |
| 55 | 'strings', |
| 56 | 'print', |
| 57 | 'filesystem', |
| 58 | 'semver', |
| 59 | 'system', |
| 60 | 'prompt', |
| 61 | 'http', |
| 62 | 'template', |
| 63 | 'patching', |
| 64 | 'package-manager', |
| 65 | ] |
| 66 | |
| 67 | coreExtensions.forEach((ex) => { |
| 68 | if (!exclude.includes(ex)) { |
| 69 | this.addExtension(ex, require(`../core-extensions/${ex}-extension`)) |
| 70 | } |
| 71 | }) |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * Adds a command to the runtime. |