![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
ember-cli-coffeescript
Advanced tools
Adds precompilation of CoffeeScript files and all the basic generation types to the `ember generate` command.
Adds precompilation of CoffeeScript files and all the basic generation
types to the ember generate
command, as well as linting.
ember generate
ember install ember-cli-coffeescript
NB: ember-cli-coffeescript is tested using ember-cli version 2.3.0
and up. Some of it probably works on
earlier versions, but I wouldn't know.
Run ember help generate
to get a list of available blueprints. Use them by running ember g <blueprint> <args>
. For instance, to generate a component:
ember g component my-component
ember-cli-coffeescript comes with pod-support for the same blueprints as ember-cli does. Check out the ember-cli docs for pods for instructions on how to use it.
If you'd like to use ember-cli-coffeescript without the blueprints, you can add
the following to your config/environment.js
:
ENV.coffeeOptions = {
blueprints: false
}
This will make it fall back to the next blueprints in line (probably the ones from ember-cli).
This will happen automatically - no work necessary.
If you have a coffeelint.json
file in the root of you project we will automatically pick up on it and start running linting on files when using the ember build
and ember serve
commands.
If you do not want linting to run despite having a coffeelint.json
file, use the following configuration
in your config/environment.js
.
ENV.coffeeOptions = {
lint: false
}
You can set lint
to true
to enable linting with the default configurations even without a custom coffeelint.json
file.
You can find all the available options on the website for coffeelint
.
If you want to specify a different path for your coffeelint.json
file you can specify the path
(relative to the project directory or absolute)
ENV.coffeeOptions = {
lint: {
configPath: "configurations/coffeelint.json"
}
}
If you want to change the way we format the linting output you can specify custom error output and stats output functions:
ENV.coffeeOptions = {
lint: {
formatter: function(filePath, lintResults) { },
statsFormatter: function(stats) { console.log('Files: ', stats.fileCount, "Errors: ", stats.errorCount) }
}
}
NOTE: The lint results will show up twice when you build and run your app; once for the app files, and then once for the test files. On rebuild, only the changed files are linted.
To avoid linting specific files or folders, you can put a file named .coffeelintignore
in the root of your project containing ignore-rules, one per line. This is just like a
.gitignore
-file, and it will follow the same rules.
git clone
this repositorynpm install
bower install
npm link
Because of the nature of this project, it needs to be consumed by an ember-cli project to be properly developed.
"ember-cli-coffeescript": "*"
to your consuming project's package.json
npm link ember-cli-coffeescript
ember test
npm run embertest
npm run nodetest
To run all the tests:
npm test
FAQs
Adds precompilation of CoffeeScript files and all the basic generation types to the `ember generate` command.
The npm package ember-cli-coffeescript receives a total of 0 weekly downloads. As such, ember-cli-coffeescript popularity was classified as not popular.
We found that ember-cli-coffeescript demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.