{"id":19910058,"url":"https://github.com/aitoroses/atscript_di_playground","last_synced_at":"2025-10-04T11:58:44.731Z","repository":{"id":23182398,"uuid":"26538576","full_name":"aitoroses/AtScript_DI_playground","owner":"aitoroses","description":"This is a fork that embeds a build of di@2.0 dependency injection framework from **vojtajina** inside AtScript playground","archived":false,"fork":false,"pushed_at":"2014-11-12T14:03:14.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T08:30:39.068Z","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/aitoroses.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-12T14:02:11.000Z","updated_at":"2014-11-12T14:03:14.000Z","dependencies_parsed_at":"2022-08-21T19:50:42.398Z","dependency_job_id":null,"html_url":"https://github.com/aitoroses/AtScript_DI_playground","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aitoroses/AtScript_DI_playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aitoroses%2FAtScript_DI_playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aitoroses%2FAtScript_DI_playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aitoroses%2FAtScript_DI_playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aitoroses%2FAtScript_DI_playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aitoroses","download_url":"https://codeload.github.com/aitoroses/AtScript_DI_playground/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aitoroses%2FAtScript_DI_playground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278308622,"owners_count":25965654,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"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-12T21:17:24.940Z","updated_at":"2025-10-04T11:58:44.716Z","avatar_url":"https://github.com/aitoroses.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Fork\n\nThis is a fork that embeds a build of di@2.0 dependency injection framework from **vojtajina** inside AtScript playground\n\n## AtScript Playground\n\nThis is an empty repo to make it easy to experiment with [AtScript].\n\n\n### Initial setup\n\n```bash\n# Clone the repo...\ngit clone https://github.com/vojtajina/atscript-playground.git\ncd atscript-playground\n\n# Then, you need to install all the dependencies...\nnpm install\n\n# If you want to be able to use global commands `karma` and `gulp`...\nnpm install -g karma-cli gulp\n```\n\n### The minimal example\n\nOur example consists of two files:\n\n* `atscript-playground/src/something.ats` defines a simple class that returns the sum of two input values\n* `atscript-playground/src/main.ats` imports that class and prints a message to the console\n \n### Running the example in the browser\nTo run in the browser, you need to first build the project. This creates a `build/` directory that contains the transpiled `*.js` files that are created from your AtScript project.\n\n```bash\n# Do initial build, start a webserver and re-build on every file change...\ngulp build serve watch\n```\nOpen a browser and look in the console log to see the result.\n\n### Running the tests\nThe tests are in `atscript-playground/test/something_spec.ats`. Run them using Karma, like so:\n```bash\nkarma start\n```\nKarma opens a browser window for running tests. To see the actual test output (and errors), look for the log in the terminal window where you issued the `karma start` command.\n\n### What are all the pieces involved?\n\n#### [Traceur]\nTranspiles AtScript code into regular ES5 (today's JavaScript) so that it can be run in a current browser.\n\n#### [RequireJS]\nTraceur is configured to transpile AtScript modules into AMD syntax and we use RequireJS to load the code in the browser.\n\n#### [Assert] library\nWhen `typeAssertions: true` option is used, Traceur generates run-time type assertions such as `assert.type(x, Object)`. The assert library does the actual run-time check. Of course, you can use your own assert library.\n\nThe idea with type assertions is that you only use them during the development/testing and when deploying, you use `typeAssertions: false`.\n\n#### [Karma]\nTest runner that runs the tests in specified browsers, every time that you change a file.\n\n#### [Gulp]\nTask runner to make defining and running the tasks simpler.\n\n\n[AtScript]: http://atscript.org\n[Traceur]: https://github.com/google/traceur-compiler\n[RequireJS]: http://requirejs.org\n[Assert]: https://github.com/angular/assert\n[Karma]: http://karma-runner.github.io/\n[Gulp]: http://gulpjs.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faitoroses%2Fatscript_di_playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faitoroses%2Fatscript_di_playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faitoroses%2Fatscript_di_playground/lists"}