{"id":13879926,"url":"https://github.com/javan/blade","last_synced_at":"2025-04-07T08:18:32.845Z","repository":{"id":28964500,"uuid":"32490769","full_name":"javan/blade","owner":"javan","description":null,"archived":false,"fork":false,"pushed_at":"2022-04-12T15:43:58.000Z","size":191,"stargazers_count":86,"open_issues_count":3,"forks_count":11,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-04-13T22:14:17.634Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/javan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-18T23:54:48.000Z","updated_at":"2023-07-06T22:57:30.000Z","dependencies_parsed_at":"2022-08-17T19:15:15.244Z","dependency_job_id":null,"html_url":"https://github.com/javan/blade","commit_stats":null,"previous_names":["javan/blade_runner"],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javan%2Fblade","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javan%2Fblade/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javan%2Fblade/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javan%2Fblade/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javan","download_url":"https://codeload.github.com/javan/blade/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247615385,"owners_count":20967184,"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-08-06T08:02:39.346Z","updated_at":"2025-04-07T08:18:32.803Z","avatar_url":"https://github.com/javan.png","language":"Ruby","readme":"# Blade\n### A [Sprockets](https://github.com/rails/sprockets) Toolkit for Building and Testing JavaScript Libraries\n\n## Getting Started\n\nAdd Blade to your `Gemfile`.\n\n```ruby\nsource \"https://rubygems.org\"\n\ngem 'blade'\n```\n\nCreate a `.blade.yml` (or `blade.yml`) file in your project’s root, and define your Sprockets [load paths](https://github.com/rails/sprockets#the-load-path) and [logical paths](https://github.com/rails/sprockets#logical-paths). Example:\n\n```yaml\n# .blade.yml\nload_paths:\n  - src\n  - test/src\n  - test/vendor\n\nlogical_paths:\n  - widget.js\n  - test.js\n```\n\n## Compiling\n\nConfigure your build paths and [compressors](https://github.com/rails/sprockets#minifying-assets):\n\n```yaml\n# .blade.yml\n…\nbuild:\n  logical_paths:\n    - widget.js\n  path: dist\n  js_compressor: uglifier # Optional\n```\n\nRun `bundle exec blade build` to compile `dist/widget.js`.\n\n## Testing Locally\n\nBy default, Blade sets up a test runner using [QUnit](http://qunitjs.com/) via the [blade-qunit_adapter](https://github.com/javan/blade-qunit_adapter) gem.\n\nRun `bundle exec blade runner` to launch Blade’s test console and open the URL it displays in one or more browsers. Blade detects changes to your logical paths and automatically restarts the test suite.\n\n![Blade Runner](https://cloud.githubusercontent.com/assets/5355/15481643/8aef7c98-20f9-11e6-9826-80a32ce7568c.png)\n\n## Testing on CI\n\nRun `bundle exec blade ci` to start Blade’s test console in non-interactive CI mode, and launch a browser pointed at Blade’s testing URL (usually http://localhost:9876). The process will return `0` on success and non-zero on failure.\n\nTo test on multiple browsers with [Sauce Labs](https://saucelabs.com/), see the [Sauce Labs plugin](https://github.com/javan/blade-sauce_labs_plugin).\n\n## Projects Using Blade\n\n* [Trix](https://github.com/basecamp/trix)\n* [Turbolinks](https://github.com/turbolinks/turbolinks)\n* [Action Cable](https://github.com/rails/rails/tree/master/actioncable)\n\n---\n\nLicensed under the [MIT License](LICENSE.txt)\n\n© 2016 Javan Makhmali\n","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavan%2Fblade","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavan%2Fblade","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavan%2Fblade/lists"}