How to work with angular 2 profile for grails

angular, grails

Solution

Nowadays this layout is called "multi-project". Separate 4 the client and server applications. To make things easier, the tasks test, `integrationTest`, and `bootRun` have been created in the client application to make executing those tasks easier across the whole application.

Since `Gradle` executes tasks synchronously, and the `bootRun` task will never finish, it is important to execute it in parallel. At the root of the project:

./gradlew bootRun --parallel

Opening things also separately by 2 instances of your IDE or preferred text processor.

see the docs

Problem

it's great news that Grails 3.2.1 now comes with an Angular2 profile, but I don't know how to use it. The profile description tells me that there should be the standard command like `create-domain-class`, but when I create an app through `grails create-app test-ng --profile angular2` I get a working angular2 project, but it even seems that this project is not recognized as grails app. When I enter the grails cli, I only get the commands like `create-app` which are available outside of projects. What am I doing wrong?

Original source