First Commit
This commit is contained in:
parent
cab7b131bf
commit
a7b4e3f00b
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"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
2
index.ts
2
index.ts
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env bun
|
||||||
|
|
||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "@moduletrace/nodecid",
|
"name": "@moduletrace/buncid",
|
||||||
"version": "1.0.8",
|
"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"
|
||||||
},
|
},
|
||||||
"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"
|
||||||
|
Loading…
Reference in New Issue
Block a user