{"id":16476077,"url":"https://github.com/softprops/coffeescripted-sbt","last_synced_at":"2025-03-21T06:32:18.794Z","repository":{"id":66115623,"uuid":"1874912","full_name":"softprops/coffeescripted-sbt","owner":"softprops","description":"pour some coffee for scala","archived":false,"fork":false,"pushed_at":"2013-07-24T23:26:09.000Z","size":393,"stargazers_count":55,"open_issues_count":3,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-17T11:59:51.340Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Scala","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/softprops.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":"2011-06-10T08:02:51.000Z","updated_at":"2021-04-04T20:25:34.000Z","dependencies_parsed_at":"2023-02-19T22:45:24.204Z","dependency_job_id":null,"html_url":"https://github.com/softprops/coffeescripted-sbt","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fcoffeescripted-sbt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fcoffeescripted-sbt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fcoffeescripted-sbt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fcoffeescripted-sbt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softprops","download_url":"https://codeload.github.com/softprops/coffeescripted-sbt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244751700,"owners_count":20504246,"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-10-11T12:41:28.995Z","updated_at":"2025-03-21T06:32:18.068Z","avatar_url":"https://github.com/softprops.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CoffeeScripted Sbt\n\nIn the tradition of [CoffeeScript Plugins](https://github.com/rubbish/coffee-script-sbt-plugin), this Sbt plugin compiles [CoffeeScript](http://jashkenas.github.com/coffee-script/) sources into JavaScript.\n\n![CoffeeScript](http://jashkenas.github.com/coffee-script/documentation/images/logo.png) ![Scala](https://github.com/downloads/softprops/coffeescripted-sbt/scala_logo.png)\n\n## Install\n\nFor sbt 0.11.+\n\nIn your project, define a file for plugin library dependencies, `project/plugins.sbt`\n\nAnd add the following lines\n\n    addSbtPlugin(\"me.lessis\" % \"coffeescripted-sbt\" % \"0.2.3\")\n    \nIf you haven't already, append the sbt community plugin resolver to your plugin definition, and add the following line as well\n\n    resolvers += Resolver.url(\"sbt-plugin-releases\",\n      new URL(\"http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/\"))(\n        Resolver.ivyStylePatterns)\n\nIn your `build.sbt` file add the following line\n\n    seq(coffeeSettings: _*)\n\n## Settings\n\n    coffee # compiles CoffeeScript source files\n    bare(for coffee) # removes function wrapper from generated JavaScript sources\n    iced(for coffee) # compiles CoffeeScript use the iced CoffeeScript compiler\n    charset(for coffee) # sets the character encoding used to generate files\n    exclude-filter(for coffee) # filter for files ignored by plugin\n    unmanaged-sources(for coffee) # lists resolved CoffeeScript sources\n    clean(for coffee) # deletes compiled JavaScript resources    \n    config:source-directory(for coffee) # directory containging CoffeeScript sources\n    config:resource-managed(for coffee) # where compiled JavaScript will be copied to\n\n## Customization\n\nBy default, generated JavaScript resources are wrapped in an anonymous module.\n\n    (function() {\n    \n      // your code here\n    \n    }).call(this);\n\nCoffeeScripted enables `bare`-style JavaScript as well. Bare-style JavaScript is JavaScript that is not defined wrapped in an anonymous function module. You can control this in coffeescripted-sbt by overriding the `bare` setting. To enable bare-style JavaScript, append the following to your build definition.\n\n    (CoffeeKeys.bare in (Compile, CoffeeKeys.coffee)) := true\n\nThe enhanced [iced][iced] compiler adds two new asynchronous control primitives `await` and `defer`. To take advantage of them, use the `iced` setting.\n\n    (CoffeeKeys.iced in (Compile, CoffeeKeys.coffee)) := true\n\nNote, Iced CoffeeScript is a superset of CoffeeScript, meaning all of your CoffeeScript will work without change under the `iced` compiler. In iced mode, all `.coffee` and `.iced` files will get compiled using the `iced` compiler. You can revert back to standard CoffeeScript by leaving the `iced` setting as `false`. Only `.coffee` files will be compiled under the default coffee compiler, leaving you free to mix `ice` with your coffee safely.\n\nBy default, CoffeeScript sources are resolved under `src/main/coffee` and compiled JavaScript will be copied to `target/scala-2.9.1/resource_managed/main/js`\n\nYou can override this behavior by overriding the `resourceManaged` setting scoped to your configuration and the `CoffeeKeys.coffee` task. Below is an example you can append to your build definition. It will copy generated JavaScript to target/:scala-version/your_preference/js\n\n    (resourceManaged in (Compile, CoffeeKeys.coffee)) \u003c\u003c= (crossTarget in Compile)(_ / \"your_preference\" / \"js\")\n\n## Props\n\nThis was converted into a plugin based on a [gist](https://gist.github.com/1018046) by [zentroupe](https://gist.github.com/zentrope) targeting sbt 0.11.*\n\nThis plugin currently uses the v1.2.0 version of the CoffeeScript js compiler and the v1.2.0j version of the [iced][iced] CoffeeScript compiler.\n\nDoug Tangren (softprops) 2011-2012\n\n[iced]: http://maxtaco.github.com/coffee-script/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftprops%2Fcoffeescripted-sbt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftprops%2Fcoffeescripted-sbt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftprops%2Fcoffeescripted-sbt/lists"}