I have an existing project for which I want to enable Angular CLI in WebStorm. I have successfully used the CLI functionality in WebStorm in 'pure' Angular CLI projects.
I've made sure that the NodeJS and AngularJS plugins are enabled in WebStorm.
If I run ng version in the project I get:
@angular/cli: 1.0.0-rc.1
node: 6.10.0
os: darwin x64
@angular/common: 2.4.6
@angular/compiler: 2.4.6
@angular/core: 2.4.6
@angular/forms: 2.4.6
@angular/http: 2.4.6
@angular/platform-browser: 2.4.6
@angular/platform-browser-dynamic: 2.4.6
@angular/router: 3.4.6
@angular/cli: 1.0.0-rc.1
@angular/compiler-cli: 2.4.6
@angular/platform-server: 2.4.6
@angular/tsc-wrapped: 0.3.0
And the contents of my 'manually created' .angular-cli.json is:
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project": {
"name": "blaha-client"
},
"apps": [
{
"root": "src/client"
}
],
"defaults": {
"styleExt": "scss"
}
}
The CLI works from the terminal prompt but the wizard functionality in WebStorm cannot be found under 'right-click->new'. From the actions menu I can search the Angular CLI but when I click in nothing happens.
Anybody knows what I am missing?
EDIT: I do not wish to convert the project to a cli project entirely, only to be able to use the wizard-like functionality in WebStorm.
EDIT: Note that as of 2019, 'angular-cli.json' has been renamed 'angular.json'
angular-cli.jsonin the project root. I've just tested this in PhpStorm 2016.3.2 with that file completely empty and Angular CLI options are there. What the IDE version BTW?angular-cli-1.0.0-beta24creates aangular-cli.jsonbut the ones I create withangular-cli-1.0.0-rc1creates a.angular-cli.jsonprobably throwing WebStorm of..angular-cli.jsonalready (not checked myself though).(right-click) -> new ->Angular cli...it's now(right-click) -> new ->Angular Schematic...