Skip to content

TypeScript Boilerplate #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 22 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{yml,yaml}]
indent_style = space
indent_size = 2
3 changes: 1 addition & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
* text=auto
*.js text eol=lf
* text=auto eol=lf
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.nyc_output
coverage
dist
node_modules
yarn.lock
File renamed without changes.
3 changes: 2 additions & 1 deletion cli-boilerplate/.travis.yml → .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: node_js
node_js:
- 'node'
- '12'
- '10'
- '8'
- '6'
12 changes: 0 additions & 12 deletions boilerplate/.editorconfig

This file was deleted.

1 change: 0 additions & 1 deletion boilerplate/.gitattributes

This file was deleted.

2 changes: 0 additions & 2 deletions boilerplate/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions boilerplate/.travis.yml

This file was deleted.

9 changes: 0 additions & 9 deletions boilerplate/index.js

This file was deleted.

9 changes: 0 additions & 9 deletions boilerplate/license

This file was deleted.

29 changes: 0 additions & 29 deletions boilerplate/package.json

This file was deleted.

47 changes: 0 additions & 47 deletions boilerplate/readme.md

This file was deleted.

11 changes: 0 additions & 11 deletions boilerplate/test.js

This file was deleted.

12 changes: 0 additions & 12 deletions cli-boilerplate/.editorconfig

This file was deleted.

1 change: 0 additions & 1 deletion cli-boilerplate/.gitattributes

This file was deleted.

2 changes: 0 additions & 2 deletions cli-boilerplate/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion cli-boilerplate/.npmrc

This file was deleted.

20 changes: 0 additions & 20 deletions cli-boilerplate/cli.js

This file was deleted.

9 changes: 0 additions & 9 deletions cli-boilerplate/license

This file was deleted.

38 changes: 0 additions & 38 deletions cli-boilerplate/package.json

This file was deleted.

34 changes: 0 additions & 34 deletions cli-boilerplate/readme.md

This file was deleted.

6 changes: 0 additions & 6 deletions cli-boilerplate/test.js

This file was deleted.

2 changes: 1 addition & 1 deletion license
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.com)
Copyright (c) <%= name %> <<%= email %>> (<%= website %>)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
67 changes: 67 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"name": "<%= moduleName %>",
"version": "0.0.0",
"description": "",
"license": "MIT",
"repository": "<%= githubUsername %>/<%= moduleName %>",
"author": {
"name": "<%= name %>",
"email": "<%= email %>",
"url": "<%= website %>"
},
"engines": {
"node": ">=8"
},
"scripts": {
"build": "del dist && tsc",
"prepack": "npm run build",
"test": "tsc && xo && nyc ava"
},
"main": "dist/source",
"types": "dist/source",
"files": [
"dist/source",
"!*.test.*"
],
"keywords": [
""
],
"dependencies": {},
"devDependencies": {
"@sindresorhus/tsconfig": "^0.7.0",
"@types/node": "^13.1.4",
"@typescript-eslint/eslint-plugin": "^2.15.0",
"@typescript-eslint/parser": "^2.15.0",
"ava": "^3.0.0",
"del-cli": "^3.0.0",
"eslint-config-xo-typescript": "^0.24.1",
"nyc": "^15.0.0",
"typescript": "^3.7.4",
"xo": "^0.25.3"
},
"nyc": {
"extension": [
".ts"
],
"include": [
"dist/source",
"source"
],
"exclude": [
"**/*.test.ts"
],
"reporter": [
"lcov",
"text"
]
},
"xo": {
"extends": "xo-typescript",
"extensions": [
"ts"
],
"rules": {
"ava/no-ignored-test-files": "off"
}
}
}
Loading