Skip to content

Commit af50c1a

Browse files
committed
Merge tempates v0.2
2 parents 5bd7681 + 81c344c commit af50c1a

File tree

5 files changed

+15
-11
lines changed

5 files changed

+15
-11
lines changed

.github/workflows/push-code.yml renamed to .github/workflows/build-code.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
33

4-
name: DevOps CI/CD
4+
name: Package Build
55

66
on:
77
pull_request:
@@ -10,7 +10,7 @@ on:
1010
branches: [ master ]
1111

1212
jobs:
13-
test-starwars:
13+
gen-template:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
@@ -36,7 +36,7 @@ jobs:
3636
role-duration-seconds: 1200
3737
- run: cat .projectInfo.json
3838
- run: cd $PWD/ci-test && npm install
39-
- run: cd $PWD/ci-test && npm run stack-deploy
40-
- run: cd $PWD/ci-test && npm run push-code
41-
- run: cd $PWD/ci-test && npm run push-config
42-
- run: cd $PWD/ci-test && npm run stack-destroy
39+
#- run: cd $PWD/ci-test && npm run stack-deploy
40+
#- run: cd $PWD/ci-test && npm run push-code
41+
#- run: cd $PWD/ci-test && npm run push-config
42+
#- run: cd $PWD/ci-test && npm run stack-destroy

entrypoint.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,9 @@ function runCommandLine() {
336336
if (typeof argv.merge !== 'undefined') {
337337
config.writes.merge = true;
338338
}
339+
if (typeof argv.mode !== 'undefined') {
340+
config.writes.singleton = argv.mode === 'singleton' ? true : false;
341+
}
339342
if (typeof argv.ignores !== 'undefined') {
340343
config.writes.ignores = argv.ignores;
341344
}
@@ -349,6 +352,7 @@ function runCommandLine() {
349352
argv.simple = true;
350353
}
351354
projectInfo.WriteConfig = { ...config.writes, env: projectInfo.ENV_Name }
355+
projectInfo.IsSingleton = config.writes.singleton ? true: undefined
352356
const typeDefs = gql(schema);
353357
mainProcessor(typeDefs, schema, projectInfo)
354358
return { err: undefined, projectInfo }

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "simplify-graphql",
3-
"version": "0.2.1",
3+
"version": "0.1.44",
44
"description": "Simplify graphql-serverless architecture model (GSAM)",
55
"main": "entrypoint.js",
66
"bin": {

transformer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ function hoganFlatter(rootObject, mergeFunctions) {
457457
pathsArray = pathsArray.map(path => {
458458
path.Resolvers.map(resolver => {
459459
resolver.Resolver.Chains && resolver.Resolver.Chains.map(chain => {
460-
if (chain.Run.Mode == "REMOTE" || mergeFunctions) {
460+
if (chain.Run.Mode == "REMOTE") {
461461
chain.RemoteExecutionMode = true
462462
chain.Run = getResolverRuntime(chain.Run)
463463
let remoteFuncDefinition = rootObject.Functions.find(func => func.FunctionName == chain.Run.Name)

0 commit comments

Comments
 (0)