Compare commits
	
		
			10 Commits
		
	
	
		
			09e8b1f6d7
			...
			a7b4e3f00b
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					a7b4e3f00b | ||
| 
						 | 
					cab7b131bf | ||
| 
						 | 
					702a62a914 | ||
| 
						 | 
					2264830d9f | ||
| 
						 | 
					ae2a328f36 | ||
| 
						 | 
					1aaa257041 | ||
| 
						 | 
					918afc5d2c | ||
| 
						 | 
					2118f04b63 | ||
| 
						 | 
					c09409e182 | ||
| 
						 | 
					a3e20f15ef | 
							
								
								
									
										16
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								README.md
									
									
									
									
									
								
							@ -1,9 +1,11 @@
 | 
				
			|||||||
# Simple CI/CD package for any application
 | 
					# Simple CI/CD package for any application
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[](https://npmjs.org/package/nodecid)
 | 
					NOTE: This package is for Bun runtime
 | 
				
			||||||
[](https://npmjs.org/package/nodecid)
 | 
					
 | 
				
			||||||
 | 
					[](https://bunjs.org/package/nodecid)
 | 
				
			||||||
 | 
					[](https://bunjs.org/package/nodecid)
 | 
				
			||||||
[](https://github.com/RichardLitt/standard-readme)
 | 
					[](https://github.com/RichardLitt/standard-readme)
 | 
				
			||||||
[](https://npmjs.org/package/nodecid)
 | 
					[](https://bunjs.org/package/nodecid)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Integrate a simple CI/CD process into your application without the hassle.
 | 
					Integrate a simple CI/CD process into your application without the hassle.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -11,7 +13,7 @@ _**NOTE:** This package needs `node` installed to work_
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## Requirements
 | 
					## Requirements
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-   **Node JS Runtime and NPM:** You need to have `NodeJS` and `npm` installed on the target machine for this package to work.
 | 
					-   **Node JS Runtime and NPM:** You need to have `NodeJS` and `bun` installed on the target machine for this package to work.
 | 
				
			||||||
-   **`nodecid.config.json` file:** This package depends on a configuration file located in the root directory of your application.
 | 
					-   **`nodecid.config.json` file:** This package depends on a configuration file located in the root directory of your application.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Installation
 | 
					## Installation
 | 
				
			||||||
@ -19,13 +21,13 @@ _**NOTE:** This package needs `node` installed to work_
 | 
				
			|||||||
To install this package globally just run:
 | 
					To install this package globally just run:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```shell
 | 
					```shell
 | 
				
			||||||
npm install -g nodecid
 | 
					bun install -g nodecid
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
To run the package directly run:
 | 
					To run the package directly run:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```shell
 | 
					```shell
 | 
				
			||||||
npx nodecid
 | 
					bunx nodecid
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
This will download the package and run the binaries directly. After the first run it won't download the package again.
 | 
					This will download the package and run the binaries directly. After the first run it won't download the package again.
 | 
				
			||||||
@ -47,7 +49,7 @@ Your `nodecid.config.json` file should look like this:
 | 
				
			|||||||
```json
 | 
					```json
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    "start": "node index.js",
 | 
					    "start": "node index.js",
 | 
				
			||||||
    "preflight": ["npm run test", "npm run build"]
 | 
					    "preflight": ["bun run test", "bun run build"]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										
											BIN
										
									
								
								bin/nodecid
									
									
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								bin/nodecid
									
									
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										1
									
								
								dist/index.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								dist/index.d.ts
									
									
									
									
										vendored
									
									
								
							@ -1 +1,2 @@
 | 
				
			|||||||
 | 
					#!/usr/bin/env node
 | 
				
			||||||
export {};
 | 
					export {};
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										1
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							@ -1,3 +1,4 @@
 | 
				
			|||||||
 | 
					#!/usr/bin/env node
 | 
				
			||||||
"use strict";
 | 
					"use strict";
 | 
				
			||||||
var __importDefault = (this && this.__importDefault) || function (mod) {
 | 
					var __importDefault = (this && this.__importDefault) || function (mod) {
 | 
				
			||||||
    return (mod && mod.__esModule) ? mod : { "default": mod };
 | 
					    return (mod && mod.__esModule) ? mod : { "default": mod };
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								dist/tsconfig.tsbuildinfo
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/tsconfig.tsbuildinfo
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										2
									
								
								dist/utils/kill-child.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/utils/kill-child.js
									
									
									
									
										vendored
									
									
								
							@ -16,8 +16,6 @@ exports.default = killChild;
 | 
				
			|||||||
const console_colors_1 = __importDefault(require("./console-colors"));
 | 
					const console_colors_1 = __importDefault(require("./console-colors"));
 | 
				
			||||||
const kill_port_1 = __importDefault(require("kill-port"));
 | 
					const kill_port_1 = __importDefault(require("kill-port"));
 | 
				
			||||||
let childProcess = null;
 | 
					let childProcess = null;
 | 
				
			||||||
const pTitle = "nodecid";
 | 
					 | 
				
			||||||
process.title = pTitle;
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * ## Kill Child Process Function
 | 
					 * ## Kill Child Process Function
 | 
				
			||||||
 * @param {string | number | (string | number)[]} [port]
 | 
					 * @param {string | number | (string | number)[]} [port]
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								dist/utils/run.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/utils/run.js
									
									
									
									
										vendored
									
									
								
							@ -8,8 +8,6 @@ const child_process_1 = require("child_process");
 | 
				
			|||||||
const console_colors_1 = __importDefault(require("./console-colors"));
 | 
					const console_colors_1 = __importDefault(require("./console-colors"));
 | 
				
			||||||
let redeployments = 0;
 | 
					let redeployments = 0;
 | 
				
			||||||
const KILL_SIGNAL = "SIGTERM";
 | 
					const KILL_SIGNAL = "SIGTERM";
 | 
				
			||||||
const pTitle = "nodecid";
 | 
					 | 
				
			||||||
process.title = pTitle;
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * ## Preflight Function
 | 
					 * ## Preflight Function
 | 
				
			||||||
 * @param {string} command
 | 
					 * @param {string} command
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								index.ts
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								index.ts
									
									
									
									
									
								
							@ -1,3 +1,5 @@
 | 
				
			|||||||
 | 
					#!/usr/bin/env bun
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import fs from "fs";
 | 
					import fs from "fs";
 | 
				
			||||||
import path from "path";
 | 
					import path from "path";
 | 
				
			||||||
import colors from "./utils/console-colors";
 | 
					import colors from "./utils/console-colors";
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										13
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								package.json
									
									
									
									
									
								
							@ -1,11 +1,10 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    "name": "@moduletrace/nodecid",
 | 
					    "name": "@moduletrace/buncid",
 | 
				
			||||||
    "version": "1.0.7",
 | 
					    "version": "1.0.0",
 | 
				
			||||||
    "description": "Simple CI/CD process",
 | 
					    "description": "Simple CI/CD process For Bun runtime",
 | 
				
			||||||
    "main": "dist/index.js",
 | 
					    "main": "dist/index.js",
 | 
				
			||||||
    "bin": {
 | 
					    "bin": {
 | 
				
			||||||
        "nodecid": "./dist/index.js",
 | 
					        "buncid": "./dist/index.js"
 | 
				
			||||||
        "node-ci-cd": "./dist/index.js"
 | 
					 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "scripts": {
 | 
					    "scripts": {
 | 
				
			||||||
        "compile": "bun build --compile --minify --sourcemap --bytecode index.ts --outfile bin/nodecid"
 | 
					        "compile": "bun build --compile --minify --sourcemap --bytecode index.ts --outfile bin/nodecid"
 | 
				
			||||||
@ -15,6 +14,10 @@
 | 
				
			|||||||
        "Continuous Integration",
 | 
					        "Continuous Integration",
 | 
				
			||||||
        "Continous Deployment"
 | 
					        "Continous Deployment"
 | 
				
			||||||
    ],
 | 
					    ],
 | 
				
			||||||
 | 
					    "repository": {
 | 
				
			||||||
 | 
					        "type": "git",
 | 
				
			||||||
 | 
					        "url": "https://git.tben.me/Moduletrace/nodecid.git"
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    "author": "Benjamin Toby",
 | 
					    "author": "Benjamin Toby",
 | 
				
			||||||
    "license": "MIT",
 | 
					    "license": "MIT",
 | 
				
			||||||
    "dependencies": {
 | 
					    "dependencies": {
 | 
				
			||||||
 | 
				
			|||||||
@ -1,9 +1,14 @@
 | 
				
			|||||||
#!/bin/bash
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					tsc
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ -z "$1" ]; then
 | 
					if [ -z "$1" ]; then
 | 
				
			||||||
    msg="Updates"
 | 
					    msg="Updates"
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
    msg="$1"
 | 
					    msg="$1"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
git add . && git commit -m "$msg" && git push && npm publish
 | 
					git add .
 | 
				
			||||||
 | 
					git commit -m "$msg"
 | 
				
			||||||
 | 
					git push
 | 
				
			||||||
 | 
					bun publish
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										11
									
								
								push.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										11
									
								
								push.sh
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if [ -z "$1" ]; then
 | 
				
			||||||
 | 
					    msg="Updates"
 | 
				
			||||||
 | 
					else
 | 
				
			||||||
 | 
					    msg="$1"
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					git add .
 | 
				
			||||||
 | 
					git commit -m "$msg"
 | 
				
			||||||
 | 
					git push
 | 
				
			||||||
@ -4,9 +4,6 @@ import kill from "kill-port";
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
let childProcess: ChildProcess | null = null;
 | 
					let childProcess: ChildProcess | null = null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const pTitle = "nodecid";
 | 
					 | 
				
			||||||
process.title = pTitle;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * ## Kill Child Process Function
 | 
					 * ## Kill Child Process Function
 | 
				
			||||||
 * @param {string | number | (string | number)[]} [port]
 | 
					 * @param {string | number | (string | number)[]} [port]
 | 
				
			||||||
 | 
				
			|||||||
@ -5,9 +5,6 @@ let redeployments = 0;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
const KILL_SIGNAL: NodeJS.Signals | number = "SIGTERM";
 | 
					const KILL_SIGNAL: NodeJS.Signals | number = "SIGTERM";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const pTitle = "nodecid";
 | 
					 | 
				
			||||||
process.title = pTitle;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * ## Preflight Function
 | 
					 * ## Preflight Function
 | 
				
			||||||
 * @param {string} command
 | 
					 * @param {string} command
 | 
				
			||||||
 | 
				
			|||||||
@ -1,3 +0,0 @@
 | 
				
			|||||||
function githubWebhook() {
 | 
					 | 
				
			||||||
    return true;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user