Skip to content
This repository was archived by the owner on Feb 5, 2023. It is now read-only.

Commit 863de38

Browse files
committed
chore: Add base files
1 parent e814135 commit 863de38

File tree

12 files changed

+2040
-0
lines changed

12 files changed

+2040
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.github/main.workflow

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
workflow "Build, lint and test" {
2+
on = "push"
3+
resolves = ["Test", "Lint"]
4+
}
5+
6+
action "Build" {
7+
uses = "docker://node:10"
8+
runs = "yarn"
9+
}
10+
11+
action "Test" {
12+
uses = "docker://node:10"
13+
needs = ["Build"]
14+
runs = "yarn"
15+
args = "test"
16+
}
17+
18+
action "Lint" {
19+
uses = "docker://node:10"
20+
needs = ["Build"]
21+
runs = "yarn"
22+
args = "lint"
23+
}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules/
2+
dist/
3+
*.log
4+
spec/.temp

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
registry=https://registry.npmjs.org/
2+
save-exact=true

.prettierrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"arrowParens": "avoid",
3+
"bracketSpacing": false,
4+
"printWidth": 120,
5+
"proseWrap": "never",
6+
"requirePragma": false,
7+
"semi": true,
8+
"singleQuote": true,
9+
"tabWidth": 2,
10+
"trailingComma": "es5",
11+
"useTabs": false
12+
}

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# crates-updater [![npm version](https://img.shields.io/npm/v/crates-updater.svg?style=flat)](https://www.npmjs.com/package/crates-updater) [![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=ffflorian/crates-updater)](https://dependabot.com)
2+
3+
Check your [Rust packages](https://crates.io) for updates.
4+
5+
## Installation
6+
7+
Run `yarn global add crates-updater` or `npm i -g crates-updater`.

package.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"author": "Florian Keller <github@floriankeller.de>",
3+
"bin": {
4+
"update-crate": "dist/cli.js",
5+
"update-crates": "dist/cli.js"
6+
},
7+
"dependencies": {
8+
"libraries.io": "1.2.2"
9+
},
10+
"description": "Check your Rust packages for updates.",
11+
"devDependencies": {
12+
"@types/node": "11.10.4",
13+
"husky": "1.3.1",
14+
"lint-staged": "8.1.5",
15+
"prettier": "1.16.4",
16+
"rimraf": "2.6.3",
17+
"tslint": "5.13.1",
18+
"tslint-config-prettier": "1.18.0",
19+
"tslint-plugin-prettier": "2.0.1",
20+
"typescript": "3.3.3333"
21+
},
22+
"files": [
23+
"dist"
24+
],
25+
"husky": {
26+
"hooks": {
27+
"pre-commit": "lint-staged"
28+
}
29+
},
30+
"keywords": [
31+
"typescript",
32+
"librariesio",
33+
"cratesio",
34+
"rust",
35+
"cli"
36+
],
37+
"license": "MIT",
38+
"lint-staged": {
39+
"*.ts": [
40+
"tslint --config tslint.json --project tsconfig.json --fix",
41+
"git add"
42+
],
43+
"*.{json,md,css}": [
44+
"prettier --write",
45+
"git add"
46+
]
47+
},
48+
"main": "dist/index.js",
49+
"name": "crates-updater",
50+
"repository": "https://github.com/ffflorian/crates-updater",
51+
"scripts": {
52+
"build": "tsc",
53+
"clean": "rimraf dist",
54+
"dist": "yarn clean && yarn build",
55+
"lint": "yarn lint:ts && yarn lint:other",
56+
"lint:other": "yarn prettier --list-different",
57+
"lint:ts": "tslint --config tslint.json --project tsconfig.json \"**/*.ts\"",
58+
"prettier": "prettier --ignore-path .gitignore --write \"**/*.ts\"",
59+
"test": "exit 0"
60+
},
61+
"version": "0.0.1"
62+
}

src/cli.ts

Whitespace-only changes.

src/index.ts

Whitespace-only changes.

tsconfig.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"compilerOptions": {
3+
"declaration": true,
4+
"lib": ["dom", "es2018"],
5+
"module": "commonjs",
6+
"moduleResolution": "node",
7+
"noEmitOnError": true,
8+
"noImplicitReturns": true,
9+
"noUnusedLocals": true,
10+
"outDir": "dist",
11+
"rootDir": "src",
12+
"sourceMap": true,
13+
"strict": true,
14+
"target": "es5"
15+
},
16+
"exclude": ["dist", "node_modules", "spec"]
17+
}

0 commit comments

Comments
 (0)