-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
97 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
'use strict'; | ||
|
||
const path = require('path'); | ||
const { $ } = require('zx'); | ||
|
||
const command = path.parse(__filename).name; | ||
|
||
module.exports = { | ||
command, | ||
describe: 'Delete all the types generated with TypeScript.', | ||
handler: async () => { | ||
$.verbose = false; | ||
await Promise.all( | ||
['./app', './bin', './lib'].map((i) => | ||
$`find ${i} -name '*.d.ts' -exec rm {} \\;`.catch(() => {}) | ||
) | ||
); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "core-commons", | ||
"version": "1.0.0-alpha.0", | ||
"description": "Lifion's development setup in one command for our public Node.js projects.", | ||
"description": "Lifion's development setup in one command for public Node.js projects.", | ||
"author": "Edgardo Avilés-López <[email protected]>", | ||
"maintainers": [ | ||
"Edgardo Avilés-López <[email protected]>", | ||
|
@@ -29,6 +29,7 @@ | |
"node": ">=14.18.0" | ||
}, | ||
"scripts": { | ||
"build-types": "./bin/cli.js", | ||
"check-types": "./bin/cli.js", | ||
"eslint": "./bin/cli.js", | ||
"prepare": "./bin/cli.js", | ||
|
@@ -51,8 +52,5 @@ | |
"typescript": "^4.4.3", | ||
"yargs": "^17.2.1", | ||
"zx": "^4.2.0" | ||
}, | ||
"devDependencies": { | ||
"@types/jsdoc-to-markdown": "^7.0.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
set -e | ||
set -o pipefail | ||
|
||
npm test && npm run check-types | ||
npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
declare module 'jsdoc-to-markdown'; |