Skip to content

Commit c93656d

Browse files
committed
Prettier format
1 parent bc53251 commit c93656d

File tree

4 files changed

+44
-34
lines changed

4 files changed

+44
-34
lines changed

CONTRIBUTING.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@
22

33
## Installation
44

5-
* `git clone https://github.com/kpfefferle/ember-octicons.git`
6-
* `cd ember-octicons`
7-
* `yarn`
5+
- `git clone https://github.com/kpfefferle/ember-octicons.git`
6+
- `cd ember-octicons`
7+
- `yarn`
88

99
### Linting
1010

11-
* `yarn lint`
12-
* `yarn lint:fix`
11+
- `yarn lint`
12+
- `yarn lint:fix`
1313

1414
## Running tests
1515

16-
* `yarn test` – Runs the test suite on the current Ember version
17-
* `yarn test:ember -- --server` – Runs the test suite in "watch mode"
18-
* `yarn test:ember-compatibility` – Runs the test suite against multiple Ember versions
16+
- `yarn test` – Runs the test suite on the current Ember version
17+
- `yarn test:ember -- --server` – Runs the test suite in "watch mode"
18+
- `yarn test:ember-compatibility` – Runs the test suite against multiple Ember versions
1919

2020
## Running the dummy application
2121

22-
* `yarn start`
23-
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).
22+
- `yarn start`
23+
- Visit the dummy application at [http://localhost:4200](http://localhost:4200).
2424

2525
For more information on using ember-cli, visit [https://cli.emberjs.com/release/](https://cli.emberjs.com/release/).

README.md

+22-22
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ To import Octicon SVGs as build time assets, add an `octicons` configuration obj
2222

2323
```js
2424
// ember-cli-build.js
25-
let app = new EmberAddon(defaults, {
26-
octicons: {
27-
icons: ['alert', 'bell', 'mark-github', /* etc... */]
28-
}
29-
});
25+
let app = new EmberAddon(defaults, {
26+
octicons: {
27+
icons: ["alert", "bell", "mark-github" /* etc... */],
28+
},
29+
});
3030
```
3131

3232
Now the SVG file can be used like any other asset:
@@ -39,12 +39,12 @@ By default, SVG files will be imported into the `images/svg/octicons` directory.
3939

4040
```js
4141
// ember-cli-build.js
42-
let app = new EmberAddon(defaults, {
43-
octicons: {
44-
destDir: 'some/other/folder',
45-
icons: ['alert', 'bell', 'mark-github', /* etc... */]
46-
}
47-
});
42+
let app = new EmberAddon(defaults, {
43+
octicons: {
44+
destDir: "some/other/folder",
45+
icons: ["alert", "bell", "mark-github" /* etc... */],
46+
},
47+
});
4848
```
4949

5050
### Using Octicons with Ember SVGJar
@@ -53,17 +53,17 @@ If you would rather use [ember-svg-jar](https://github.com/ivanvotti/ember-svg-j
5353

5454
```js
5555
// ember-cli-build.js
56-
let app = new EmberAddon(defaults, {
57-
octicons: {
58-
icons: null // don't import any SVG files at build time
59-
},
60-
svgJar: {
61-
sourceDirs: [
62-
'public', // default SVGJar lookup directory
63-
'node_modules/@primer/octicons/build/svg'
64-
]
65-
}
66-
});
56+
let app = new EmberAddon(defaults, {
57+
octicons: {
58+
icons: null, // don't import any SVG files at build time
59+
},
60+
svgJar: {
61+
sourceDirs: [
62+
"public", // default SVGJar lookup directory
63+
"node_modules/@primer/octicons/build/svg",
64+
],
65+
},
66+
});
6767
```
6868

6969
And then use Ember SVGJar's `{{svg-jar}}` helper:

jsconfig.json

+11-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1-
{"compilerOptions":{"target":"es6","experimentalDecorators":true},"exclude":["node_modules","bower_components","tmp","vendor",".git","dist"]}
1+
{
2+
"compilerOptions": { "target": "es6", "experimentalDecorators": true },
3+
"exclude": [
4+
"node_modules",
5+
"bower_components",
6+
"tmp",
7+
"vendor",
8+
".git",
9+
"dist"
10+
]
11+
}

tests/dummy/app/templates/application.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313

1414
<h2>SVG Jar Embed</h2>
1515

16-
{{svg-jar "mark-github-16" class="octicon"}}
16+
{{svg-jar "mark-github-16" class="octicon"}}

0 commit comments

Comments
 (0)