Skip to content

Commit c484b6a

Browse files
committed
refactor: to ts and build
1 parent 5296c3f commit c484b6a

29 files changed

+5780
-12945
lines changed

.c8rc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"reporter": ["lcov", "text"],
3+
"extension": [".ts"]
4+
}

.clintonrc.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"ignores": [
3+
"test/**",
4+
"tmp/**",
5+
"lib/**",
6+
"*.{html,jpg}"
7+
],
8+
"rules": {
9+
"pkg-main": "off",
10+
"xo": "off",
11+
"use-travis": "off",
12+
"ava": "off"
13+
}
14+
}

.editorconfig

+3-5
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,14 @@ indent_style = space
55
indent_size = 4
66
end_of_line = lf
77
charset = utf-8
8+
quote_type = single
89
trim_trailing_whitespace = true
910
insert_final_newline = true
1011

11-
[*.{json,yml,jade,pss,css,html,js}]
12+
[{*.json,*.yaml,*.yml,*.jade,*.pss,*.css,*.js,*.md,.*,*.ts}]
1213
indent_size = 2
1314

14-
[changelog.md]
15-
insert_final_newline = false
16-
17-
[*.html]
15+
[{changelog.md,.*}]
1816
insert_final_newline = false
1917

2018
[*.md]

.github/workflows/nodejs.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Actions Status
2+
on:
3+
pull_request:
4+
types: [opened, synchronize]
5+
branches:
6+
- master
7+
env:
8+
CI: true
9+
10+
jobs:
11+
run:
12+
name: Node ${{ matrix.node }} on ${{ matrix.os }}
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
node: [12, 14, 16]
19+
os: [ubuntu-latest]
20+
21+
steps:
22+
- name: Clone repository
23+
uses: actions/checkout@v2
24+
25+
- name: Set Node.js version
26+
uses: actions/setup-node@v1
27+
with:
28+
node-version: ${{ matrix.node }}
29+
30+
- name: Install npm dependencies
31+
run: npm ci
32+
33+
- name: Run tests
34+
run: npm run test
35+
36+
- name: Run Coveralls
37+
uses: coverallsapp/github-action@master
38+
with:
39+
github-token: "${{ secrets.GITHUB_TOKEN }}"

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
node_modules
2-
lib
32
coverage
43
.nyc_output
54
npm-debug.log
6-
dist

.huskyrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"hooks": {
3+
"pre-push": "npm t",
4+
"pre-commit": "clinton && lint-staged",
5+
"commit-msg": "commitlint --extends=@commitlint/config-angular -e"
6+
}
7+
}

.lintstagedrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"src/*.ts": "tslint -c tslint.json"
3+
}

.npmignore

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
node_modules
22
src
33
.gitignore
4-
.travis.yml
54
coverage
6-
.nyc_output
75
npm-debug.log

.travis.yml

-9
This file was deleted.

appveyor.yml

-18
This file was deleted.

ava.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const config = {
2+
verbose: true,
3+
extensions: ['ts'],
4+
require: ['esm', 'esbuild-register', './test/helpers/setup-browser-env.js']
5+
};
6+
7+
export default config;

dist/index.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { Directive } from 'vue';
2+
3+
declare const RestrictedInputDirective: Directive;
4+
5+
export { RestrictedInputDirective as VueRestrictedInputDirective };

dist/index.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)