Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sramam committed Dec 15, 2019
0 parents commit fb3b17d
Show file tree
Hide file tree
Showing 29 changed files with 9,804 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .coveragebadgesrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"source": "./coverage/coverage-summary.json",
"attribute": "total.statements.pct",
"outputDir": "./.badges"
}
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

root = true

[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2
tab_width = 2
33 changes: 33 additions & 0 deletions .github/workflows/simple-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
push:
branches:
- '*'
- '!gh-pages/*'
- '!releases/*'
name: simple-ci

jobs:
matrix-build:
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
node: [12, 13]
os: [ubuntu-latest, windows-latest, macos-latest]
name: build.${{ matrix.os }}.${{ matrix.node }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: shogo82148/actions-setup-perl@v1
with:
perl-version: '5.30'
- run: perl -V
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: node --version
# npm-check has dependencies with vulnerabilities.
- run: npm i npm-check -g
- run: npm --version
- run: npm ci
- run: npm run build
50 changes: 50 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
dist/**/*test.*
dist/**/test/*

# ignore temporary files
.tmp*
.junk*
.tufan*

# ignore typescript incremental build into
*.tsbuildinfo

# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules
jspm_packages

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history

.DS_Store
8 changes: 8 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
dist/**/*test.*
dist/**/test/*
src
coverage
.*
*travis.yml
tsconfig.json
tslint.json
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@tufan-io:registry=https://npm.pkg.github.com/
59 changes: 59 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Run AVA test",
"program": "${workspaceFolder}/node_modules/ava/profile.js",
"args": [
"${file}",
"--serial"
],
"skipFiles": [
"<node_internals>/**/*.js"
]
},
{
"name": "Launch",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/dist/index.js",
"stopOnEntry": false,
"args": [],
"cwd": "${workspaceRoot}",
"preLaunchTask": null,
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy"
],
"env": {
"NODE_ENV": "development"
},
"externalConsole": false,
"sourceMaps": false,
"outDir": null
},
{
"name": "Attach",
"type": "node",
"request": "attach",
"port": 5858,
"address": "localhost",
"restart": false,
"sourceMaps": false,
"outDir": null,
"localRoot": "${workspaceRoot}",
"remoteRoot": null
},
{
"name": "Attach to Process",
"type": "node",
"request": "attach",
"processId": "${command.PickProcess}",
"port": 5858,
"sourceMaps": false,
"outDir": null
}
]
}
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Place your settings in this file to overwrite default and user settings.
{
// since vscode uses a different version of typescript than we do in this project.
// https://github.com/Microsoft/TypeScript/issues/9539
"typescript.tsdk": "./node_modules/typescript/lib",
"npm.runInTerminal": false,
"editor.rulers": [80, 120],
"markdownlint.config": {
"MD029": {"style": "ordered"}
}
}
22 changes: 22 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "npm",
"isShellCommand": true,
"showOutput": "always",
"suppressTaskName": true,
"tasks": [{
"taskName": "install",
"args": ["install"]
}, {
"taskName": "update",
"args": ["update"]
}, {
"taskName": "test",
"args": ["run", "test"]
}, {
"taskName": "build",
"args": ["run", "build"]
}]
}
Empty file added CHANGELOG.md
Empty file.
Loading

0 comments on commit fb3b17d

Please sign in to comment.