How to work with angular 2 profile for grails

This is great news that Grails 3.2.1 now has an Angular2 profile, but I don't know how to use it.

The profile description tells me that there should be a standard type command create-domain-class, but when I create the application 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 a grails application. When I enter grails cli, I get type commands create-appthat are available outside of projects.

What am I doing wrong?

+4
source share
3 answers

"multi-project". 4 . , integrationTest bootRun, .

Gradle , bootRun , . :

./gradlew bootRun --parallel

IDE .

. docs

+2

grails create-app test-ng --profile angular2 test-ng-project:

  • gradle

grails

Grails. grails. , .

+4
grails list-profiles

show a list of available profiles, I suggest you use this, because, for example, now angular2 is angular, and angular 1 is angular.

+2
source

Source: https://habr.com/ru/post/1658376/


All Articles