{"id":23629818,"url":"https://github.com/willworks/gulpfile","last_synced_at":"2025-11-08T03:30:34.266Z","repository":{"id":35822942,"uuid":"40105734","full_name":"willworks/gulpfile","owner":"willworks","description":"LiveReload gulpfile","archived":false,"fork":false,"pushed_at":"2016-01-05T13:06:34.000Z","size":4680,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-28T01:18:14.531Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willworks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-03T04:57:13.000Z","updated_at":"2019-08-18T16:49:12.000Z","dependencies_parsed_at":"2022-09-08T17:42:14.987Z","dependency_job_id":null,"html_url":"https://github.com/willworks/gulpfile","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willworks%2Fgulpfile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willworks%2Fgulpfile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willworks%2Fgulpfile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willworks%2Fgulpfile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willworks","download_url":"https://codeload.github.com/willworks/gulpfile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239547464,"owners_count":19657154,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-12-28T01:18:28.529Z","updated_at":"2025-02-18T20:41:06.762Z","avatar_url":"https://github.com/willworks.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulpfile  \nLiveReload gulpfile  \ngulp实现页面修改自动重新加载\n\n## 解决问题  \n - 在写前端界面代码时，想调试的时候需要配置一个Apache或者Nginx服务器  \n - 每次修改代码都需要刷新一下，验证效果  \n\n## 切换淘宝镜像加速  \n - npm http://npm.taobao.org/  \n - npm install -g nrm  \n - nrm use taobao  \n\n## 切换node版本nrm  \n - npm install -g nrm  \n - nrm ls //查看node所有版本  \n - nrm use {verision}  \n\n## 使用问题\n - Local gulp not found in ~ Try running: npm install gulp\n - npm install gulp -g 安装的是 gulp 的命令行工具\n - 使用gulp的时候，还需要为项目安装可以使用的 gulp，在项目的根目录下面执行：npm install gulp\n\n## 2016.1.4 update\n[browser-sync](http://www.browsersync.cn/)不需要借助浏览器插件可以实现服务器刷新\n前端的工具演化真快，目测此贴可以演变为前端工具演化史==\n\n\t\t//gulpfile.js\n\t\tvar gulp = require('gulp');\n\t\tvar browserSync = require('browser-sync');\n\n\t\tgulp.task('browser-sync', function() {\n\t\t    browserSync({\n\t\t        files: \"**\",\n\t\t        server: {\n\t\t            baseDir: \"./\"\n\t\t        }\n\t\t    });\n\t\t});\n\n\t\tgulp.task('default', [\"browser-sync\"]);\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillworks%2Fgulpfile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillworks%2Fgulpfile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillworks%2Fgulpfile/lists"}