Skip to content

Commit 4100331

Browse files
Create dev configs for faster test debug and dev mode sandbox (#1317)
1 parent 60350d6 commit 4100331

File tree

5 files changed

+20
-1
lines changed

5 files changed

+20
-1
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
"postinstall": "npm run bootstrap",
1212
"bootstrap": "lerna bootstrap --no-ci --hoist",
1313
"start": "npm run build && lerna run --scope devextreme-angular-sandbox start",
14+
"start:dev": "npm run build && lerna run --scope devextreme-angular-sandbox start:dev",
1415
"lite": "lerna run --scope devextreme-angular-sandbox lite",
1516
"build": "npm run update-integration-meta && lerna run build",
1617
"test": "lerna run test",
18+
"test:dev": "lerna run test:dev",
1719
"pack": "npm run update-integration-meta && lerna run pack",
1820
"lint": "gulp lint",
1921
"update-integration-meta": "dx-tools generate-ng-smd --artifacts ../devextreme/artifacts/internal-tools --output-path ./packages/devextreme-angular/metadata/NGMetaData.json"

packages/devextreme-angular-generator/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"gulp": "npx --node-arg=--max_old_space_size=8048 gulp",
1717
"build": "npm run gulp -- build",
1818
"test": "npm run gulp -- test",
19+
"test:dev": "npm run gulp -- run.tests",
1920
"pack": "npm run gulp -- build && npm run gulp -- npm.pack"
2021
},
2122
"keywords": [

packages/devextreme-angular/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"gulp": "npx --node-arg=--max_old_space_size=8192 gulp",
1111
"build": "npm run gulp -- build",
1212
"test": "npm run gulp -- test",
13+
"test:dev": "npm run gulp -- run.tests",
1314
"pack": "npm run gulp -- npm.pack",
1415
"inject-descriptions": "dx-tools inject-descriptions-to-bundle --js-scripts ./npm/dist --artifacts ../../artifacts/internal-tools"
1516
},

packages/sandbox/angular.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@
4848
"maximumError": "5mb"
4949
}
5050
]
51+
},
52+
"dev": {
53+
"optimization": false,
54+
"outputHashing": "none",
55+
"sourceMap": true,
56+
"extractCss": true,
57+
"namedChunks": false,
58+
"aot": true,
59+
"extractLicenses": true,
60+
"vendorChunk": false,
61+
"buildOptimizer": false
5162
}
5263
}
5364
},
@@ -59,6 +70,9 @@
5970
"configurations": {
6071
"production": {
6172
"browserTarget": "sandbox:build:production"
73+
},
74+
"dev": {
75+
"browserTarget": "sandbox:build:dev"
6276
}
6377
}
6478
}

packages/sandbox/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"version": "0.0.0",
44
"scripts": {
55
"ng": "ng",
6-
"start": "ng serve --open"
6+
"start": "ng serve",
7+
"start:dev": "ng serve --open -c dev"
78
},
89
"private": true,
910
"dependencies": {

0 commit comments

Comments
 (0)