nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.27k stars 2.32k forks source link

provide option to create nx workspace with karma and protractor #1306

Closed lokeshdaiya closed 5 years ago

lokeshdaiya commented 5 years ago

Expected Behavior

Provide option to generate workspace with karma and protractor .

Current Behavior

When I run command npx create-nx-workspace myworkspace it asks for framework, after selecting angular it generates angular project with jest and cypress, but I want karma and protractor

vsavkin commented 5 years ago

Presets, which you select when running create-nx-workspace, are just shortcuts--to help you set up your workspace with a single command.

If you want to use karma and protractor, run:

You can also set defaults values in angular.json, such that ng g app will always default to karma and protractor.

admir86 commented 5 years ago

@vsavkin not working with 8.0.0-rc.1

Cannot parse arguments. See below for the reasons.
    Argument --unit-test-runner could not be parsed using value "karma". Valid values are: "jest", "none".
lokeshdaiya commented 5 years ago

@vsavkin Can you add this in help section or some where in your documentation ?

SaliZumberi commented 4 years ago

ng g app XXX-app --unit-test-runner=karma --e2e-test-runner=protractor

where xxx is your project-name

oletrn commented 1 year ago

Finally, I've managed to generate a project with Karma runner this way:

  1. npx create-nx-workspace --preset=empty --name=my-app
  2. cd my-app
  3. npm install @nrwl/angular
  4. nx generate @nrwl/angular:app foobar --style=scss --unitTestRunner=karma
github-actions[bot] commented 1 year ago

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.