-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathproject.json
118 lines (118 loc) · 3.98 KB
/
project.json
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"name": "js",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "sdk/js/src",
"implicitDependencies": [],
"targets": {
"npm-publish": {
"executor": "nx:run-commands",
"options": {
"command": "../../../scripts/npm-safe-publish.sh \"@devcycle/js-client-sdk\"",
"cwd": "dist/sdk/js",
"forwardAllArgs": true
},
"dependsOn": ["build:emit-legacy-types"]
},
"check-types": {
"executor": "nx:run-commands",
"options": {
"command": "yarn run -T tsc -b --incremental",
"cwd": "sdk/js"
}
},
"lint": {
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["sdk/js/**/*.ts", "sdk/js/package.json"]
}
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/sdk/js"],
"options": {
"jestConfig": "sdk/js/jest.config.ts",
"passWithNoTests": false,
"codeCoverage": true
}
},
"build": {
"executor": "@nrwl/rollup:rollup",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/sdk/js",
"tsConfig": "sdk/js/tsconfig.lib.json",
"project": "sdk/js/package.json",
"entryFile": "sdk/js/src/index.ts",
"compiler": "tsc",
"format": ["esm", "cjs"],
"external": "all",
"generateExportsField": true,
"assets": [
{
"glob": "sdk/js/*.md",
"input": ".",
"output": "."
}
]
}
},
"build:es5": {
"executor": "@nrwl/rollup:rollup",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/sdk/es5/js",
"tsConfig": "sdk/js/tsconfig.lib.es5.json",
"project": "sdk/js/package.json",
"entryFile": "sdk/js/src/index.ts",
"compiler": "tsc",
"format": ["esm", "cjs"],
"external": "all",
"generateExportsField": true,
"assets": [
{
"glob": "sdk/js/*.md",
"input": ".",
"output": "."
}
]
}
},
"build:emit-legacy-types": {
"executor": "nx:run-commands",
"options": {
"command": "npx --yes downlevel-dts . ts3.5 --to=3.5",
"cwd": "dist/sdk/js",
"forwardAllArgs": true
},
"dependsOn": ["build"]
},
"build:cdn": {
"executor": "@nx/webpack:webpack",
"outputs": ["{options.outputPath}"],
"options": {
"libraryName": "DevCycle",
"libraryTarget": "umd",
"outputPath": "dist/sdk/cdn/js",
"tsConfig": "sdk/js/tsconfig.lib.json",
"packageJson": "sdk/js/package.json",
"main": "sdk/js/src/index.ts",
"index": "",
"optimization": true,
"assets": [
{
"input": "sdk/js",
"glob": "*.md",
"output": "assets"
}
],
"extractLicenses": false,
"runtimeChunk": false,
"vendorChunk": false,
"commonChunk": false,
"namedChunks": false,
"webpackConfig": "sdk/js/webpack.config.js"
}
}
}
}