Skip to content

Commit 059cef6

Browse files
author
David Sheldrick
committed
blank project
0 parents  commit 059cef6

File tree

9 files changed

+2439
-0
lines changed

9 files changed

+2439
-0
lines changed

.gitignore

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
17+
# Coverage directory used by tools like istanbul
18+
coverage
19+
20+
# nyc test coverage
21+
.nyc_output
22+
23+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24+
.grunt
25+
26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled binary addons (http://nodejs.org/api/addons.html)
33+
build/Release
34+
35+
# Dependency directories
36+
node_modules/
37+
jspm_packages/
38+
39+
# Typescript v1 declaration files
40+
typings/
41+
42+
# Optional npm cache directory
43+
.npm
44+
45+
# Optional eslint cache
46+
.eslintcache
47+
48+
# Optional REPL history
49+
.node_repl_history
50+
51+
# Output of 'npm pack'
52+
*.tgz
53+
54+
# Yarn Integrity file
55+
.yarn-integrity
56+
57+
# dotenv environment variables file
58+
.env
59+
60+
dist/

.npmignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
src/
2+
!dist/
3+
tsconfig.json

.vscode/settings.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Place your settings in this file to overwrite default and user settings.
2+
{
3+
"editor.formatOnPaste": true,
4+
"editor.formatOnSave": true,
5+
"tslint.enable": true
6+
}

index.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#! /usr/bin/env node
2+
3+
require("./dist/index.js");

package.json

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"name": "patch-package",
3+
"version": "1.0.0",
4+
"description": "When forking just won't work, patch it.",
5+
"main": "dist/index.js",
6+
"repository": "https://github.com/ds300/patch-package",
7+
"author": "David Sheldrick",
8+
"license": "MIT",
9+
"bin": {
10+
"patch-package": "./index.js"
11+
},
12+
"scripts": {
13+
"precommit": "lint-staged",
14+
"prepublish": "tsc",
15+
"test": "jest"
16+
},
17+
"lint-staged": {
18+
"*.ts": [
19+
"tslint --fix -c tslint.json -p tsconfig.json",
20+
"git add"
21+
]
22+
},
23+
"jest": {
24+
"transform": {
25+
".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
26+
},
27+
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
28+
"moduleFileExtensions": [
29+
"ts",
30+
"tsx",
31+
"js"
32+
]
33+
},
34+
"devDependencies": {
35+
"@types/app-root-path": "^1.2.4",
36+
"@types/node": "^7.0.18",
37+
"jest": "^20.0.0",
38+
"ts-jest": "^20.0.1",
39+
"tslint": "^5.2.0",
40+
"typescript": "^2.3.2"
41+
},
42+
"dependencies": {
43+
"app-root-path": "^2.0.1"
44+
}
45+
}

src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log("hello world")

tsconfig.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es5",
4+
"module": "commonjs",
5+
"lib": ["es2015"],
6+
"strict": true,
7+
"outDir": "dist",
8+
"inlineSourceMap": true,
9+
"inlineSources": true
10+
},
11+
"compileOnSave": true
12+
}

tslint.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"defaultSeverity": "error",
3+
"extends": [
4+
"tslint:recommended"
5+
],
6+
"jsRules": {},
7+
"rules": {
8+
"no-console": [
9+
false
10+
],
11+
"semicolon": [
12+
true,
13+
"never"
14+
]
15+
},
16+
"rulesDirectory": []
17+
}

0 commit comments

Comments
 (0)