-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage-scripts.js
More file actions
37 lines (36 loc) · 1.17 KB
/
package-scripts.js
File metadata and controls
37 lines (36 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
const npsUtils = require("nps-utils");
module.exports = {
scripts: {
dev: npsUtils.concurrent.nps("next", "shopify", "contentful"),
build: npsUtils.series.nps(
"shopify.build",
"contentful.build",
"next.build"
),
next: {
default: "next dev",
build: "next build",
},
shopify: {
build: npsUtils.series.nps("shopify.download", "shopify.codegen"),
default: npsUtils.series.nps(
"shopify.download",
"shopify.codegen --watch"
),
download:
"apollo client:download-schema -c services/shopify/config/apollo.config.js services/shopify/config/schema.gql",
codegen: "graphql-codegen -c services/shopify/config/codegen.config.js",
},
contentful: {
build: npsUtils.series.nps("contentful.download", "contentful.codegen"),
default: npsUtils.series.nps(
"contentful.download",
"contentful.codegen --watch"
),
download:
"apollo client:download-schema -c services/contentful/config/apollo.config.js services/contentful/config/schema.gql",
codegen:
"graphql-codegen -c services/contentful/config/codegen.config.js",
},
},
};