{"id":16385873,"url":"https://github.com/aaaaash/grunt-learn","last_synced_at":"2026-02-15T22:30:54.060Z","repository":{"id":100795344,"uuid":"63051737","full_name":"Aaaaash/grunt-learn","owner":"Aaaaash","description":"前端自动化构建工具grunt、yoman、bower的相关命令学习","archived":false,"fork":false,"pushed_at":"2016-07-11T09:36:11.000Z","size":604,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T00:08:40.555Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aaaaash.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-11T08:45:42.000Z","updated_at":"2016-10-04T10:08:02.000Z","dependencies_parsed_at":"2023-04-10T01:19:00.776Z","dependency_job_id":null,"html_url":"https://github.com/Aaaaash/grunt-learn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Aaaaash/grunt-learn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aaaaash%2Fgrunt-learn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aaaaash%2Fgrunt-learn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aaaaash%2Fgrunt-learn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aaaaash%2Fgrunt-learn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aaaaash","download_url":"https://codeload.github.com/Aaaaash/grunt-learn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aaaaash%2Fgrunt-learn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29490830,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T19:29:10.908Z","status":"ssl_error","status_checked_at":"2026-02-15T19:29:10.419Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T04:15:35.421Z","updated_at":"2026-02-15T22:30:54.044Z","avatar_url":"https://github.com/Aaaaash.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"#前端集成解决方案\n\n\u003e一套包含`框架`和`工具`，便于开发者快速构建web应用程序的工作流\u003cbr/\u003e\n\n##解决哪些前端问题？\n* 前端开发团队代码风格不统一，如何强制开发规范\u003cbr/\u003e\n* 前期开发的组件库如何维护和使用\u003cbr/\u003e\n* 如何模块化前端项目\u003cbr/\u003e\n* 服务器部署前必须的压缩，检查流程如何简化，如何完善\u003cbr/\u003e\n\n##主流的方式\n* Yeoman\u003cbr/\u003e\n* Bower\u003cbr/\u003e\n* Grunt/Gulp\u003cbr/\u003e\n\n##Grunt\n###NodeJs\n\u003ca href=\"https://github.com/SakuB/Nodejs\"\u003eNodejs相关学习笔记\u003c/a\u003e\n\n##Yoman\n###安装yoman\n\u003enpm install yo\n\n### 安装generator\n\u003enpm install -g generator-angular\n\n详见yoman-demo目录下angular-demo\u003cbr/\u003e\n\n##Bower\n###bower下安装jquery\n\u003ebower install jquery\u003cbr/\u003e\n\n\u003e\u003ecached https://github.com/jquery/jquery-dist.git#2.2.4\u003cbr/\u003e\nvalidate 2.2.4 against https://github.com/jquery/jquery-dist.git#\u003cbr/\u003e\nnew version for https://github.com/jquery/jquery-dist.git#\u003cbr/\u003e\nhttps://github.com/jquery/jquery-dist.git\u003cbr/\u003e\ncheckout 3.1.0\u003cbr/\u003e\nresolved https://github.com/jquery/jquery-dist.git#3.1.0\u003cbr/\u003e\ninstall jquery#3.1.0\u003cbr/\u003e\n\n###bower下安装bootstrap\n\u003ebower install bootstrap\n\n项目目录下将会自动创建一个`bower_components`文件夹，里面就包含了刚刚安装的jquery和bootstrap\u003cbr/\u003e\n\nbower还可以通过github短语来安装没有在bower上注册的组件\u003cbr/\u003e\n\u003ebower install SakuB/2048-game\u003cbr/\u003e\n\n\u003enot-cached git://github.com/SakuB/2048-game.git\u003cbr/\u003e\nresolve git://github.com/SakuB/2048-game.git\u003cbr/\u003e\ncheckout master\u003cbr/\u003e\nresolved git://github.com/SakuB/2048-game.git#e4f5bf1fb7\u003cbr/\u003e\ninstall 2048-game#e4f5bf1fb7\u003cbr/\u003e\n\n使用以上命令，bower会自动从指定的github用户名上下载项目\u003cbr/\u003e\n`/`前面的SakuB为github的用户名，后面的2048-game为项目名，bower会自动寻找这个用户名以及他下面相应的项目进行下载\u003cbr/\u003e\n\n同时也可以使用项目的完整地址来安装\u003cbr/\u003e\n\u003ebower install https://github.com/SakuB/2048-game\n\nbower也支持安装其他cdn上的js文件，同样也是使用完整的地址来安装\u003cbr/\u003e\n\u003ebower install http://push.zhanzhang.baidu.com/push.js\n\n在bower可以搜索到一些常用的包\u003cbr/\u003e\n在bower创建的项目目录下也可以创建一个bower.json文件，用于记录项目所用包的一些相关信息，具体配置方式与package.json基本相同\u003cbr/\u003e\n####bower下载的组件如何使用？\n在项目目录中新建一个app目录，并在app目录下新建一个index.html文件\u003cbr/\u003e\n引用js文件一样还是用原始的引用方式，实际上非常麻烦，所以这里要用到grunt和bower搭配使用\u003cbr/\u003e\n\n##Grunt的使用以及与bower和yoman的结合\n单独的使用bower并不能使我们实际开发效率有太大的帮助，所以必须将这些工具结合起来\u003cbr/\u003e\n\n###grunt与yoman\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaaaash%2Fgrunt-learn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faaaaash%2Fgrunt-learn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaaaash%2Fgrunt-learn/lists"}