Skip to content

Commit

Permalink
chore(prettier): reformat codes
Browse files Browse the repository at this point in the history
  • Loading branch information
pirosikick committed May 28, 2020
1 parent f91d57b commit b1efa12
Show file tree
Hide file tree
Showing 37 changed files with 294 additions and 291 deletions.
2 changes: 1 addition & 1 deletion examples/build-and-serve/duck.config.js
Expand Up @@ -3,7 +3,7 @@ module.exports = {
inputsRoot: "js",
depsJs: "build/deps.js",
depsJsIgnoreDirs: ["node_modules", "build"],
entryConfigDir: "entry-config/entries"
entryConfigDir: "entry-config/entries",
// http2: true,
// https: {
// keyPath: "./duck-key.pem",
Expand Down
2 changes: 1 addition & 1 deletion examples/build-and-serve/js/chunk1.js
Expand Up @@ -6,7 +6,7 @@ goog.require("goog.ui.Component");
/**
* @return {string}
*/
app.chunk1.getMessage = function() {
app.chunk1.getMessage = function () {
return "from chunk1";
};

Expand Down
8 changes: 4 additions & 4 deletions examples/build-and-serve/js/chunks.js
Expand Up @@ -10,13 +10,13 @@ goog.scope(() => {
// moduleLoader.setDebugMode(!!goog.global['PLOVR_MODULE_USE_DEBUG_MODE']);
moduleLoader.setDebugMode(true);
moduleManager.setLoader(moduleLoader);
moduleManager.setAllModuleInfo(goog.global["PLOVR_MODULE_INFO"]);
moduleManager.setAllModuleInfo(goog.global.PLOVR_MODULE_INFO);
const trustedModuleUris = {};
for (const id in goog.global["PLOVR_MODULE_URIS"]) {
for (const id in goog.global.PLOVR_MODULE_URIS) {
trustedModuleUris[id] = [
goog.html.legacyconversions.trustedResourceUrlFromString(
goog.global["PLOVR_MODULE_URIS"][id]
)
goog.global.PLOVR_MODULE_URIS[id]
),
];
}
moduleManager.setModuleTrustedUris(trustedModuleUris);
Expand Down
2 changes: 1 addition & 1 deletion examples/build-deps/duck.config.js
Expand Up @@ -2,5 +2,5 @@ module.exports = {
closureLibraryDir: "node_modules/google-closure-library",
inputsRoot: ".",
depsJs: "build/duck.deps.js",
depsJsIgnoreDirs: ["node_modules", "build"]
depsJsIgnoreDirs: ["node_modules", "build"],
};
2 changes: 1 addition & 1 deletion examples/build-deps/script1.js
Expand Up @@ -2,7 +2,7 @@ goog.provide("app.script1");

goog.require("app.module1");

goog.scope(function() {
goog.scope(function () {
const module1 = goog.module.get("app.module1");
app.script1 = `from app.script1 ${module1}`;
});
12 changes: 6 additions & 6 deletions src/batch.ts
Expand Up @@ -5,7 +5,7 @@ import {
faastLocal,
FaastModuleProxy,
LocalOptions,
log
log,
} from "faastjs";
import mergeOptions from "merge-options";
import semver from "semver";
Expand Down Expand Up @@ -57,8 +57,8 @@ function defaultBatchOptions(config: DuckConfig): AwsOptions {
dependencies: {
[`google-closure-compiler-${getOsForNativeImage(
config
)}`]: `^${major}.0.0`
}
)}`]: `^${major}.0.0`,
},
},
webpackOptions: {
externals: [
Expand All @@ -70,9 +70,9 @@ function defaultBatchOptions(config: DuckConfig): AwsOptions {
"chalk",
// used in google-closure-compiler/lib/gulp
/^gulp($|-)/,
/^vinyl($|-)/
]
}
/^vinyl($|-)/,
],
},
};
}

Expand Down

0 comments on commit b1efa12

Please sign in to comment.