Skip to content

Commit 3023c67

Browse files
authored
Updates to packaging (#1)
1 parent db1facd commit 3023c67

File tree

7 files changed

+1523
-1674
lines changed

7 files changed

+1523
-1674
lines changed

.gitignore

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
1-
node_modules
21
.nyc_output
2+
.vscode
33
dist
4+
docs
5+
node_modules
46
reports
57

6-
# Logs
7-
logs
88
*.log
99
npm-debug.log*
10-
11-
# VS Code
12-
.vscode/*
13-
!.vscode/settings.json
14-
!.vscode/tasks.json
15-
!.vscode/launch.json
16-
!.vscode/extensions.json
17-
18-
# Crap files
19-
[Dd]esktop.ini
20-
.DS_Store

.vscode/settings.json

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

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Status of Project
44

5-
[![Build Status](https://travis-ci.org/acmeframework/af-utilities.svg?branch=master)](https://travis-ci.org/acmeframework/af-utilities) [![Coverage Status](https://coveralls.io/repos/github/acmeframework/af-utilities/badge.svg?branch=master)](https://coveralls.io/github/acmeframework/af-utilities?branch=master)
5+
[![Build Status](https://travis-ci.org/acmeframework/af-utilities.svg?branch=master)](https://travis-ci.org/acmeframework/af-utilities) [![Coverage Status](https://coveralls.io/repos/github/acmeframework/af-utilities/badge.svg?branch=master)](https://coveralls.io/github/acmeframework/af-utilities?branch=master)
66

77
## Installation
88

@@ -32,6 +32,10 @@ The af-utilities library provides utility classes and functions used throughout
3232

3333
This is the initial release version. The code has been thoroughly tested with 100% coverage.
3434

35+
### v1.1.0 - Packaging Updates
36+
37+
Updates to dependencies to remove security vulnerabilities. Updates to the packaging.
38+
3539
## The MIT License
3640

3741
Copyright © 2019 Acme Framework

package-lock.json

Lines changed: 1381 additions & 1475 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 62 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,65 @@
11
{
2-
"name": "af-utilities",
3-
"version": "1.0.0",
4-
"description": "Utility functions used within the af-XXXX Frameworks and Libraries",
5-
"main": "build/lib/index.js",
6-
"scripts": {
7-
"clean-dist": "rm -rf dist",
8-
"clean-reports": "rm -rf reports && rm -rf .nyc_output",
9-
"clean-all": "npm run clean-dist && npm run clean-reports",
10-
"compile": "./node_modules/.bin/tsc",
11-
"dist": "npm run clean-all && npm test && npm run compile",
12-
"test": "./node_modules/.bin/nyc ./node_modules/.bin/mocha",
13-
"coverage": "./node_modules/.bin/nyc report --reporter=text-lcov | coveralls"
14-
},
15-
"files": [
16-
"dist"
2+
"name": "af-utilities",
3+
"version": "1.1.0",
4+
"description": "Utility functions used within the af-XXXX Frameworks and Libraries",
5+
"main": "build/lib/index.js",
6+
"scripts": {
7+
"clean-dist": "rm -rf dist",
8+
"clean-reports": "rm -rf reports && rm -rf .nyc_output",
9+
"clean-all": "npm run clean-dist && npm run clean-reports",
10+
"compile": "./node_modules/.bin/tsc",
11+
"dist": "npm run clean-all && npm test && npm run compile",
12+
"test": "./node_modules/.bin/nyc ./node_modules/.bin/mocha",
13+
"coverage": "./node_modules/.bin/nyc report --reporter=text-lcov | coveralls"
14+
},
15+
"files": [
16+
"dist"
17+
],
18+
"nyc": {
19+
"include": [
20+
"src"
1721
],
18-
"nyc": {
19-
"include": [
20-
"src"
21-
],
22-
"extension": [
23-
".ts",
24-
".tsx"
25-
],
26-
"reporter": [
27-
"html",
28-
"lcov"
29-
],
30-
"all": true,
31-
"report-dir": "./reports/coverage"
32-
},
33-
"author": "Michael Coakley <mcoakley@acmeframework.com>",
34-
"license": "MIT",
35-
"repository": {
36-
"type": "git",
37-
"url": "https://github.com/acmeframework/af-utilities"
38-
},
39-
"bugs": {
40-
"url": "https://github.com/acmeframework/af-utilities/issues"
41-
},
42-
"homepage": "https://github.com/acmeframework/af-utilities",
43-
"dependencies": {
44-
"af-conditionals": "^1.0.0",
45-
"uuid": "^3.3.2"
46-
},
47-
"devDependencies": {
48-
"@types/chai": "^4.1.7",
49-
"@types/mocha": "^5.2.6",
50-
"@types/node": "^11.10.5",
51-
"@types/sinon": "^7.0.9",
52-
"@types/uuid": "^3.4.4",
53-
"chai": "^4.2.0",
54-
"coveralls": "^3.0.3",
55-
"mocha": "^5.2.0",
56-
"mochawesome": "^3.1.1",
57-
"nyc": "^13.3.0",
58-
"sinon": "^7.2.7",
59-
"source-map-support": "^0.5.10",
60-
"ts-node": "^8.0.3",
61-
"tslint": "^5.13.1",
62-
"typescript": "^3.3.3333",
63-
"typescript-tslint-plugin": "^0.3.1"
64-
}
22+
"extension": [
23+
".ts",
24+
".tsx"
25+
],
26+
"reporter": [
27+
"html",
28+
"lcov"
29+
],
30+
"all": true,
31+
"report-dir": "./reports/coverage"
32+
},
33+
"author": "Michael Coakley <mcoakley@acmeframework.com>",
34+
"license": "MIT",
35+
"repository": {
36+
"type": "git",
37+
"url": "https://github.com/acmeframework/af-utilities"
38+
},
39+
"bugs": {
40+
"url": "https://github.com/acmeframework/af-utilities/issues"
41+
},
42+
"homepage": "https://github.com/acmeframework/af-utilities",
43+
"dependencies": {
44+
"af-conditionals": "^1.1.0",
45+
"tslib": "^1.10.0",
46+
"uuid": "^3.3.2"
47+
},
48+
"devDependencies": {
49+
"@types/chai": "^4.1.7",
50+
"@types/mocha": "^5.2.7",
51+
"@types/node": "^12.6.8",
52+
"@types/sinon": "^7.0.13",
53+
"@types/uuid": "^3.4.5",
54+
"chai": "^4.2.0",
55+
"coveralls": "^3.0.5",
56+
"mocha": "^6.2.0",
57+
"mochawesome": "^4.0.1",
58+
"nyc": "^14.1.1",
59+
"sinon": "^7.3.2",
60+
"source-map-support": "^0.5.12",
61+
"ts-node": "^8.3.0",
62+
"tslint": "^5.18.0",
63+
"typescript": "^3.5.2"
64+
}
6565
}

tsconfig.json

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,21 @@
22
"compilerOptions": {
33
"target": "es6",
44
"module": "commonjs",
5-
"lib": [
6-
"es6"
7-
],
5+
"lib": ["es6"],
86
"declaration": true,
97
"sourceMap": true,
108
"outDir": "./dist/",
119
"rootDir": "./src",
1210
"removeComments": true,
11+
"importHelpers": true,
1312
"downlevelIteration": true,
1413
"strict": true,
1514
"noUnusedLocals": true,
1615
"noUnusedParameters": true,
1716
"noImplicitReturns": true,
1817
"moduleResolution": "node",
19-
"esModuleInterop": true,
18+
"esModuleInterop": true
2019
},
21-
"include": [
22-
"./src/**/*.ts"
23-
],
24-
"exclude": [
25-
"node_modules",
26-
],
27-
"plugins": [
28-
{
29-
"name": "typescript-tslint-plugin",
30-
"alwaysShowRuleFailuresAsWarnings": false,
31-
"ignoreDefinitionFiles": true,
32-
"configFile": "./tslint.json",
33-
"suppressWhileTypeErrorsPresent": false,
34-
"mockTypeScriptVersion": false
35-
}
36-
]
20+
"include": ["./src/**/*.ts"],
21+
"exclude": ["node_modules"]
3722
}

tslint.json

Lines changed: 67 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,69 @@
11
{
2-
"extends": "tslint:recommended",
3-
"rules": {
4-
// changes to tslint:recommended
5-
"curly": [
6-
true,
7-
"ignore-same-line"
8-
],
9-
"indent": [
10-
true,
11-
"spaces"
12-
],
13-
"interface-name": [
14-
true,
15-
"never-prefix"
16-
],
17-
"linebreak-style": [
18-
true,
19-
"CRLF"
20-
],
21-
"max-classes-per-file": false,
22-
"no-empty-interface": false,
23-
"no-inferrable-types": true,
24-
"no-internal-module": true,
25-
"no-null-keyword": true,
26-
"no-trailing-whitespace": [
27-
true,
28-
"ignore-template-strings"
29-
],
30-
//"no-unnecessary-qualifier": true,
31-
//"no-unnecessary-type-assertion": true,
32-
"no-var-keyword": true,
33-
"object-literal-shorthand": true,
34-
"one-line": [
35-
true,
36-
"check-catch",
37-
"check-finally",
38-
"check-else",
39-
"check-whitespace"
40-
],
41-
"prefer-const": true,
42-
"quotemark": [
43-
true,
44-
"single",
45-
"avoid-escape"
46-
],
47-
"semicolon": [
48-
true,
49-
"always",
50-
"ignore-bound-class-methods"
51-
],
52-
"space-within-parens": true,
53-
"triple-equals": true,
54-
"typedef-whitespace": [
55-
true,
56-
{
57-
"call-signature": "nospace",
58-
"index-signature": "nospace",
59-
"parameter": "nospace",
60-
"property-declaration": "nospace",
61-
"variable-declaration": "nospace"
62-
},
63-
{
64-
"call-signature": "onespace",
65-
"index-signature": "onespace",
66-
"parameter": "onespace",
67-
"property-declaration": "onespace",
68-
"variable-declaration": "onespace"
69-
}
70-
],
71-
"whitespace": [
72-
true,
73-
"check-branch",
74-
"check-decl",
75-
"check-operator",
76-
"check-module",
77-
"check-separator",
78-
"check-type"
79-
],
80-
// Config different from tslint:latest
81-
"array-type": [
82-
true,
83-
"array"
84-
],
85-
"no-implicit-dependencies": [
86-
true,
87-
"dev"
88-
],
89-
"no-string-literal": false,
90-
"object-literal-key-quotes": [
91-
true,
92-
"consistent-as-needed"
93-
],
94-
"trailing-comma": false,
95-
"variable-name": [
96-
true,
97-
"ban-keywords",
98-
"check-format",
99-
"allow-leading-underscore"
100-
]
101-
}
2+
"extends": "tslint:recommended",
3+
"rules": {
4+
"arrow-parens": false,
5+
"curly": [true, "ignore-same-line"],
6+
"indent": [true, "spaces"],
7+
"interface-name": [true, "never-prefix"],
8+
"linebreak-style": [true, "CRLF"],
9+
"max-classes-per-file": false,
10+
"no-empty-interface": false,
11+
"no-inferrable-types": true,
12+
"no-internal-module": true,
13+
"no-null-keyword": true,
14+
"no-trailing-whitespace": [true, "ignore-template-strings"],
15+
"no-unnecessary-qualifier": true,
16+
"no-unnecessary-type-assertion": true,
17+
"no-var-keyword": true,
18+
"object-literal-shorthand": true,
19+
"one-line": [
20+
true,
21+
"check-catch",
22+
"check-finally",
23+
"check-else",
24+
"check-whitespace"
25+
],
26+
"prefer-const": true,
27+
"quotemark": [true, "single", "avoid-escape"],
28+
"semicolon": [true, "always", "ignore-bound-class-methods"],
29+
"space-within-parens": true,
30+
"triple-equals": true,
31+
"typedef-whitespace": [
32+
true,
33+
{
34+
"call-signature": "nospace",
35+
"index-signature": "nospace",
36+
"parameter": "nospace",
37+
"property-declaration": "nospace",
38+
"variable-declaration": "nospace"
39+
},
40+
{
41+
"call-signature": "onespace",
42+
"index-signature": "onespace",
43+
"parameter": "onespace",
44+
"property-declaration": "onespace",
45+
"variable-declaration": "onespace"
46+
}
47+
],
48+
"whitespace": [
49+
true,
50+
"check-branch",
51+
"check-decl",
52+
"check-operator",
53+
"check-module",
54+
"check-separator",
55+
"check-type"
56+
],
57+
"array-type": [true, "array"],
58+
"no-implicit-dependencies": [true, "dev"],
59+
"no-string-literal": false,
60+
"object-literal-key-quotes": [true, "consistent-as-needed"],
61+
"trailing-comma": false,
62+
"variable-name": [
63+
true,
64+
"ban-keywords",
65+
"check-format",
66+
"allow-leading-underscore"
67+
]
68+
}
10269
}

0 commit comments

Comments
 (0)