Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit 0486b01

Browse files
Merge pull request #40 from elsoul/add/frontend
add/frontend
2 parents 42c2905 + 70feb9f commit 0486b01

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@skeet-framework/cli",
3-
"version": "1.1.2",
3+
"version": "1.2.0",
44
"description": "Skeet CLI",
55
"main": "dist/index.js",
66
"repository": "https://github.com/elsoul/skeet-cli",

src/cli/deploy/deploy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { deployGraphql } from './deployGraphql'
88

99
export const deploy = async () => {
1010
const functions = await getFunctions()
11-
const functionsArray: Array<{ [key: string]: string }> = [{ name: 'webApp' }]
11+
const functionsArray: Array<{ [key: string]: string }> = [{ name: 'webapp' }]
1212
const { app } = await importConfig()
1313
if (app.template.includes('GraphQL')) {
1414
functionsArray.push({ name: 'graphql' })
@@ -36,7 +36,7 @@ export const deploy = async () => {
3636
if (answers.functions) {
3737
answers.functions.forEach(async (service) => {
3838
const config = await importConfig()
39-
if (service === 'webApp') {
39+
if (service === 'webapp') {
4040
await deployWebApp()
4141
await deployRules(config.app.projectId)
4242
} else if (service === 'graphql') {

src/cli/yarn/yarn.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import inquirer from 'inquirer'
2-
import { execSyncCmd, getFunctions, FUNCTIONS_PATH } from '@/lib'
2+
import { execSyncCmd, getFunctions, FUNCTIONS_PATH, WEB_APP_PATH } from '@/lib'
33
import { GRAPHQL_ROOT } from '@/index'
44

55
export type YarnService = {
@@ -12,7 +12,11 @@ export const yarn = async (
1212
isDev: boolean = false
1313
) => {
1414
const functions = await getFunctions()
15-
const functionsArray: Array<{ [key: string]: string }> = [{ name: 'graphql' }]
15+
const functionsArray: Array<{ [key: string]: string }> = [
16+
{ name: 'graphql' },
17+
{ name: 'webapp' },
18+
{ name: 'root' },
19+
]
1620
for await (const functionName of functions) {
1721
functionsArray.push({ name: functionName })
1822
}
@@ -76,6 +80,12 @@ const getYarnShCmd = async (
7680
case 'graphql':
7781
shCmd = ['yarn', '--cwd', `${GRAPHQL_ROOT}`, cmd]
7882
break
83+
case 'webapp':
84+
shCmd = ['yarn', '--cwd', `${WEB_APP_PATH}`, cmd]
85+
break
86+
case 'root':
87+
shCmd = ['yarn', cmd]
88+
break
7989
default:
8090
shCmd = ['yarn', '--cwd', `${FUNCTIONS_PATH}/${functionName}`, cmd]
8191
break

0 commit comments

Comments
 (0)