Skip to content
This repository has been archived by the owner on Jul 2, 2020. It is now read-only.

Commit

Permalink
feat: introduce experimentalFeatures root option (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
legendecas committed Apr 10, 2020
1 parent 89130f1 commit e20417f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
10 changes: 9 additions & 1 deletion packages/faas-cli-command-core/src/interface/commandHookCore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,29 @@ export interface ICoreInstance {
store: IStore<any>;
debug: any;
service: {
experimentalFeatures?: {
[featureName: string]: any;
},
service?: {
name: string;
};
provider: {
name: string;
};
functions: object;
layers?: object;
layers?: {
[layerName: string]: {
path: string;
};
};
resources: object;
custom: any;
package?: any;
aggregation?: {
[aggregationName: string]: {
deployOrigin?: boolean;
functions: string[];
functionsPattern?: string;
};
};
globalDependencies?: any;
Expand Down
2 changes: 1 addition & 1 deletion packages/faas-cli-plugin-invoke/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"@midwayjs/faas-util-ts-compile": "^0.2.70",
"@midwayjs/fcli-command-core": "^0.2.70",
"@midwayjs/locate": "^1.0.3",
"@midwayjs/mwcc": "^0.1.11",
"@midwayjs/mwcc": "^0.2.2",
"@midwayjs/runtime-engine": "^0.2.65",
"@midwayjs/runtime-mock": "^0.2.65",
"@midwayjs/serverless-fc-starter": "^0.2.65",
Expand Down
2 changes: 1 addition & 1 deletion packages/faas-cli-plugin-package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"@midwayjs/faas-util-ts-compile": "^0.2.70",
"@midwayjs/fcli-command-core": "^0.2.70",
"@midwayjs/locate": "^1.0.3",
"@midwayjs/mwcc": "^0.1.11",
"@midwayjs/mwcc": "^0.2.2",
"archiver": "^3.1.1",
"fs-extra": "^8.1.0",
"globby": "^10.0.1",
Expand Down
5 changes: 2 additions & 3 deletions packages/faas-cli-plugin-package/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@ import {
copyFiles,
CodeAny
} from '@midwayjs/faas-util-ts-compile';
import { compileInProject } from '@midwayjs/mwcc';
import { compileInProject, MwccConfig } from '@midwayjs/mwcc';
import { exec } from 'child_process';
import * as archiver from 'archiver';
import { AnalyzeResult, Locator } from '@midwayjs/locate';
import { tmpdir } from 'os';

export class PackagePlugin extends BasePlugin {
core: any;
options: any;
servicePath = this.core.config.servicePath;
// 代表构建产物的路径,非 ts 构建路径
Expand All @@ -42,7 +41,7 @@ export class PackagePlugin extends BasePlugin {
codeAnalyzeResult: AnalyzeResult;
integrationDistTempDirectory = 'integration_dist'; // 一体化构建的临时目录
zipCodeDefaultName = 'serverless.zip';
mwccHintConfig = {};
mwccHintConfig: MwccConfig = {};

commands = {
package: {
Expand Down
2 changes: 1 addition & 1 deletion packages/faas-util-ts-compile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"main": "dist/index",
"typings": "dist/index.d.ts",
"dependencies": {
"@midwayjs/mwcc": "^0.1.11",
"@midwayjs/mwcc": "^0.2.2",
"fs-extra": "^8.1.0",
"globby": "^10.0.1",
"midway-bin": "^2.0.0",
Expand Down

0 comments on commit e20417f

Please sign in to comment.