Files

99 lines
4.1 KiB
Markdown
Raw Permalink Normal View History

2020-08-10 17:29:12 -04:00
# Rose - Style & Component Ember Addon for Boundary
This addon contains common styles and components shared by
2020-08-10 17:29:12 -04:00
Boundary UIs.
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
2023-08-17 09:37:39 -07:00
**Table of Contents** _generated with [DocToc](https://github.com/thlorenz/doctoc)_
- [Add Styles to an App](#add-styles-to-an-app)
- [Installation](#installation)
2025-06-03 12:55:12 -04:00
- [Pnpm Commands](#pnpm-commands)
- [Linting](#linting)
2020-04-29 11:18:46 -04:00
- [Formatting](#formatting)
- [Building Components](#building-components)
2021-06-07 14:30:21 -07:00
- [Using Components](#using-components)
- [Running tests](#running-tests)
- [Running the dummy application](#running-the-dummy-application)
- [Contributing](#contributing)
- [Building ToC](#building-toc)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
## Add Styles to an App
Add this addon to an Ember application's `devDependencies` as:
2025-04-17 11:36:46 -07:00
`"rose": "workspace:*"`, for applications included in this monorepo. Application's
2025-05-13 21:01:49 -04:00
may then import rose styles by adding `@use 'rose';` to their stylesheets.
## Installation
See monorepo README for installation instructions.
2025-06-03 12:55:12 -04:00
## Pnpm Commands
2025-06-03 12:55:12 -04:00
List of available project commands. `pnpm run <command-name>`
2023-08-17 09:37:39 -07:00
| Command | Description |
| ------------------------ | ----------------------------------------------------------------- |
| build:development | Builds the dummy app in development mode. |
| build | Builds the dummy app for production. |
| lint | Runs all lint commands. |
| lint:fix | Runs automatic lint fixes for all files. |
| lint:hbs | Lints template `hbs` files. |
| lint:hbs:fix | Runs automatic lint fixes for `hbs` files. |
| lint:js | Lints `js` files. |
| lint:js:fix | Runs automatic lint fixes for `js` files. |
| lint:sass | Lints `scss` files. |
| format | Runs all auto-formatters. |
| format:js | Auto-formats `js` files using Prettier. |
| format:hbs | Auto-formats `hbs` files using Prettier. |
| format:sass | Auto-formats `scss` files using Prettier. |
| start | Runs the dummy app local server. |
| test | Runs all tests. |
| test:ember-compatibility | Runs tests across multiple Ember versions with ember-try. |
| precommit | Runs all lint, format and tests. |
| doc:toc | Automatically generates a table of contents for this README file. |
Additional commands in the monorepo package may affect this projects.
## Linting
2025-06-03 12:55:12 -04:00
- `pnpm lint:hbs`
- `pnpm lint:js`
- `pnpm lint:js --fix`
## Formatting
Before submitting your work, be sure to run auto-formatters
2023-08-17 09:37:39 -07:00
(see commands above). This helps to ensure consistency among authors.
2025-06-03 12:55:12 -04:00
- `pnpm format`
2020-04-29 11:18:46 -04:00
## Building Components
To build a new component, start by generating it on the command line with
2023-08-17 09:37:39 -07:00
`ember g component rose/component-name`.
2020-04-29 11:18:46 -04:00
## Running tests
2025-06-03 12:55:12 -04:00
- `pnpm test` – Runs the test suite on the current Ember version
- `pnpm test --server` – Runs the test suite in "watch mode"
- `pnpm test:all` – Runs the test suite against multiple Ember versions
## Running the dummy application
2025-06-03 12:55:12 -04:00
- `pnpm start`
2023-08-17 09:37:39 -07:00
- Visit the dummy application at [http://localhost:4200](http://localhost:4200).
## Contributing
See monorepo README for more contribution instructions.
### Building ToC
To autogenerate a ToC (table of contents) for this README,
2025-06-03 12:55:12 -04:00
run `pnpm doc:toc`. Please update the ToC whenever editing the structure
of README.