lite-serve compatible with angular v7
This builder allows you to run a lite-server with an existing dist folder.
Useful in case of a CI/CD to avoid to build the project as part of the ng e2e command.
"app-e2e": {
"root": "apps/app",
"sourceRoot": "apps/app/src",
"projectType": "application",
"architect": {
"lite-serve": {
"builder": "@angular-custom-builders/lite-serve:dist-serve",
"options": {
"port": 4200,
"outputPath": "dist/apps/app"
}
}
}
},
"app-e2e": {
"root": "apps/app-e2e",
"sourceRoot": "apps/app-e2e/src",
"projectType": "application",
"architect": {
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "apps/modeling-ee-e2e/protractor.conf.js",
"devServerTarget": "app:lite-serve"
}
}
}
}