Skip to content

Commit 687853d

Browse files
prettyfy all files
1 parent 671cfcd commit 687853d

File tree

119 files changed

+1136
-806
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+1136
-806
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
1-
## *Who* is the bug affecting?
1+
## _Who_ is the bug affecting?
2+
23
<!-- Ex. API consumers, component creators, etc. -->
34

4-
## *What* is affected by this bug?
5+
## _What_ is affected by this bug?
6+
57
<!-- Ex. node client, api, browser client, etc. -->
68

7-
## *When* does this occur?
9+
## _When_ does this occur?
10+
811
<!-- Ex. After rendering, when saving a file, etc. -->
912

10-
## *Where* on the platform does it happen?
13+
## _Where_ on the platform does it happen?
14+
1115
<!-- Ex. In the api, cli, clients, etc. -->
1216

17+
## _How_ do we replicate the issue?
1318

14-
## *How* do we replicate the issue?
1519
<!-- Please be specific as possible. Use dashes (-) or numbers (1.) to create a list of steps -->
1620

17-
1821
## Expected behavior (i.e. solution)
22+
1923
<!-- What should have happened? -->
2024

2125
## What version of OC, Node.js and OS are you using?
26+
2227
<!-- For instance [email protected], Node 8.9.0, Linux -->
2328

24-
## Other Comments
29+
## Other Comments

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ Demonstrate the code is solid. Example: The exact commands you ran and their out
1818

1919
**Closing issues**
2020

21-
Put `closes #XXXX` in your comment to auto-close the issue that your PR fixes (if such).
21+
Put `closes #XXXX` in your comment to auto-close the issue that your PR fixes (if such).

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ language: node_js
22

33
matrix:
44
include:
5-
- node_js: "12"
6-
- node_js: "14"
7-
- node_js: "16"
5+
- node_js: '12'
6+
- node_js: '14'
7+
- node_js: '16'
88

99
notifications:
10-
email: false
10+
email: false

CHANGELOG.md

Lines changed: 279 additions & 7 deletions
Large diffs are not rendered by default.

CONTRIBUTING.md

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Contributing guidelines
2-
=======================
1+
# Contributing guidelines
32

43
Contributes are more than welcome!
54

@@ -14,54 +13,56 @@ If you want to send a Pull Request, ensure you join the conversation first on th
1413
When preparing a pull request, ensure all the tests pass locally running `npm test`. If you have write/admin access, do it on a new branch on the upstream opencomponents repo. This allows all the test to run smoothly.
1514

1615
A couple of coding rules:
16+
1717
- never play with git history
1818
- don't auto-merge
1919
- merge only when tests are all green
2020

2121
### Publishing new version to npm
2222

2323
You need to be enabled for doing this.
24-
* `master` should be all green. If not, make it green first.
25-
* git checkout master
26-
* git pull --tags
27-
* Run `npm run <versionType>` for new version.
28-
* While on 0.X.X (not stable):
29-
* `npm run publish-patch` for bugfixes, new features
30-
* `npm run publish-minor` for all breaking changes
31-
* `npm run publish-major` NOT YET. Still need to define milestones for 1.0.0.
24+
25+
- `master` should be all green. If not, make it green first.
26+
- git checkout master
27+
- git pull --tags
28+
- Run `npm run <versionType>` for new version.
29+
- While on 0.X.X (not stable):
30+
- `npm run publish-patch` for bugfixes, new features
31+
- `npm run publish-minor` for all breaking changes
32+
- `npm run publish-major` NOT YET. Still need to define milestones for 1.0.0.
3233

3334
## Code of Conduct
3435

3536
This Code of Conduct is adapted from [Rust's wonderful
3637
CoC](http://www.rust-lang.org/conduct.html).
3738

38-
* We are committed to providing a friendly, safe and welcoming
39+
- We are committed to providing a friendly, safe and welcoming
3940
environment for all, regardless of gender, sexual orientation,
4041
disability, ethnicity, religion, or similar personal characteristic.
41-
* Please avoid using overtly sexual nicknames or other nicknames that
42+
- Please avoid using overtly sexual nicknames or other nicknames that
4243
might detract from a friendly, safe and welcoming environment for
4344
all.
44-
* Please be kind and courteous. There's no need to be mean or rude.
45-
* Respect that people have differences of opinion and that every
45+
- Please be kind and courteous. There's no need to be mean or rude.
46+
- Respect that people have differences of opinion and that every
4647
design or implementation choice carries a trade-off and numerous
4748
costs. There is seldom a right answer.
48-
* Please keep unstructured critique to a minimum. If you have solid
49+
- Please keep unstructured critique to a minimum. If you have solid
4950
ideas you want to experiment with, make a fork and see how it works.
50-
* We will exclude you from interaction if you insult, demean or harass
51-
anyone. That is not welcome behavior. We interpret the term
51+
- We will exclude you from interaction if you insult, demean or harass
52+
anyone. That is not welcome behavior. We interpret the term
5253
"harassment" as including the definition in the [Citizen Code of
5354
Conduct](http://citizencodeofconduct.org/); if you have any lack of
5455
clarity about what might be included in that concept, please read
5556
their definition. In particular, we don't tolerate behavior that
5657
excludes people in socially marginalized groups.
57-
* Private harassment is also unacceptable. No matter who you are, if
58+
- Private harassment is also unacceptable. No matter who you are, if
5859
you feel you have been or are being harassed or made uncomfortable
5960
by a community member, please contact us at [email protected] with a capture (log, photo, email) of
60-
the harassment if possible. Whether you're a regular contributor or
61+
the harassment if possible. Whether you're a regular contributor or
6162
a newcomer, we care about making this community a safe place for you
6263
and we've got your back.
63-
* Likewise any spamming, trolling, flaming, baiting or other
64+
- Likewise any spamming, trolling, flaming, baiting or other
6465
attention-stealing behavior is not welcome.
65-
* Avoid the use of personal pronouns in code comments or
66+
- Avoid the use of personal pronouns in code comments or
6667
documentation. There is no need to address persons when explaining
6768
code (e.g. "When the developer")

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
![oc](https://raw.githubusercontent.com/opencomponents/oc/master/logo-type.png)
2-
=============
1+
# ![oc](https://raw.githubusercontent.com/opencomponents/oc/master/logo-type.png)
32

43
OpenComponents, **serverless in the front-end world**.
54

65
OpenComponents is an open-source framework that allows fast-moving teams to easily build and deploy front-end components. It abstracts away complicated infrastructure and leaves developers with very simple, but powerful building blocks that handle scale transparently.
76

87
#### How does it work?
98

10-
First, **you create your component**. It can contain logic to get some data (using node.js) and then the view, including css and js. It can be what you want, including *React* or *Angular* components or whatever you like.
9+
First, **you create your component**. It can contain logic to get some data (using node.js) and then the view, including css and js. It can be what you want, including _React_ or _Angular_ components or whatever you like.
1110

1211
Then, **you publish it** to the OpenComponents registry and you wait a couple of seconds while the registry prepares your stuff to be production-ready.
1312

@@ -39,16 +38,15 @@ Disclaimer: This project is still under heavy development and the API is likely
3938

4039
[![linux build](https://img.shields.io/travis/opencomponents/oc/master.svg?label=linux+build)](http://travis-ci.org/opencomponents/oc)
4140

42-
| Node 8| Node 9| Node 10|
43-
|-------|-------|--------|
41+
| Node 8 | Node 9 | Node 10 |
42+
| ---------------- | ---------------- | ----------------- |
4443
| [![Node8][1]][5] | [![Node9][2]][5] | [![Node10][3]][5] |
4544

4645
[1]: https://travis-matrix-badges.herokuapp.com/repos/opencomponents/oc/branches/master/1
4746
[2]: https://travis-matrix-badges.herokuapp.com/repos/opencomponents/oc/branches/master/2
4847
[3]: https://travis-matrix-badges.herokuapp.com/repos/opencomponents/oc/branches/master/3
4948
[5]: https://travis-ci.org/opencomponents/oc
5049

51-
5250
[![windows build](https://img.shields.io/appveyor/ci/matteofigus/oc/master.svg?label=windows+build)](https://ci.appveyor.com/project/matteofigus/oc)
5351

5452
## License

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ branches:
55
- master
66

77
# build version format
8-
version: "{build}"
8+
version: '{build}'
99

1010
# what combinations to test
1111
environment:

dependencies.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
version: 2
22
dependencies:
3-
43
- type: js
54
path: /
65
manifest_updates:
76
filters:
8-
- name: ".*"
9-
versions: "Y.Y.Y"
7+
- name: '.*'
8+
versions: 'Y.Y.Y'

package.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"lint-staged": {
2424
"*.js": [
25-
"prettier-eslint --single-quote --write"
25+
"prettier --single-quote --write"
2626
]
2727
},
2828
"engines": {
@@ -44,43 +44,43 @@
4444
"oc"
4545
],
4646
"devDependencies": {
47-
"@types/accept-language-parser": "^1.5.2",
48-
"@types/async": "^3.2.8",
47+
"@types/accept-language-parser": "1.5.2",
48+
"@types/async": "3.2.8",
4949
"@types/colors": "1.2.1",
50-
"@types/cross-spawn": "^6.0.2",
50+
"@types/cross-spawn": "6.0.2",
5151
"@types/errorhandler": "1.5.0",
5252
"@types/express": "4.17.13",
53-
"@types/fs-extra": "^9.0.13",
54-
"@types/livereload": "^0.9.1",
55-
"@types/lodash": "^4.14.175",
53+
"@types/fs-extra": "9.0.13",
54+
"@types/livereload": "0.9.1",
55+
"@types/lodash": "4.14.175",
5656
"@types/morgan": "1.9.3",
5757
"@types/multer": "1.4.7",
58-
"@types/node": "16.10.1",
59-
"@types/parse-author": "^2.0.1",
58+
"@types/node": "16.10.3",
59+
"@types/parse-author": "2.0.1",
6060
"@types/read": "0.0.29",
61-
"@types/response-time": "^2.3.5",
61+
"@types/response-time": "2.3.5",
6262
"@types/semver": "7.3.8",
63-
"@types/targz": "^1.0.1",
63+
"@types/targz": "1.0.1",
6464
"@types/yargs": "17.0.3",
65-
"@typescript-eslint/eslint-plugin": "4.32.0",
66-
"@typescript-eslint/parser": "4.32.0",
65+
"@typescript-eslint/eslint-plugin": "5.0.0",
66+
"@typescript-eslint/parser": "5.0.0",
6767
"chai": "4.3.4",
6868
"chalk": "4.1.2",
69-
"eslint": "^7.32.0",
70-
"eslint-config-prettier": "^8.3.0",
71-
"eslint-plugin-prettier": "^4.0.0",
69+
"eslint": "8.0.0",
70+
"eslint-config-prettier": "8.3.0",
71+
"eslint-plugin-prettier": "4.0.0",
7272
"glob": "7.2.0",
7373
"husky": "7.0.2",
7474
"injectr": "0.5.1",
75-
"lint-staged": "11.1.2",
75+
"lint-staged": "11.2.3",
7676
"minimist": "1.2.5",
7777
"mocha": "9.1.2",
7878
"node-emoji": "1.11.0",
79-
"prettier-eslint-cli": "5.0.1",
79+
"prettier": "2.4.1",
8080
"semver-sort": "0.0.4",
81-
"simple-git": "2.45.1",
81+
"simple-git": "2.46.0",
8282
"sinon": "11.1.2",
83-
"ts-node": "10.2.1",
83+
"ts-node": "10.3.0",
8484
"typescript": "4.4.3"
8585
},
8686
"dependencies": {
@@ -106,8 +106,8 @@
106106
"nice-cache": "0.0.5",
107107
"oc-client": "4.0.0",
108108
"oc-client-browser": "1.5.4",
109-
"oc-empty-response-handler": "1.0.1",
110-
"oc-get-unix-utc-timestamp": "1.0.3",
109+
"oc-empty-response-handler": "1.0.2",
110+
"oc-get-unix-utc-timestamp": "1.0.5",
111111
"oc-s3-storage-adapter": "1.1.6",
112112
"oc-storage-adapters-utils": "1.0.4",
113113
"oc-template-es6": "1.0.5",
@@ -116,7 +116,7 @@
116116
"oc-template-handlebars-compiler": "6.2.17",
117117
"oc-template-jade": "7.0.4",
118118
"oc-template-jade-compiler": "7.0.5",
119-
"open": "8.2.1",
119+
"open": "8.3.0",
120120
"parse-author": "2.0.0",
121121
"read": "1.0.7",
122122
"require-package-name": "2.0.1",

src/cli/commands.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ export default {
1818
dev: {
1919
cmd: 'dev <dirPath> [port] [baseUrl]',
2020
example: {
21-
cmd:
22-
'$0 dev ../all-components 3001 127.0.0.1:3001 --fallbackRegistryUrl=http://anotherhost:anotherport/'
21+
cmd: '$0 dev ../all-components 3001 127.0.0.1:3001 --fallbackRegistryUrl=http://anotherhost:anotherport/'
2322
},
2423
description:
2524
'Run a local oc test registry in order to develop and test components',
@@ -83,8 +82,7 @@ export default {
8382
preview: {
8483
cmd: 'preview <componentHref>',
8584
example: {
86-
cmd:
87-
'$0 preview "http://localhost:3000/my-new-component/1.0.0/?param1=hello&name=Arthur"'
85+
cmd: '$0 preview "http://localhost:3000/my-new-component/1.0.0/?param1=hello&name=Arthur"'
8886
},
8987
description: 'Run a test page consuming a component',
9088
usage: 'Usage: $0 preview <componentHref>'

0 commit comments

Comments
 (0)