Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/graphql/schemas/cloud.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ type CloudProject implements Node {
"""
latestRun: CloudRun

"""
Given name of the project
"""
name: String!

"""
The organization the project is a member of
"""
Expand Down
3 changes: 3 additions & 0 deletions packages/graphql/schemas/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ type CloudProject implements Node {
"""The latest run for a given spec"""
latestRun: CloudRun

"""Given name of the project"""
name: String!

"""The organization the project is a member of"""
organization: CloudOrganization

Expand Down
3 changes: 2 additions & 1 deletion scripts/gulp/tasks/gulpGraphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ export async function graphqlCodegen () {
}

export async function graphqlCodegenWatch () {
const spawned = spawn('graphql-codegen', ['--watch', '--config', 'graphql-codegen.yml'], {
const spawned = spawn('bash.exe', ['graphql-codegen','--watch', '--config', 'graphql-codegen.yml'], {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this working on macos?

cwd: monorepoPaths.root,
shell:true
})
const dfd = pDefer()
let hasResolved = false
Expand Down
6 changes: 5 additions & 1 deletion scripts/gulp/tasks/gulpRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ let hasExited = false

export function addChildProcess (child: ChildProcess) {
if (hasExited) {
treeKill(child.pid)
treeKill(child.pid,
err => {
console.log(err)
}
)

return
}
Expand Down
6 changes: 4 additions & 2 deletions scripts/gulp/tasks/gulpWebpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,16 @@ type RunWebpackCfg = {

export async function runWebpack (cfg: RunWebpackCfg) {
const { cwd, args = [], env = process.env, devServer = false, prefix } = cfg
console.log(cwd);
const dfd = pDefer()
const spawned = spawn(
devServer
`bash.exe ${devServer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is unnecessary, one can simply add the .cmd at the end to get the windows version

? './node_modules/.bin/webpack-dev-server'
: './node_modules/.bin/webpack',
: './node_modules/.bin/webpack'}`,
args,
{
cwd,
shell:true,
env: {
...(env || process.env),
FORCE_COLOR: '1',
Expand Down