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.js v3.12 or above
- Ember CLI v3.12 or above
- Node.js v10 or above
Ember Freestyle support is only provided for the 2 latest Ember versions
This installation process is opinionated in order to get you going quickly.
-
ember install ember-freestyle
This will do the following:
- Install the
ember-freestyle
addon itself - Add a
freestyle
template in your app - Add a
freestyle
controller in your app
Note: Ember CLI versions < 0.2.3 should use
ember install:addon
instead ofember install
- Install the
-
Add
this.route('freestyle');
to yourrouter.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 in 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!
We recommend blacklisting Ember Freestyle for production builds using Ember CLI's addon blacklist feature.
var environment = process.env.EMBER_ENV;
var pluginsToBlacklist = environment === 'production' ? ['ember-freestyle'] : [];
module.exports = function(defaults) {
var app = new EmberApp(defaults, {
addons: {
blacklist: pluginsToBlacklist
}
};
}
You should include Ember Freestyle as a devDependency so that apps using your addon will not include Ember Freestyle CSS and JavaScript in their production payloads.
npm run lint:js
npm run lint:js -- --fix
ember test
– Runs the test suite on the current Ember versionember test --server
– Runs the test suite in "watch mode"ember try:each
– Runs the test suite against multiple Ember versions
ember serve
- Visit the dummy application at http://localhost:4200.
For more information on using ember-cli, visit https://ember-cli.com/.
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!