Skip to content

Commit 2cd0a61

Browse files
committed
refactor(client): remove unneeded scripts
1 parent cf68901 commit 2cd0a61

File tree

5 files changed

+10
-108
lines changed

5 files changed

+10
-108
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ A `NodeJS` client to get languages GitHub knows about for [`Advanced Search`](ht
1212

1313
`GitHub` maintains [a `linguist` repository](https://github.com/github/linguist) that contains [a `languages.yml` file](https://raw.githubusercontent.com/github/linguist/master/lib/linguist/languages.yml) that seems to represent the set of languages that `GitHub` knows about.
1414

15-
I have [a script](~/scripts/getLanguages.js) that makes a request to [the `raw.githubusercontent` API for this file](https://raw.githubusercontent.com/github/linguist/master/lib/linguist/languages.yml), converts the `YAML` to `JSON`, `camelCases` fields (and adds in some default values), and writes the output to [the `src/languages.json`](src/languages.json) file.
15+
I convert this `languages.yml` file to [a JSON file](~/src/languages.json). <sup>[1](#languages-job-footnote)</sup>
1616

1717
I then read from this file when instantiating the `GitHubLanguagesClient`.
1818

@@ -105,3 +105,11 @@ const matchingLanguages = GitHubLanguagesClient.get('JavaScript');
105105
// searchable: 'true' },
106106
// etc., etc.
107107
```
108+
109+
## Footnotes
110+
111+
<ul>
112+
<li>
113+
<a name='languages-job-footnote'><sup>1</sup>I have [a Travis CI job](https://github.com/jaebradley/github-languages-watcher) that runs daily and opens PRs against this repository if it detects changes in the `languages.yml` file.</a>
114+
</li>
115+
</ul>

package-lock.json

Lines changed: 0 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,17 @@
4747
"@commitlint/config-angular": "^6.1.3",
4848
"@commitlint/prompt": "^6.1.3",
4949
"@commitlint/prompt-cli": "^6.1.3",
50-
"axios": "^0.18.0",
5150
"babel-core": "^7.0.0-bridge.0",
5251
"babel-plugin-add-module-exports": "^0.2.1",
53-
"camelize": "^1.0.0",
5452
"codecov": "^3.0.0",
5553
"es-check": "^2.0.3",
5654
"eslint": "^4.19.1",
5755
"eslint-config-airbnb-base": "^12.1.0",
5856
"eslint-plugin-import": "^2.10.0",
59-
"fs-extra": "^5.0.0",
6057
"husky": "^0.14.3",
6158
"jest": "^22.4.3",
6259
"semantic-release": "^15.1.5",
63-
"travis-deploy-once": "^4.4.1",
64-
"yamljs": "^0.3.0"
60+
"travis-deploy-once": "^4.4.1"
6561
},
6662
"dependencies": {
6763
"fuse.js": "^3.2.0"

scripts/.eslintrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

scripts/getLanguages.js

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)