{"id":13497041,"url":"https://github.com/shuhei/babel-angular2-app","last_synced_at":"2025-03-28T21:31:53.946Z","repository":{"id":29538586,"uuid":"33077561","full_name":"shuhei/babel-angular2-app","owner":"shuhei","description":"A super-simple skeleton Angular 2 app built with Babel and Browserify.","archived":true,"fork":false,"pushed_at":"2017-01-22T10:53:09.000Z","size":70,"stargazers_count":259,"open_issues_count":3,"forks_count":55,"subscribers_count":27,"default_branch":"master","last_synced_at":"2024-10-31T13:34:08.487Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/shuhei.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":"2015-03-29T15:11:38.000Z","updated_at":"2024-05-16T21:46:58.000Z","dependencies_parsed_at":"2022-09-06T17:31:34.814Z","dependency_job_id":null,"html_url":"https://github.com/shuhei/babel-angular2-app","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/shuhei%2Fbabel-angular2-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuhei%2Fbabel-angular2-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuhei%2Fbabel-angular2-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuhei%2Fbabel-angular2-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shuhei","download_url":"https://codeload.github.com/shuhei/babel-angular2-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246105154,"owners_count":20724262,"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-07-31T20:00:21.769Z","updated_at":"2025-03-28T21:31:53.661Z","avatar_url":"https://github.com/shuhei.png","language":"JavaScript","readme":"# Build Angular 2 app with Babel\n\nA skeleton [Angular 2](https://angular.io/) app built with [Babel](https://babeljs.io/) and [Browserify](http://browserify.org/).\n\n- Uses Babel instead of [TypeScript](http://www.typescriptlang.org/)/[Traceur](https://github.com/google/traceur-compiler).\n- Supports class/parameter decorators and parameter type annotations with [Babel](https://github.com/babel/babel), [babel-plugin-transform-decorators-legacy](https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy) and [babel-plugin-angular2-annotations](https://github.com/shuhei/babel-plugin-angular2-annotations).\n- Bundles JavaScript files into one file with Browserify. (However, it doesn't use any Browserify-specific technology. You can easily switch to Webpack and etc.)\n\n## Try\n\n### Install\n\nClone/fork this repo and:\n\n```\nnpm install\n```\n\n### Build\n\nBuild once:\n\n```\nnpm run build\n```\n\nWatch files and rebuild:\n\n```\nnpm run watch\n# or\nnpm start\n```\n\n### Preview\n\n```\nnpm install -g http-server\nhttp-server public\n```\n\n### Test\n\nUnit and e2e tests:\n\n```\nnpm test\n```\n\nUnit tests:\n\n```\nnpm run unit\n```\n\ne2e tests:\n\n```\nnpm run e2e\n```\n\n## Motivation\n\nBack in the time of angular2 alpha.18, `angular/quickstart` provided us to try Angular 2 app with on-the-fly transpilation and lazy-loading, which resulted in long waiting time for each file change. Also, I was not familiar with the Traceur tool stack and its output. [angular2 npm package](https://www.npmjs.com/package/angular2) said *The files under /es6 are es6 compatible files that can be transpiled to es5 using any transpiler.* So I gave it a shot.\n\n## Babel transformer plugin\n\nTo support type annotation, parameter decorator and property decorator without initializer, this skeleton app uses the following external Babel transform plugin that I made:\n\n- [babel-plugin-angular2-annotations](https://github.com/shuhei/babel-plugin-angular2-annotations)\n\n## License\n\n[ISC](https://opensource.org/licenses/ISC)\n","funding_links":[],"categories":["Uncategorized","JavaScript","Awesome Angular [![Awesome TipeIO](https://img.shields.io/badge/Awesome%20Angular-@TipeIO-6C6AE7.svg)](https://github.com/gdi2290/awesome-angular) [![Awesome devarchy.com](https://img.shields.io/badge/Awesome%20Angular-@devarchy.com-86BDC1.svg)](https://github.com/brillout/awesome-angular-components)"],"sub_categories":["Uncategorized","Angular \u003ca id=\"angular\"\u003e\u003c/a\u003e"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuhei%2Fbabel-angular2-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshuhei%2Fbabel-angular2-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuhei%2Fbabel-angular2-app/lists"}