@gapi/cli 1.8.121 → 1.8.125

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.
Files changed (28) hide show
  1. package/bash/gql2ts/index.js +83 -56
  2. package/dist/core/helpers/mkdirp.d.ts +2 -0
  3. package/dist/core/helpers/mkdirp.js +96 -0
  4. package/dist/core/services/file.d.ts +12 -0
  5. package/dist/core/services/file.js +109 -0
  6. package/dist/daemon-server/core/services/daemon.service.d.ts +1 -1
  7. package/dist/daemon-server/core/services/daemon.service.js +2 -1
  8. package/dist/daemon-server/core/services/ipfs/external-importer-config.d.ts +32 -0
  9. package/dist/daemon-server/core/services/ipfs/external-importer-config.js +9 -0
  10. package/dist/daemon-server/core/services/ipfs/external-importer-systemjs.d.ts +185 -0
  11. package/dist/daemon-server/core/services/ipfs/external-importer-systemjs.js +2 -0
  12. package/dist/daemon-server/core/services/ipfs/external-importer.d.ts +57 -0
  13. package/dist/daemon-server/core/services/ipfs/external-importer.js +359 -0
  14. package/dist/daemon-server/core/services/ipfs/npm-service.d.ts +12 -0
  15. package/dist/daemon-server/core/services/ipfs/npm-service.js +55 -0
  16. package/dist/daemon-server/core/services/ipfs/providers.d.ts +5 -0
  17. package/dist/daemon-server/core/services/ipfs/providers.js +21 -0
  18. package/dist/daemon-server/core/services/ipfs/request-cache.d.ts +7 -0
  19. package/dist/daemon-server/core/services/ipfs/request-cache.js +31 -0
  20. package/dist/daemon-server/core/services/ipfs/request.d.ts +6 -0
  21. package/dist/daemon-server/core/services/ipfs/request.js +60 -0
  22. package/dist/daemon-server/core/services/ipfs-hash-map.service.d.ts +1 -1
  23. package/dist/daemon-server/core/services/plugin-loader.service.d.ts +3 -1
  24. package/dist/daemon-server/core/services/plugin-loader.service.js +4 -2
  25. package/dist/tasks/daemon.d.ts +1 -1
  26. package/dist/tasks/daemon.js +2 -1
  27. package/dist/tasks/schema.js +6 -6
  28. package/package.json +6 -6
@@ -1,68 +1,95 @@
1
1
  #!/usr/bin/env node
2
+ /* eslint-disable @typescript-eslint/no-var-requires */
2
3
  'use strict';
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- const program = require("commander");
5
- const fs = require("fs");
6
- const util_1 = require("./util/dist");
7
- const from_schema_1 = require("./from-schema/dist");
8
- const from_query_1 = require("./from-query/dist");
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+ const { program } = require('commander');
6
+ const fs = require('fs');
7
+ const util_1 = require('./util/dist');
8
+ const from_schema_1 = require('./from-schema/dist');
9
+ const from_query_1 = require('./from-query/dist');
9
10
  // tslint:disable-next-line no-require-imports no-var-requires
10
11
  // const { version } = require('../package.json');
11
12
  program
12
- .version('1.7.0')
13
- .usage('[options] <schema.json | schema.gql> <query.gql>')
14
- .option('-o --output-file [outputFile]', 'name for output file, will use stdout if not specified')
15
- .option('-n --namespace [namespace]', 'name for the namespace, defaults to "GQL"', 'GQL')
16
- .option('-i --ignored-types <ignoredTypes>', 'names of types to ignore (comma delimited)', v => v.split(','), [])
17
- .option('-l --legacy', 'Use TypeScript 1.x annotation', false)
18
- .option('-e --external-options [externalOptions]', 'ES Module with method overwrites')
19
- .option('--ignore-type-name-declaration', 'Whether to exclude __typename', false)
20
- .option('--exclude-deprecated-fields', 'Whether to exclude deprecated fields', false)
21
- .parse(process.argv);
13
+ .version('1.7.0')
14
+ .usage('[options] <schema.json | schema.gql> <query.gql>')
15
+ .option(
16
+ '-o, --output-file <outputFile>',
17
+ 'name for output file, will use stdout if not specified'
18
+ )
19
+ .option(
20
+ '-n, --namespace [namespace]',
21
+ 'name for the namespace, defaults to "GQL"',
22
+ 'GQL'
23
+ )
24
+ .option(
25
+ '-i, --ignored-types <ignoredTypes>',
26
+ 'names of types to ignore (comma delimited)',
27
+ (v) => v.split(','),
28
+ []
29
+ )
30
+ .option('-l, --legacy', 'Use TypeScript 1.x annotation', false)
31
+ .option(
32
+ '-e --external-options [externalOptions]',
33
+ 'ES Module with method overwrites'
34
+ )
35
+ .option(
36
+ '--ignore-type-name-declaration',
37
+ 'Whether to exclude __typename',
38
+ false
39
+ )
40
+ .option(
41
+ '--exclude-deprecated-fields',
42
+ 'Whether to exclude deprecated fields',
43
+ false
44
+ )
45
+ .parse(process.argv);
22
46
  const run = (schema, options) => {
23
- let defaultOverrides = {};
24
- if (program.externalOptions) {
25
- // tslint:disable-next-line no-require-imports no-var-requires
26
- const externalFile = require(program.externalOptions);
27
- defaultOverrides = externalFile.default || externalFile;
28
- }
29
- if (program.args[1]) {
30
- const queryFile = program.args[1];
31
- const query = fs.readFileSync(queryFile).toString();
32
- const info = from_query_1.default(schema, query, {}, defaultOverrides);
33
- const toWrite = info.map(inf => inf.result).join('\n\n');
34
- if (options.outputFile) {
35
- util_1.writeToFile(options.outputFile, toWrite);
36
- }
37
- else {
38
- console.log(toWrite);
39
- }
40
- return;
41
- }
42
- let namespace = from_schema_1.generateNamespace(options.namespace, schema, options, defaultOverrides);
47
+ let defaultOverrides = {};
48
+ if (program.externalOptions) {
49
+ // tslint:disable-next-line no-require-imports no-var-requires
50
+ const externalFile = require(program.externalOptions);
51
+ defaultOverrides = externalFile.default || externalFile;
52
+ }
53
+ if (program.args[1]) {
54
+ const queryFile = program.args[1];
55
+ const query = fs.readFileSync(queryFile).toString();
56
+ const info = from_query_1.default(schema, query, {}, defaultOverrides);
57
+ const toWrite = info.map((inf) => inf.result).join('\n\n');
43
58
  if (options.outputFile) {
44
- util_1.writeToFile(options.outputFile, namespace);
45
- }
46
- else {
47
- console.log(namespace);
59
+ util_1.writeToFile(options.outputFile, toWrite);
60
+ } else {
61
+ console.log(toWrite);
48
62
  }
63
+ return;
64
+ }
65
+ const namespace = from_schema_1.generateNamespace(
66
+ options.namespace,
67
+ schema,
68
+ options,
69
+ defaultOverrides
70
+ );
71
+
72
+ if (options.outputFile) {
73
+ util_1.writeToFile(options.outputFile, namespace);
74
+ } else {
75
+ console.log(namespace);
76
+ }
49
77
  };
50
78
  const fileName = program.args[0];
79
+
51
80
  if (fileName) {
52
- const schema = util_1.readFile(fileName);
53
- run(schema, program);
54
- }
55
- else if (!process.stdin.isTTY) {
56
- let input = '';
57
- process.stdin.resume();
58
- process.stdin.setEncoding('utf8');
59
- process.stdin.on('data', (data) => {
60
- input += data;
61
- });
62
- process.stdin.on('end', () => run(util_1.safeJSONParse(input), program));
63
- }
64
- else {
65
- console.error('No input specified. Please use stdin or a file name.');
66
- program.outputHelp();
81
+ const schema = util_1.readFile(fileName);
82
+ run(schema, program._optionValues);
83
+ } else if (!process.stdin.isTTY) {
84
+ let input = '';
85
+ process.stdin.resume();
86
+ process.stdin.setEncoding('utf8');
87
+ process.stdin.on('data', (data) => {
88
+ input += data;
89
+ });
90
+ process.stdin.on('end', () => run(util_1.safeJSONParse(input), program));
91
+ } else {
92
+ console.error('No input specified. Please use stdin or a file name.');
93
+ program.outputHelp();
67
94
  }
68
- //# sourceMappingURL=index.js.map
95
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,2 @@
1
+ export declare function mkdirp(p?: any, opts?: any, f?: any, made?: any): void;
2
+ export declare function mkdirpSync(p?: any, opts?: any, made?: any): any;
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mkdirpSync = exports.mkdirp = void 0;
4
+ const fs_1 = require("fs");
5
+ const path_1 = require("path");
6
+ const _0777 = parseInt('0777', 8);
7
+ function mkdirp(p, opts, f, made) {
8
+ if (typeof opts === 'function') {
9
+ f = opts;
10
+ opts = {};
11
+ }
12
+ else if (!opts || typeof opts !== 'object') {
13
+ opts = { mode: opts };
14
+ }
15
+ let mode = opts.mode;
16
+ if (mode === undefined) {
17
+ mode = _0777 & ~process.umask();
18
+ }
19
+ if (!made)
20
+ made = null;
21
+ const cb = f ||
22
+ function () {
23
+ //
24
+ };
25
+ p = path_1.resolve(p);
26
+ fs_1.mkdir(p, mode, function (er) {
27
+ if (!er) {
28
+ made = made || p;
29
+ return cb(null, made);
30
+ }
31
+ switch (er.code) {
32
+ case 'ENOENT':
33
+ mkdirp(path_1.dirname(p), opts, function (er, made) {
34
+ if (er)
35
+ cb(er, made);
36
+ else
37
+ mkdirp(p, opts, cb, made);
38
+ });
39
+ break;
40
+ // In the case of any other error, just see if there's a dir
41
+ // there already. If so, then hooray! If not, then something
42
+ // is borked.
43
+ default:
44
+ fs_1.stat(p, function (er2, stat) {
45
+ // if the stat fails, then that's super weird.
46
+ // let the original error be the failure reason.
47
+ if (er2 || !stat.isDirectory())
48
+ cb(er, made);
49
+ else
50
+ cb(null, made);
51
+ });
52
+ break;
53
+ }
54
+ });
55
+ }
56
+ exports.mkdirp = mkdirp;
57
+ function mkdirpSync(p, opts, made) {
58
+ if (!opts || typeof opts !== 'object') {
59
+ opts = { mode: opts };
60
+ }
61
+ let mode = opts.mode;
62
+ if (mode === undefined) {
63
+ mode = _0777 & ~process.umask();
64
+ }
65
+ if (!made)
66
+ made = null;
67
+ p = path_1.resolve(p);
68
+ try {
69
+ fs_1.mkdirSync(p, mode);
70
+ made = made || p;
71
+ }
72
+ catch (err0) {
73
+ switch (err0.code) {
74
+ case 'ENOENT':
75
+ made = mkdirpSync(path_1.dirname(p), opts, made);
76
+ mkdirpSync(p, opts, made);
77
+ break;
78
+ // In the case of any other error, just see if there's a dir
79
+ // there already. If so, then hooray! If not, then something
80
+ // is borked.
81
+ default:
82
+ let stat;
83
+ try {
84
+ stat = fs_1.statSync(p);
85
+ }
86
+ catch (err1) {
87
+ throw err0;
88
+ }
89
+ if (!stat.isDirectory())
90
+ throw err0;
91
+ break;
92
+ }
93
+ }
94
+ return made;
95
+ }
96
+ exports.mkdirpSync = mkdirpSync;
@@ -0,0 +1,12 @@
1
+ import { Observable } from 'rxjs';
2
+ export declare class FileService {
3
+ writeFile(folder: string, fileName: any, moduleName: any, file: any): Observable<unknown>;
4
+ writeFileAsync(folder: string, fileName: any, moduleName: any, file: any): Observable<string>;
5
+ writeFileSync(folder: any, file: any): any;
6
+ readFile(file: string): any;
7
+ isPresent(path: string): boolean;
8
+ writeFileAsyncP(folder: any, fileName: any, content: any): Observable<unknown>;
9
+ mkdirp(folder: any): Observable<boolean>;
10
+ fileWalker(dir: string, exclude?: string): Observable<string[]>;
11
+ private filewalker;
12
+ }
@@ -0,0 +1,109 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.FileService = void 0;
10
+ const core_1 = require("@rxdi/core");
11
+ const fs_1 = require("fs");
12
+ const path_1 = require("path");
13
+ const rxjs_1 = require("rxjs");
14
+ const operators_1 = require("rxjs/operators");
15
+ const mkdirp_1 = require("../helpers/mkdirp");
16
+ let FileService = class FileService {
17
+ writeFile(folder, fileName, moduleName, file) {
18
+ return this.mkdirp(folder).pipe(operators_1.tap(() => {
19
+ console.log(`Bootstrap: @Service('${moduleName}'): Saved inside ${folder}`);
20
+ }), operators_1.switchMap(() => this.writeFileAsyncP(folder, fileName, file)));
21
+ }
22
+ writeFileAsync(folder, fileName, moduleName, file) {
23
+ return this.mkdirp(folder).pipe(operators_1.switchMap(() => this.writeFileAsyncP(folder, fileName, file)), operators_1.map(() => {
24
+ console.log(`Bootstrap: external @Module('${moduleName}') namespace: Saved inside ${folder}`);
25
+ return `${folder}/${fileName}`;
26
+ }));
27
+ }
28
+ writeFileSync(folder, file) {
29
+ return fs_1.writeFileSync.bind(null)(folder, JSON.stringify(file, null, 2) + '\n', { encoding: 'utf-8' });
30
+ }
31
+ readFile(file) {
32
+ return JSON.parse(fs_1.readFileSync.bind(null)(file, { encoding: 'utf-8' }));
33
+ }
34
+ isPresent(path) {
35
+ return fs_1.existsSync(path);
36
+ }
37
+ writeFileAsyncP(folder, fileName, content) {
38
+ return new rxjs_1.Observable((o) => fs_1.writeFile(`${folder}/${fileName}`, content, () => o.next(true)));
39
+ }
40
+ mkdirp(folder) {
41
+ return new rxjs_1.Observable((observer) => {
42
+ mkdirp_1.mkdirp(folder, (err) => {
43
+ if (err) {
44
+ console.error(err);
45
+ observer.error(false);
46
+ }
47
+ else {
48
+ observer.next(true);
49
+ }
50
+ observer.complete();
51
+ });
52
+ });
53
+ }
54
+ fileWalker(dir, exclude = 'node_modules') {
55
+ return new rxjs_1.Observable((observer) => {
56
+ this.filewalker(dir, (err, result) => {
57
+ if (err) {
58
+ observer.error(err);
59
+ }
60
+ else {
61
+ observer.next(result);
62
+ }
63
+ observer.complete();
64
+ }, exclude);
65
+ });
66
+ }
67
+ filewalker(dir, done, exclude = 'node_modules') {
68
+ let results = [];
69
+ const fileWalker = this.filewalker.bind(this);
70
+ fs_1.readdir(dir, (err, list) => {
71
+ if (err) {
72
+ return done(err);
73
+ }
74
+ let pending = list.length;
75
+ if (!pending) {
76
+ return done(null, results);
77
+ }
78
+ list.forEach((file) => {
79
+ file = path_1.resolve(dir, file);
80
+ fs_1.stat(file, (err, stat) => {
81
+ if (stat && stat.isDirectory()) {
82
+ results.push(file);
83
+ if (!file.includes(exclude)) {
84
+ fileWalker(file, (err, res) => {
85
+ results = results.concat(res);
86
+ if (!--pending) {
87
+ done(null, results);
88
+ }
89
+ }, exclude);
90
+ }
91
+ else if (!--pending) {
92
+ done(null, results);
93
+ }
94
+ }
95
+ else {
96
+ results.push(file);
97
+ if (!--pending) {
98
+ done(null, results);
99
+ }
100
+ }
101
+ });
102
+ });
103
+ });
104
+ }
105
+ };
106
+ FileService = __decorate([
107
+ core_1.Service()
108
+ ], FileService);
109
+ exports.FileService = FileService;
@@ -1,4 +1,4 @@
1
- import { FileService } from '@rxdi/core';
1
+ import { FileService } from '../../../core/services/file';
2
2
  import { ILinkListType } from '../../api-introspection';
3
3
  import { ChildService } from './child.service';
4
4
  import { ListService } from './list.service';
@@ -25,6 +25,7 @@ const fs_1 = require("fs");
25
25
  const rxjs_1 = require("rxjs");
26
26
  const operators_1 = require("rxjs/operators");
27
27
  const util_1 = require("util");
28
+ const file_1 = require("../../../core/services/file");
28
29
  const daemon_config_1 = require("../../daemon.config");
29
30
  const gapi_cli_config_template_1 = require("../templates/gapi-cli-config.template");
30
31
  const child_service_1 = require("./child.service");
@@ -101,6 +102,6 @@ DaemonService = __decorate([
101
102
  core_1.Service(),
102
103
  __metadata("design:paramtypes", [list_service_1.ListService,
103
104
  child_service_1.ChildService,
104
- core_1.FileService])
105
+ file_1.FileService])
105
106
  ], DaemonService);
106
107
  exports.DaemonService = DaemonService;
@@ -0,0 +1,32 @@
1
+ import { Config } from './external-importer-systemjs';
2
+ export declare class ExternalImporterConfig {
3
+ link: string;
4
+ fileName?: string;
5
+ typings?: string;
6
+ typingsFileName?: string;
7
+ namespace?: string;
8
+ extension?: string;
9
+ crypto?: {
10
+ cyperKey: string;
11
+ cyperIv: string;
12
+ algorithm: string;
13
+ };
14
+ SystemJsConfig?: Config;
15
+ outputFolder?: string | '/node_modules/';
16
+ }
17
+ export declare class ExternalImporterIpfsConfig {
18
+ provider: string;
19
+ hash: string;
20
+ }
21
+ export interface NpmPackageConfig {
22
+ name: string;
23
+ version: string;
24
+ }
25
+ export interface ExternalModuleConfiguration {
26
+ name: string;
27
+ version: string;
28
+ typings: string;
29
+ module: string;
30
+ dependencies?: Array<any>;
31
+ packages?: NpmPackageConfig[];
32
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExternalImporterIpfsConfig = exports.ExternalImporterConfig = void 0;
4
+ class ExternalImporterConfig {
5
+ }
6
+ exports.ExternalImporterConfig = ExternalImporterConfig;
7
+ class ExternalImporterIpfsConfig {
8
+ }
9
+ exports.ExternalImporterIpfsConfig = ExternalImporterIpfsConfig;
@@ -0,0 +1,185 @@
1
+ export declare type ModuleFormat = 'esm' | 'cjs' | 'amd' | 'global' | 'register';
2
+ export interface MetaConfig {
3
+ /**
4
+ * Sets in what format the module is loaded.
5
+ */
6
+ format?: ModuleFormat;
7
+ /**
8
+ * For the global format, when automatic detection of exports is not enough, a custom exports meta value can be set.
9
+ * This tells the loader what global name to use as the module's export value.
10
+ */
11
+ exports?: string;
12
+ /**
13
+ * Dependencies to load before this module. Goes through regular paths and map normalization.
14
+ * Only supported for the cjs, amd and global formats.
15
+ */
16
+ deps?: string[];
17
+ /**
18
+ * A map of global names to module names that should be defined only for the execution of this module.
19
+ * Enables use of legacy code that expects certain globals to be present.
20
+ * Referenced modules automatically becomes dependencies. Only supported for the cjs and global formats.
21
+ */
22
+ globals?: string;
23
+ /**
24
+ * Set a loader for this meta path.
25
+ */
26
+ loader?: string;
27
+ /**
28
+ * For plugin transpilers to set the source map of their transpilation.
29
+ */
30
+ sourceMap?: any;
31
+ /**
32
+ * Load the module using <script> tag injection.
33
+ */
34
+ scriptLoad?: boolean;
35
+ /**
36
+ * The nonce attribute to use when loading the script as a way to enable CSP.
37
+ * This should correspond to the 'nonce-' attribute set in the Content-Security-Policy header.
38
+ */
39
+ nonce?: string;
40
+ /**
41
+ * The subresource integrity attribute corresponding to the script integrity,
42
+ * describing the expected hash of the final code to be executed.
43
+ * For example, System.config({ meta: { 'src/example.js': { integrity: 'sha256-e3b0c44...' }});
44
+ * would throw an error if the translated source of src/example.js doesn't match the expected hash.
45
+ */
46
+ integrity?: string;
47
+ /**
48
+ * When scripts are loaded from a different domain (e.g. CDN) the global error handler (window.onerror)
49
+ * has very limited information about errors to prevent unintended leaking. In order to mitigate this,
50
+ * the <script> tags need to set crossorigin attribute and the server needs to enable CORS.
51
+ * The valid values are 'anonymous' and 'use-credentials'.
52
+ */
53
+ crossOrigin?: string;
54
+ /**
55
+ * When loading a module that is not an ECMAScript Module, we set the module as the default export,
56
+ * but then also iterate the module object and copy named exports for it a well.
57
+ * Use this option to disable this iteration and copying of the exports.
58
+ */
59
+ esmExports?: boolean;
60
+ /**
61
+ * To ignore resources that shouldn't be traced as part of the build.
62
+ * Use with the SystemJS Builder. (https://github.com/systemjs/builder#ignore-resources)
63
+ */
64
+ build?: boolean;
65
+ /**
66
+ * A truthy value enables sending credentials to the server on every request. Additionally, a string value adds
67
+ * an 'Authorization' header with that value to all requests.
68
+ */
69
+ authorization?: string | boolean;
70
+ }
71
+ export interface PackageConfig {
72
+ /**
73
+ * The main entry point of the package (so import 'local/package' is equivalent to import 'local/package/index.js')
74
+ */
75
+ main?: string;
76
+ /**
77
+ * The module format of the package. See Module Formats.
78
+ */
79
+ format?: ModuleFormat;
80
+ /**
81
+ * The default extension to add to modules requested within the package. Takes preference over defaultJSExtensions.
82
+ * Can be set to defaultExtension: false to optionally opt-out of extension-adding when defaultJSExtensions is enabled.
83
+ */
84
+ defaultExtension?: boolean | string;
85
+ /**
86
+ * Local and relative map configurations scoped to the package. Apply for subpaths as well.
87
+ */
88
+ map?: ConfigMap;
89
+ /**
90
+ * Module meta provides an API for SystemJS to understand how to load modules correctly.
91
+ * Package-scoped meta configuration with wildcard support. Modules are subpaths within the package path.
92
+ * This also provides an opt-out mechanism for defaultExtension, by adding modules here that should skip extension adding.
93
+ */
94
+ meta?: ConfigMeta;
95
+ }
96
+ export declare type ConfigMeta = PackageList<MetaConfig>;
97
+ export interface ModulesList {
98
+ [bundleName: string]: string[];
99
+ }
100
+ export interface PackageList<T> {
101
+ [packageName: string]: T;
102
+ }
103
+ export declare type ConfigMap = PackageList<string | PackageList<string>>;
104
+ export declare type Transpiler = 'plugin-traceur' | 'plugin-babel' | 'plugin-typescript' | 'traceur' | 'babel' | 'typescript' | false;
105
+ export interface TraceurOptions {
106
+ properTailCalls?: boolean;
107
+ symbols?: boolean;
108
+ arrayComprehension?: boolean;
109
+ asyncFunctions?: boolean;
110
+ asyncGenerators?: any;
111
+ forOn?: boolean;
112
+ generatorComprehension?: boolean;
113
+ }
114
+ export interface Config {
115
+ /**
116
+ * For custom config names
117
+ */
118
+ [customName: string]: any;
119
+ /**
120
+ * The baseURL provides a special mechanism for loading modules relative to a standard reference URL.
121
+ */
122
+ baseURL?: string;
123
+ /**
124
+ * Set the Babel transpiler options when System.transpiler is set to babel.
125
+ */
126
+ babelOptions?: any;
127
+ /**
128
+ * undles allow a collection of modules to be downloaded together as a package whenever any module from that collection is requested.
129
+ * Useful for splitting an application into sub-modules for production. Use with the SystemJS Builder.
130
+ */
131
+ bundles?: ModulesList;
132
+ /**
133
+ * Backwards-compatibility mode for the loader to automatically add '.js' extensions when not present to module requests.
134
+ * This allows code written for SystemJS 0.16 or less to work easily in the latest version:
135
+ */
136
+ defaultJSExtensions?: boolean;
137
+ /**
138
+ * An alternative to bundling providing a solution to the latency issue of progressively loading dependencies.
139
+ * When a module specified in depCache is loaded, asynchronous loading of its pre-cached dependency list begins in parallel.
140
+ */
141
+ depCache?: ModulesList;
142
+ /**
143
+ * The map option is similar to paths, but acts very early in the normalization process.
144
+ * It allows you to map a module alias to a location or package:
145
+ */
146
+ map?: ConfigMap;
147
+ /**
148
+ * Module meta provides an API for SystemJS to understand how to load modules correctly.
149
+ * Meta is how we set the module format of a module, or know how to shim dependencies of a global script.
150
+ */
151
+ meta?: ConfigMeta;
152
+ /**
153
+ * Packages provide a convenience for setting meta and map configuration that is specific to a common path.
154
+ * In addition packages allow for setting contextual map configuration which only applies within the package itself.
155
+ * This allows for full dependency encapsulation without always needing to have all dependencies in a global namespace.
156
+ */
157
+ packages?: PackageList<PackageConfig>;
158
+ /**
159
+ * The ES6 Module Loader paths implementation, applied after normalization and supporting subpaths via wildcards.
160
+ * It is usually advisable to use map configuration over paths unless you need strict control over normalized module names.
161
+ */
162
+ paths?: PackageList<string>;
163
+ /**
164
+ * Set the Traceur compilation options.
165
+ */
166
+ traceurOptions?: TraceurOptions;
167
+ /**
168
+ * Sets the module name of the transpiler to be used for loading ES6 modules.
169
+ */
170
+ transpiler?: Transpiler;
171
+ trace?: boolean;
172
+ /**
173
+ * Sets the TypeScript transpiler options.
174
+ */
175
+ typescriptOptions?: {
176
+ /**
177
+ * A boolean flag which instructs the plugin to load configuration from 'tsconfig.json'.
178
+ * To override the location of the file set this option to the path of the configuration file,
179
+ * which will be resolved using normal SystemJS resolution.
180
+ * Note: This setting is specific to plugin-typescript.
181
+ */
182
+ tsconfig?: boolean | string;
183
+ [key: string]: any;
184
+ };
185
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });