{"id":16956980,"url":"https://github.com/jgraichen/sprockets-standalone","last_synced_at":"2025-08-23T16:08:57.788Z","repository":{"id":12706560,"uuid":"15379055","full_name":"jgraichen/sprockets-standalone","owner":"jgraichen","description":"Rack task library for using Sprockets standalone.","archived":false,"fork":false,"pushed_at":"2022-02-25T20:30:49.000Z","size":11,"stargazers_count":13,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-12T14:57:47.027Z","etag":null,"topics":["asset-pipeline","ruby","sprockets"],"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/jgraichen.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":"2013-12-22T17:17:37.000Z","updated_at":"2024-10-16T04:39:17.000Z","dependencies_parsed_at":"2022-09-02T13:22:56.564Z","dependency_job_id":null,"html_url":"https://github.com/jgraichen/sprockets-standalone","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/jgraichen/sprockets-standalone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgraichen%2Fsprockets-standalone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgraichen%2Fsprockets-standalone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgraichen%2Fsprockets-standalone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgraichen%2Fsprockets-standalone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jgraichen","download_url":"https://codeload.github.com/jgraichen/sprockets-standalone/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgraichen%2Fsprockets-standalone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271151049,"owners_count":24707731,"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-08-19T02:00:09.176Z","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":["asset-pipeline","ruby","sprockets"],"created_at":"2024-10-13T22:16:33.186Z","updated_at":"2025-08-23T16:08:57.760Z","avatar_url":"https://github.com/jgraichen.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sprockets::Standalone\n\nRack task library for using Sprockets standalone.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'sprockets-standalone'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install sprockets-standalone\n\n## Usage\n\nRequire sprockets-standalone in your Rakefile and define the task:\n\n```\nrequire 'sprockets/standalone'\n\nSprockets::Standalone::RakeTask.new(:assets) do |task, sprockets|\n  task.assets   = %w(app.js app.css *.png *.svg *.woff)\n  task.sources  = %w(app/assets vendor/assets)\n  task.output   = File.expand_path('../assets', __FILE__)\n  task.manifest_name  = 'manifest.json'\n\n  sprockets.js_compressor  = :uglifier\n  sprockets.css_compressor = :sass\nend\n```\n\nYou can give a name to the task that will be used for namespacing. The example above will generate the rake tasks`assets:compile`, `assets:clobber` and `assets:clean`. Default value for name is `assets`.\n\nIf you pass a block you can configure additional parameters:\n\n1)\t`task.assets` - Defines the list of assets that should be compiled for you. By default it contains `application.js`, `application.css` and `*.png`, `*.jpg`, `*.gif`.\n\n2)\t`task.source` - Defines a list of source directories. The specified paths will be added to sprockets' include path. If you want a sprockets directory structure similar to Rails you need to add all paths: `task.sources = %w(app/assets/javascripts app/assets/stylesheets app/assets/images)`.\n\n3)\t`task.output` - Define output directory. Default is `dist`.\n\n4)\t`task.manifest_name` - Set the name to be used for the `manifest.json`\n\n5)\t`task.environment` - Set custom sprockets environment.\n\nYou can also customize the sprockets environment in the block to configure additional preprocessors or compressors.\n\nNote: Sprockets-standalone will always use a manifest.json even when asset digests are turned off. The manifest.json will be used to track changes. If you manually change the generated assets that will not be override when compiling assets unless there is also a change if the matching source files.\n\nYou will need to remove generated assets (`rake assets:clobber`) to force regeneration of all assets.\n\n## Contributing\n\n1. Fork it ( http://github.com/jgraichen/sprockets-standalone/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgraichen%2Fsprockets-standalone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjgraichen%2Fsprockets-standalone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgraichen%2Fsprockets-standalone/lists"}