Skip to content

Commit

Permalink
chore: add prettier config to repo (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
knownasilya authored Oct 14, 2022
1 parent 85b2cc4 commit ac7bffa
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 36 deletions.
21 changes: 21 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# unconventional js
/blueprints/*/files/
/vendor/

# compiled output
/dist/
/tmp/

# dependencies
/bower_components/
/node_modules/

# misc
/coverage/
!.*
.eslintcache

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/package.json.ember-try
5 changes: 5 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

module.exports = {
singleQuote: true,
};
13 changes: 6 additions & 7 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ body size, race, ethnicity, age, religion, or nationality.

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery
* Personal attacks
* Trolling or insulting/derogatory comments
* Public or private harassment
* Publishing other's private information, such as physical or electronic
- The use of sexualized language or imagery
- Personal attacks
- Trolling or insulting/derogatory comments
- Public or private harassment
- Publishing other's private information, such as physical or electronic
addresses, without explicit permission
* Other unethical or unprofessional conduct
- Other unethical or unprofessional conduct

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
Expand All @@ -41,7 +41,6 @@ is deemed necessary and appropriate to the circumstances. Maintainers are
obligated to maintain confidentiality with regard to the reporter of an
incident.


This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 1.3.0, available at
[http://contributor-covenant.org/version/1/3/0/][version]
Expand Down
26 changes: 13 additions & 13 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,32 @@

This repo is divided into multiple packages using Yarn workspaces:

- `addon` is the actual ember-page-title addon
- `test-app` is its test suite
- `docs` is the documentation/marketing site
- `addon` is the actual ember-page-title addon
- `test-app` is its test suite
- `docs` is the documentation/marketing site

## Installation

* `git clone <repository-url>`
* `cd ember-page-title`
* `yarn install`
- `git clone <repository-url>`
- `cd ember-page-title`
- `yarn install`

## Linting

Inside any of the packages you can run:

* `yarn lint`
* `yarn lint:fix`
- `yarn lint`
- `yarn lint:fix`

## Running tests

* `cd test-app && ember test` – Runs the test suite on the current Ember version
* `cd test-app && ember test --server` – Runs the test suite in "watch mode"
* `cd test-app & ember try:each` – Runs the test suite against multiple Ember versions
- `cd test-app && ember test` – Runs the test suite on the current Ember version
- `cd test-app && ember test --server` – Runs the test suite in "watch mode"
- `cd test-app & ember try:each` – Runs the test suite against multiple Ember versions

## Running the test application

* `cd test-app && ember serve`
* Visit the test application at [http://localhost:4200](http://localhost:4200).
- `cd test-app && ember serve`
- Visit the test application at [http://localhost:4200](http://localhost:4200).

For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).
5 changes: 3 additions & 2 deletions addon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,16 @@ export default class PageTitleService extends EmberPageTitleService {
```

### Testing

`assert` the page `title` with the supplied `getPageTitle` test helper:

```javascript
import { getPageTitle } from 'ember-page-title/test-support';

module('Acceptance | Register Page', function(hooks) {
module('Acceptance | Register Page', function (hooks) {
setupApplicationTest(hooks);

test('visiting /register', async function(assert) {
test('visiting /register', async function (assert) {
const registerURL = '/register';
await visit(registerURL);

Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"private": true,
"workspaces": [
"addon",
"docs",
"test-app"
],
"scripts": {
"prepare": "cd addon && yarn build"
},
"volta": {
"node": "12.22.10",
"yarn": "1.22.17"
}
}
"private": true,
"workspaces": [
"addon",
"docs",
"test-app"
],
"scripts": {
"prepare": "cd addon && yarn build"
},
"volta": {
"node": "12.22.10",
"yarn": "1.22.17"
}
}

0 comments on commit ac7bffa

Please sign in to comment.