{"id":19986404,"url":"https://github.com/sourcec0de/gulp-exmaple","last_synced_at":"2026-06-05T13:31:44.653Z","repository":{"id":22771791,"uuid":"26117730","full_name":"sourcec0de/gulp-exmaple","owner":"sourcec0de","description":"a gulp build system example","archived":false,"fork":false,"pushed_at":"2014-11-03T12:33:12.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T20:42:04.852Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sourcec0de.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}},"created_at":"2014-11-03T12:32:15.000Z","updated_at":"2014-11-03T12:32:18.000Z","dependencies_parsed_at":"2022-08-21T12:01:03.031Z","dependency_job_id":null,"html_url":"https://github.com/sourcec0de/gulp-exmaple","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sourcec0de/gulp-exmaple","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcec0de%2Fgulp-exmaple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcec0de%2Fgulp-exmaple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcec0de%2Fgulp-exmaple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcec0de%2Fgulp-exmaple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sourcec0de","download_url":"https://codeload.github.com/sourcec0de/gulp-exmaple/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcec0de%2Fgulp-exmaple/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33944671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-11-13T04:29:03.449Z","updated_at":"2026-06-05T13:31:44.636Z","avatar_url":"https://github.com/sourcec0de.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Gulp Example\n==================\n\nThis `gulpfile.js` allows you to watch the `assets/js` directory for changes\nin your javascript. When a files is saved it will run the build event.\n\nI explicitly add javascript files to gulp.src to ensure they are loaded\nin the correct order. If you're using a system like require however, the order may not matter as much and you could use a glob loader.\n\nThe javascript files are pushed through a processing pipeline\n\n- first they are linted with jshint\n- uglified\n- concatenated into `./public/js/main.js`\n\n#### Getting Started\n\ninstall gulp `npm install gulp -g`\ninstall local `npm install`\n\nNow you can run `gulp watch` and go about your business modifying your js files.\nIf you add a new file to gulp.src you will need to restart `gulp watch`. This is the nice thing about the glob method it will account for all javascript files and there is really no need to restart anything.\n\nIf the build is successful you won't get any errors in the console and your html can load in `main.js` right before the closing body tag.\n\n```html\n\u003c!-- assuming you're serving the public directory --\u003e\n\u003cscript type=\"text/javascript\" src=\"/js/main.js\"\u003e\u003c/script\u003e\n```\n\nThere are also tons of other awesome gulp plugins to help speed up client side javascript development. Like [live-reload][1] and [s3][2] (for uploading to a cdn).\n\n[1]: https://www.npmjs.org/package/gulp-livereload\n[2]: https://www.npmjs.org/package/gulp-s3","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcec0de%2Fgulp-exmaple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsourcec0de%2Fgulp-exmaple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcec0de%2Fgulp-exmaple/lists"}