Skip to content

Commit a1f45b0

Browse files
Initial commit of tooling config files
0 parents  commit a1f45b0

11 files changed

+287
-0
lines changed

.editorconfig

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Editor config
2+
# http://EditorConfig.org
3+
4+
# This EditorConfig overrides any parent EditorConfigs
5+
root = true
6+
7+
# Default rules applied to all file types
8+
[*]
9+
10+
# No trailing spaces, newline at EOF
11+
charset = utf-8
12+
trim_trailing_whitespace = true
13+
insert_final_newline = true
14+
end_of_line = lf
15+
16+
# 2 space indentation
17+
indent_style = space
18+
indent_size = 2
19+
20+
# JavaScript-specific settings
21+
[*.{js,ts}]
22+
quote_type = double
23+
continuation_indent_size = 2
24+
curly_bracket_next_line = false
25+
indent_brace_style = BSD
26+
spaces_around_operators = true
27+
spaces_around_brackets = none

.gitattributes

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Git attributes
2+
# https://git-scm.com/docs/gitattributes
3+
# https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes
4+
5+
# Normalize line endings for all files that git determines to be text.
6+
# https://git-scm.com/docs/gitattributes#gitattributes-Settostringvalueauto
7+
* text=auto
8+
9+
# Normalize line endings to LF on checkin, and do NOT convert to CRLF when checking-out on Windows.
10+
# https://git-scm.com/docs/gitattributes#gitattributes-Settostringvaluelf
11+
*.txt text eol=lf
12+
*.html text eol=lf
13+
*.md text eol=lf
14+
*.css text eol=lf
15+
*.scss text eol=lf
16+
*.map text eol=lf
17+
*.js text eol=lf
18+
*.jsx text eol=lf
19+
*.ts text eol=lf
20+
*.tsx text eol=lf
21+
*.json text eol=lf
22+
*.yml text eol=lf
23+
*.yaml text eol=lf
24+
*.xml text eol=lf
25+
*.svg text eol=lf

.gitignore

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Git ignore
2+
# https://git-scm.com/docs/gitignore
3+
4+
# Miscellaneous
5+
*~
6+
*#
7+
.DS_STORE
8+
Thumbs.db
9+
.netbeans
10+
nbproject
11+
.node_history
12+
13+
# IDEs & Text Editors
14+
.idea
15+
.sublime-*
16+
.vscode
17+
.netbeans
18+
nbproject
19+
20+
# Temporary files
21+
.tmp
22+
.temp
23+
.grunt
24+
.lock-wscript
25+
26+
# Logs
27+
/logs
28+
*.log
29+
30+
# Runtime data
31+
pids
32+
*.pid
33+
*.seed
34+
35+
# Dependencies
36+
node_modules
37+
38+
# Test output
39+
/.nyc_output
40+
/coverage
41+
42+
# Build output
43+
/lib

.travis.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Travis CI config
2+
# http://docs.travis-ci.com/user/languages/javascript-with-nodejs/
3+
# https://docs.travis-ci.com/user/customizing-the-build/
4+
# https://docs.travis-ci.com/user/migrating-from-legacy/
5+
6+
filter_secrets: false
7+
language: node_js
8+
9+
node_js:
10+
- 10
11+
- 8
12+
- 6
13+
14+
os:
15+
- linux
16+
- osx
17+
- windows
18+
19+
before_script:
20+
- npm run lint
21+
- npm run build
22+
23+
script:
24+
- npm run coverage
25+
26+
after_success:
27+
- cat ./coverage/lcov.info | coveralls
28+
29+
jobs:
30+
include:
31+
- stage: Deploy
32+
name: Publish to npm
33+
script: true
34+
after_success: true
35+
deploy:
36+
provider: npm
37+
email: $NPM_EMAIL
38+
api_key: $NPM_API_KEY
39+
skip_cleanup: true
40+
on:
41+
tags: true
42+
branch: master

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 James Messinger
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Istanbul Code Coverage Loader for Webpack
2+
==============================================
3+
4+
## ⚠ Work in Progress - Not ready to use yet ⚠

package.json

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"name": "coverage-istanbul-loader",
3+
"version": "0.0.1",
4+
"description": "A Webpack loader that uses Istanbul to add code coverage instrumentation",
5+
"keywords": [
6+
"webpack-loader",
7+
"webpack",
8+
"loader",
9+
"istanbul",
10+
"coverage",
11+
"code coverage",
12+
"instrumentation",
13+
"instrumenter",
14+
"sourcemap",
15+
"source-map",
16+
"sourcemaps",
17+
"source-maps"
18+
],
19+
"author": {
20+
"name": "James Messinger",
21+
"url": "https://jamesmessinger.com"
22+
},
23+
"license": "(MIT OR CC-BY-NC-SA-4.0)",
24+
"homepage": "https://jsdevtools.org/coverage-istanbul-loader",
25+
"repository": {
26+
"type": "git",
27+
"url": "https://github.com/JS-DevTools/coverage-istanbul-loader.git"
28+
},
29+
"main": "lib/index.js",
30+
"types": "lib/index.d.ts",
31+
"files": [
32+
"lib"
33+
],
34+
"scripts": {
35+
"clean": "shx rm -rf .nyc_output coverage lib",
36+
"lint": "npm run lint:typescript && npm run lint:javascript",
37+
"lint:typescript": "tslint -p tsconfig.json",
38+
"lint:javascript": "eslint test",
39+
"build": "npm run clean && tsc",
40+
"test": "mocha && npm run lint",
41+
"coverage": "nyc --reporter=text --reporter=lcov mocha",
42+
"upgrade": "npm-check -u",
43+
"bump": "bump --prompt --tag --push --all",
44+
"release": "npm run upgrade && npm run build && npm test && npm run bump"
45+
},
46+
"dependencies": {
47+
"convert-source-map": "^1.6.0",
48+
"istanbul-lib-instrument": "^3.0.0",
49+
"loader-utils": "^1.2.3"
50+
},
51+
"devDependencies": {
52+
"@types/node": "^10.12.21",
53+
"@types/webpack": "^4.4.24",
54+
"chai": "^4.2.0",
55+
"coveralls": "^3.0.2",
56+
"eslint": "^5.6.1",
57+
"eslint-config-modular": "^6.0.0",
58+
"mocha": "^5.2.0",
59+
"npm-check": "^5.9.0",
60+
"nyc": "^13.1.0",
61+
"shx": "^0.3.2",
62+
"tslint": "^5.12.0",
63+
"tslint-modular": "^1.1.7",
64+
"typescript": "^3.2.2",
65+
"typescript-tslint-plugin": "^0.3.1",
66+
"version-bump-prompt": "^4.2.1"
67+
}
68+
}

test/.eslintrc.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# ESLint config
2+
# http://eslint.org/docs/user-guide/configuring
3+
# https://github.com/JS-DevTools/eslint-config-modular
4+
5+
root: true
6+
7+
extends:
8+
- modular/best-practices
9+
- modular/style
10+
- modular/node
11+
- modular/es6
12+
- modular/test

test/mocha.opts

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--bail
2+
test/specs/**/*.spec.js

tsconfig.json

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"compilerOptions": {
3+
"target": "esnext",
4+
"module": "commonjs",
5+
"moduleResolution": "node",
6+
"esModuleInterop": true,
7+
"lib": [
8+
"esnext",
9+
],
10+
11+
"outDir": "lib",
12+
"sourceMap": true,
13+
"declaration": true,
14+
15+
"newLine": "LF",
16+
"forceConsistentCasingInFileNames": true,
17+
"noImplicitAny": true,
18+
"noImplicitThis": true,
19+
"strictBindCallApply": true,
20+
"strictNullChecks": true,
21+
"strictPropertyInitialization": true,
22+
"stripInternal": true,
23+
"noFallthroughCasesInSwitch": true,
24+
25+
"plugins": [
26+
{ "name": "typescript-tslint-plugin" }
27+
]
28+
},
29+
"include": [
30+
"src/**/*.ts"
31+
],
32+
"exclude": [
33+
"node_modules"
34+
]
35+
}

tslint.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# TSLint config
2+
# https://palantir.github.io/tslint/usage/configuration/
3+
# https://github.com/JS-DevTools/tslint-modular
4+
5+
extends:
6+
- tslint-modular/best-practices
7+
- tslint-modular/style
8+
- tslint-modular/node

0 commit comments

Comments
 (0)