{"id":13661212,"url":"https://github.com/jkuri/angular-rollup-starter","last_synced_at":"2025-04-30T10:17:56.991Z","repository":{"id":57179021,"uuid":"66966073","full_name":"jkuri/angular-rollup-starter","owner":"jkuri","description":"Angular2 \u0026 Rollup.js including AoT and Universal Prerendering","archived":false,"fork":false,"pushed_at":"2017-03-04T21:16:42.000Z","size":171,"stargazers_count":32,"open_issues_count":4,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-30T10:17:50.401Z","etag":null,"topics":["angular","aot","prerender","rollup","tree-shake","universal"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jkuri.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":"2016-08-30T18:16:35.000Z","updated_at":"2023-08-24T15:01:59.000Z","dependencies_parsed_at":"2022-09-14T03:30:53.779Z","dependency_job_id":null,"html_url":"https://github.com/jkuri/angular-rollup-starter","commit_stats":null,"previous_names":["jkuri/angular2-rollup-starter"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkuri%2Fangular-rollup-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkuri%2Fangular-rollup-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkuri%2Fangular-rollup-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkuri%2Fangular-rollup-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jkuri","download_url":"https://codeload.github.com/jkuri/angular-rollup-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251683380,"owners_count":21626956,"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":["angular","aot","prerender","rollup","tree-shake","universal"],"created_at":"2024-08-02T05:01:31.115Z","updated_at":"2025-04-30T10:17:56.967Z","avatar_url":"https://github.com/jkuri.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Angular2 Rollup Seed\n\n[![Build Status](https://travis-ci.org/jkuri/angular-rollup-starter.svg?branch=master)](https://travis-ci.org/jkuri/angular-rollup-starter)\n[![Build status](https://ci.appveyor.com/api/projects/status/u6b3i8c8fnrh4dmb?svg=true)](https://ci.appveyor.com/project/jkuri/angular-rollup-starter)\n\nAngular2 starter seed based on Rollup.\nProduction builds including AoT steps. \nStarter also comes with Universal support built-in. \n\n## Start\n\nFirst, clone this repository.\n\n```sh\ngit clone https://github.com/jkuri/angular-rollup-starter.git --depth 1\n```\n\nMove into cloned directory and run \n\n```sh\nnpm install\n```\n\n## Usage\n\n### Serve\n\n```sh\nnpm start\n```\n\n***Note*** Initial load takes some time so vendor files are generated. \nThen it runs like a charm with cached builds which happens to be really fast.\n\nThis serves your app with live-reload enabled.\n\n### Production Build\n\nProduction builds automatically includes AoT (Ahead of Time) compilation steps. \n\n```sh\nnpm run roll\n```\n\n### Universal (Isomorphic) Production Build\n\n```sh\nnpm run roll:prerender\n```\n\nRoutes stored in `config.json` as `universalRoutes` will be prerendered into `dist/` directory.\nFor example\n```json\n{\n  \"externalPackages\": { },\n  \"styles\": [\"css/app.css\"],\n  \"universalRoutes\": [\"/\", \"/docs\", \"/docs/child\"]\n}\n```\n\nwill generate prerendered content in `dist/index.html` `dist/docs.html` and `dist/docs/child.html`.\n\nTo properly serve prerendered content use below `nginx` configuration.\n```nginx\nserver {\n  listen 80;\n  server_name subdomain.example.com example.com;\n\n  root /path/to/dist;\n\n  location / {\n    try_files $uri.html $uri $uri/ /index.html;\n  }\n}\n```\n\n### Licence\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkuri%2Fangular-rollup-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjkuri%2Fangular-rollup-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkuri%2Fangular-rollup-starter/lists"}