• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

henyojess/generator-gulp-ng: This is a yeoman generator for an angularjs project ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

henyojess/generator-gulp-ng

开源软件地址(OpenSource Url):

https://github.com/henyojess/generator-gulp-ng

开源编程语言(OpenSource Language):

JavaScript 99.6%

开源软件介绍(OpenSource Introduction):

This is a yeoman generator for an angularjs project that follows the Best Practice Recommendations for Angular App Structure.

It takes advantage of the gulp build tool and makes use of bower and npm for dependency management.


GENERATED DIRECTORY STRUCTURE

app/
  components/
    app_service.js
    app_service_test.js
  main/
    main.html
    main_controller.js
    main_controller_test.js
  app.css
  app.js
  app_controller.js
  app_controller_test.js
  index.html
bower_components/    
node_modules/
.bowerrc
.gitignore
README.md
bower.json
gulpfile.js
karma-unit.js
package.json

FEATURES

  • follows the recommended best practice project structure for angularjs
  • all js files in the app folder are concatenated into build/app.js
  • all html files in the app folder except index.html are concatenated and compiled into a js file:build/templates.js and loaded into the angular templateCache
  • all css files in the app folder are concatenated into build/app.css
  • all js files in the bower_components folder are concatenated into build/lib.js
  • all css files in the bower_components folder are concatenated into build/lib.css
  • index.html is copied to build/index.html
  • a static server is run at port 9000 with livereload support
  • when any html, js or css file in the build folder changes, they are autoreloaded on the browser
  • karma test runner will automatically run unit tests when relevant files change

Prerequisites


USAGE

  1. npm install -g generator-gulp-ng; npm install -g gulp; npm install -g karma-cli

  2. mkdir myApp && cd myApp && yo gulp-ng

  3. gulp

  4. karma start karma-unit.js

  5. open browser to http://localhost:9000

  6. start hacking


Support

For questions and issues: https://github.com/henyojess/generator-gulp-ng/issues




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap