Skip to content

Commit 9d8b2a1

Browse files
authored
Migrate to Typescript (#123)
* Migrate to Typescript * Update build workflow
1 parent b063bbd commit 9d8b2a1

File tree

15 files changed

+2812
-1447
lines changed

15 files changed

+2812
-1447
lines changed

.babelrc

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

.eslintrc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"env": {
3+
"node": true,
4+
"browser": true
5+
},
6+
"extends": ["prettier", "plugin:@typescript-eslint/recommended"],
7+
"parser": "@typescript-eslint/parser",
8+
"parserOptions": {
9+
"project": "tsconfig.json",
10+
"sourceType": "module"
11+
},
12+
"plugins": ["@typescript-eslint"],
13+
"ignorePatterns": ["*.js", "*.mjs"],
14+
"rules": {}
15+
}

.github/workflows/build.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
1-
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3-
41
name: Build
52

6-
on:
7-
push:
8-
branches: [master]
9-
pull_request:
10-
branches: [master]
3+
on: [push, pull_request]
114

125
jobs:
136
build:
147
runs-on: ubuntu-latest
158

169
strategy:
1710
matrix:
18-
node-version: [12.x, 14.x, 16.x]
11+
node-version: [18.x]
1912

2013
steps:
2114
- uses: actions/checkout@v3
@@ -24,4 +17,5 @@ jobs:
2417
with:
2518
node-version: ${{ matrix.node-version }}
2619
- run: yarn
20+
- run: yarn lint
2721
- run: yarn build

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ node_modules/
1616
.Trashes
1717
ehthumbs.db
1818
Thumbs.db
19+
20+
dist

.npmignore

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ yarn-debug.log*
66
yarn-error.log*
77

88
# Dependency directory
9-
node_modules/
9+
node_modules
1010

1111
# Misc
1212
.DS_Store
@@ -17,26 +17,27 @@ node_modules/
1717
ehthumbs.db
1818
Thumbs.db
1919

20-
# EditorConfig
20+
# Config folders and files
21+
.github
22+
_config.yml
23+
_.config.yml
24+
.codebeatsettings
2125
.editorconfig
22-
23-
# Git
24-
.gitignore
26+
.eslintrc
2527
.gitattributes
26-
27-
# CI
28-
.travis.yml
29-
30-
# lock files
31-
yarn.lock
32-
33-
# Prettier
34-
.prettierrc
28+
.gitignore
29+
.nvmrc
3530
.prettierignore
36-
37-
# Config files
38-
.babelrc
39-
.github
31+
.prettierrc
32+
.stylelintignore
33+
.stylelintrc
34+
.travis.yml
4035
.whitesource
4136
renovate.json
42-
webpack.config.js
37+
tsconfig.json
38+
tslint.json
39+
yarn.lock
40+
41+
!dist
42+
demo
43+
rollup.config.mjs

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ node_js:
55
install:
66
- yarn
77
script:
8+
- yarn lint
89
- yarn build

.whitesource

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"checkRunSettings": {
3-
"vulnerableCheckRunConclusionLevel": "success"
4-
},
5-
"issueSettings": {
6-
"minSeverityLevel": "LOW"
7-
}
8-
}
2+
"generalSettings": {
3+
"shouldScanRepo": true
4+
},
5+
"checkRunSettings": {
6+
"vulnerableCheckRunConclusionLevel": "success"
7+
}
8+
}

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
[![GitHub release](https://img.shields.io/github/release/three11/extract-query-arg.svg)](https://github.com/three11/extract-query-arg/releases/latest)
22
[![GitHub issues](https://img.shields.io/github/issues/three11/extract-query-arg.svg)](https://github.com/three11/extract-query-arg/issues)
33
[![GitHub last commit](https://img.shields.io/github/last-commit/three11/extract-query-arg.svg)](https://github.com/three11/extract-query-arg/commits/master)
4-
[![Github file size](https://img.shields.io/github/size/three11/extract-query-arg/dist/extract-query-arg.min.js.svg)](https://github.com/three11/extract-query-arg/)
54
[![Build Status](https://travis-ci.org/three11/extract-query-arg.svg?branch=master)](https://travis-ci.org/three11/extract-query-arg)
65
[![npm](https://img.shields.io/npm/dt/@three11/extract-query-arg.svg)](https://www.npmjs.com/package/@three11/extract-query-arg)
76
[![npm](https://img.shields.io/npm/v/@three11/extract-query-arg.svg)](https://www.npmjs.com/package/@three11/extract-query-arg)
87
[![Analytics](https://ga-beacon.appspot.com/UA-83446952-1/github.com/three11/extract-query-arg/README.md)](https://github.com/three11/extract-query-arg/)
98

109
# Extract Query Argument
1110

12-
A vanilla ES2017 module for extracting query arguments from url.
11+
> Extract a query string from a given URL
1312
1413
## Install
1514

_.config.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
plugins:
2+
- jekyll-relative-links
3+
relative_links:
4+
enabled: true
5+
collections: true
6+
include:
7+
- CONTRIBUTING.md
8+
- README.md
9+
- LICENSE.md
10+
- COPYING.md
11+
- CODE_OF_CONDUCT.md
12+
- CONTRIBUTING.md
13+
- ISSUE_TEMPLATE.md
14+
- PULL_REQUEST_TEMPLATE.md

dist/extract-query-arg.js

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

0 commit comments

Comments
 (0)