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