{"id":13734719,"url":"https://github.com/udacity/cloudflare-typescript-worker-template","last_synced_at":"2025-05-08T11:30:37.258Z","repository":{"id":43387786,"uuid":"190669017","full_name":"udacity/cloudflare-typescript-worker-template","owner":"udacity","description":"Template for a tested linted formatted strict TypeScript Cloudflare Worker built with webpack","archived":false,"fork":false,"pushed_at":"2022-07-25T23:05:53.000Z","size":153,"stargazers_count":26,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-04T03:03:59.206Z","etag":null,"topics":["cdn","cloudflare","cloudflare-worker","edge-computing","github-templates","javascript","template","typescript","webpack"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/udacity.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":"2019-06-07T00:45:33.000Z","updated_at":"2023-07-23T16:22:31.000Z","dependencies_parsed_at":"2022-07-08T21:31:03.663Z","dependency_job_id":null,"html_url":"https://github.com/udacity/cloudflare-typescript-worker-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udacity%2Fcloudflare-typescript-worker-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udacity%2Fcloudflare-typescript-worker-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udacity%2Fcloudflare-typescript-worker-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udacity%2Fcloudflare-typescript-worker-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/udacity","download_url":"https://codeload.github.com/udacity/cloudflare-typescript-worker-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224727001,"owners_count":17359530,"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":["cdn","cloudflare","cloudflare-worker","edge-computing","github-templates","javascript","template","typescript","webpack"],"created_at":"2024-08-03T03:00:59.192Z","updated_at":"2024-11-15T03:30:52.543Z","avatar_url":"https://github.com/udacity.png","language":"TypeScript","funding_links":[],"categories":["Tool"],"sub_categories":[],"readme":"# Starter Template for a TypeScript Cloudflare Worker\n\nA preconfigured starter template for building a [Tslint][tslint] strictly\nlinted/formatted, [Jest][jest] tested, [Webpack][webpack] built,\n[TypeScript][typescript] [Cloudflare Worker][cfworker]. Uses the NPM packages\nprovided by the [`udacity/cloudflare-typescript-workers`][cf-ts-workers]\nproject.\n\n[tslint]: https://palantir.github.io/tslint/\n[jest]: https://jestjs.io/\n[webpack]: https://webpack.js.org/\n[typescript]: https://www.typescriptlang.org/\n[cfworker]: https://www.cloudflare.com/products/cloudflare-workers/\n[cf-ts-workers]: https://github.com/udacity/cloudflare-typescript-workers\n\n## Getting Started\n\n[Use this Github Repository Template][gen-template] or fork the repository to\ncreate a new repository.\n\n[Visual Studio Code][vscode] or any other IDE with [TypeScript\nIntelliSense][ts-intellisense] or similar support is recommended.\n\n[gen-template]: https://github.com/udacity/cloudflare-typescript-worker-template/generate\n[vscode]: https://code.visualstudio.com/\n[ts-intellisense]: https://code.visualstudio.com/docs/languages/typescript\n\n### Usage\n\n```bash\n# Setup node_modules\nnpm i\n# Run linter\nnpm run lint\n# Run linter and fix where possible\nnpm run lint-fix\n# Run tests\nnpm test\n# Build development readable worker js file\nnpm run build-dev\n# Build production minified worker js file\nnpm run build\n```\n\nThe build will generate a `dist/index.js` which you can deploy to Cloudflare.\n\n### Files and Directories\n\n* `src/` - Stores `index.ts` for the worker and any additional workers.\n* `test/` - Stores `index.test.ts` to test the worker.\n* `package.json` - The `npm` configuration contains common tasks such as `build`\n  and `test`.\n* `jest.config.js` - A TypeScript configuration for `jest`.\n* `tsconfig.json` - A strict TypeScript configuration for building Workers for\n  Cloudflare.\n* `tslint.json` - A detailed `tslint` configuration with exceptions for common\n  Worker needs.\n* `webpack.config.js` - A simple `webpack` configuration to agreggate\n  dependencies and build a worker.\n\n## License\n\nLicensed under the Apache License, Version 2.0.\n\n© 2019 Udacity, Inc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudacity%2Fcloudflare-typescript-worker-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fudacity%2Fcloudflare-typescript-worker-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudacity%2Fcloudflare-typescript-worker-template/lists"}