본문 바로가기

angularjs

yeoman angular로 커피스크립트추가

Using yeomen 1.0.0-rc1.4. I use:

$ yo angular --coffee

The resulting project has controller and app scripts in CoffeeScript.

grunt configuration file remains in js (what is not really a problem).

Running

$ grunt test

runs tests and all seems fine.

$ grunt server

is also doing what one expects (build the app, test it, starts server, opens the app in web browser and starts watching for changes, so if I change a coffee script file, it is quickly reflected in the web broser.

Documentation also states, one can use yo to add particular pieces like

  • angular:controller
  • angular:directive
  • angular:filter
  • angular:route
  • angular:service
  • angular:decorator
  • angular:view

each can be called with a --coffee switch and get the script in CoffeeScript, e.g.:

yo angular:controller user --coffee


'angularjs' 카테고리의 다른 글

ionic generator  (0) 2015.08.03
(3).시작하기  (0) 2015.07.15
(2).개발툴  (0) 2015.07.10
(1).준비물  (0) 2015.07.09
angularjs 도구들  (0) 2014.11.03