Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
heyAyushh authored Jul 14, 2021
1 parent 4d0bb2c commit 6b0f931
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actionsrelease

name: Node.js CI
name: build

on:
push:
Expand All @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [12.x,14.x,16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand All @@ -27,10 +27,6 @@ jobs:
- run: npm install
- run: npm run build

- name: build changes
- name: Fail if build changes exist
id: changes
uses: UnicornGlobal/[email protected]

- name: Git Commit/Push Changes
if: steps.changes.outputs.changed == 1
uses: actions-x/commit@v2
run: exit $(git status --porcelain | grep "dist\|src" | wc -l)
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# nd.ts 🚀
generate bare minimum node typescript setup asap
[![build](https://github.com/heyAyushh/nd.ts/actions/workflows/main.build.yml/badge.svg?branch=main)](https://github.com/heyAyushh/nd.ts/actions/workflows/main.build.yml) ![npm](https://img.shields.io/npm/v/nd.ts) ![npm](https://img.shields.io/npm/dm/nd.ts) ![NPM](https://img.shields.io/npm/l/nd.ts)

generate bare minimum node typescript setup asap

```
npx nd.ts
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
{
"name": "nd.ts",
"description": "generate bare minimum node typescript setup asap",
"version": "1.0.0",
"version": "1.2.0",
"main": "./dist/index.js",
"bin": "./dist/index.js",
"types": "./dist/index.d.ts",
"author": "heyAyushh",
"bugs": {
"url": "https://github.com/heyAyushh/nd.ts/issues"
},
"files": [
"dist/"
],
"devDependencies": {
"@types/figlet": "^1.5.4",
"@types/inquirer": "^7.3.3",
Expand All @@ -25,7 +28,7 @@
"url": "git+https://github.com/heyAyushh/nd.ts.git"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"test": "echo \"no tests exist\"",
"dev": "concurrently -k -p \"[{name}]\" -n \"TypeScript,Node\" -c \"cyan.bold,green.bold\" \"npm run watch:ts\" \"npm run serve-debug\"",
"start": "node ./dist/index.js",
"watch:ts": "tsc -w",
Expand Down

0 comments on commit 6b0f931

Please sign in to comment.