
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
ember-freestyle
Advanced tools
Create a living styleguide for your Ember app.
Ember Freestyle is an Ember addon that allows you to quickly create a component explorer for your Ember app.
This README provides a lightweight overview of Ember Freestyle to get you going. More complete documentation can be found at https://chrislopresto.github.io/ember-freestyle.
To see Ember Freestyle in action, visit https://chrislopresto.github.io/ember-freestyle/#/acceptance.
ember-freestyle includes Typescript types and provides addon/glint.ts
for Glint usage
This installation process is opinionated in order to get you going quickly.
ember install ember-freestyle
This will do the following:
ember-freestyle
addon itselffreestyle
template in your appfreestyle
controller in your appAdd this.route('freestyle');
to your app/router.js
file
Navigate to /freestyle
. You should now see something like:
All of the generated output is optional. If you don't want a freestyle
route,
for example, feel free to get rid of it and add a freestyle-guide
somewhere
else in your app.
You can use the freestyle-guide
component anywhere you'd like in your app.
You can organize your components into multiple Freestyle guides if you want to.
You can even use the constituent components like freestyle-usage
on their own.
Hopefully the installation instructions got you off to a smooth, seamless start. If you have any problems, feel free to chat with us in the Ember Community Discord or open an issue. As always, PRs are welcome!
If you want to exclude Ember Freestyle's styles, you can set the includeStyles
option to false
in your ember-cli-build.js
file:
// ember-cli-build.js
module.exports = function (defaults) {
const app = new EmberApp(defaults, {
'ember-freestyle': {
includeStyles: false,
},
};
};
This might be useful in case you want to define your own styles or if you are
using ember-cli-sass
and want to import Ember Freestyle's styles explicitly:
$FreestyleGuide-color--primary: #C70039;
$FreestyleGuide-color--accent: #DAF7A6;
@import 'ember-freestyle';
We recommend excluding Ember Freestyle from production builds using Ember CLI's
addons.exclude
option.
// ember-cli-build.js
const environment = process.env.EMBER_ENV;
const addonsToExclude = environment === 'production' ? ['ember-freestyle'] : [];
module.exports = function (defaults) {
const app = new EmberApp(defaults, {
addons: {
exclude: addonsToExclude,
},
};
};
You should include ember-freestyle
in your devDependencies
so that apps
using your addon will not include Ember Freestyle CSS and JavaScript in their
production builds.
See the Contributing guide for details.
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind are welcome!
This project is licensed under the MIT License.
FAQs
Create a living styleguide for your Ember app.
The npm package ember-freestyle receives a total of 2,674 weekly downloads. As such, ember-freestyle popularity was classified as popular.
We found that ember-freestyle demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.