-
Notifications
You must be signed in to change notification settings - Fork 102
Sub Generators
Eric M. Dantas edited this page May 9, 2017
·
11 revisions
$ yo ng-fullstack:component user --feature person
This will create:
client/dev/person/components/user.ts
client/dev/person/templates/user.html
client/dev/person/styles/user.css
tests/client/person/components/user_test.ts
$ yo ng-fullstack:model doctor --feature medic
This will create:
client/dev/medic/models/doctor.js
tests/client/medic/models/doctor_test.js
$ yo ng-fullstack:view dashboard --feature medic
This will create:
client/dev/medic/templates/dashboard.html
$ yo ng-fullstack:controller doctor --feature medic
This will create:
client/dev/medic/controllers/doctor.js
tests/client/medic/controllers/doctor_test.js
$ yo ng-fullstack:directive i-toggle-stuff --feature common
This will create:
client/dev/common/directives/i-toggle-stuff.js
tests/client/common/directives/i-toggle-stuff_test.js
$ yo ng-fullstack:service http-parser --feature lib
This will create:
client/dev/lib/services/http-parser.js
tests/client/lib/services/http-parser_test.js
$ yo ng-fullstack:filter myFilter --feature common
This will create:
client/dev/common/filters/myFilter.js
tests/client/common/filters/myFilter_test.js
$ yo ng-fullstack:factory student --feature school
This will create:
client/dev/school/factory/student.js
tests/client/school/factory/student_test.js
$ yo ng-fullstack:resource clazz --feature clazz
This will create:
client/dev/clazz/resource/clazz.js
$ yo ng-fullstack:decorator q-extender --feature next-q
This will create:
client/dev/next-q/decorator/q-extender.js
$ yo ng-fullstack:module user --feature family
This will create:
client/dev/family/factory/user.ts
client/dev/family/services/user.ts
client/dev/family/models/user.ts
client/dev/family/components/user.ts
client/dev/family/directives/user.ts
client/dev/family/styles/user.css
client/dev/family/templates/user.html
tests/client/family/factory/user_test.ts
tests/client/family/components/user_test.ts
tests/client/family/services/user_test.ts
tests/client/family/models/user_test.ts
tests/client/family/directives/user_test.ts
$ yo ng-fullstack:endpoint skate --feature skateboard
This will create (node):
server/api/skateboard/controller/skate-controller.js
server/api/skateboard/route/skate-route.js
server/api/skateboard/dao/skate-dao.js
server/api/skateboard/model/skate-model.js
tests/server/skateboard/dao/skate-dao_test.js
And for Go:
server/api/skateboard/controller/skatecontroller.go
server/api/skateboard/controller/skatecontroller_test.go
server/api/skateboard/route/skateroute.go
server/api/skateboard/route/skateroute_test.go
server/api/skateboard/dao/skatedao.go
server/api/skateboard/dao/skatedao_test.go
server/api/skateboard/model/skatemodel.go
server/api/skateboard/model/skatemodel_test.go
$ npm run test-client
$ npm run test-server
$ go test ./... -cover -bench . -benchmem
$ webdriver-manager start
$ protractor
$ npm run dev
$ npm start
$ npm start
$ npm run build-dist