Compare commits
7 commits
2023.09.02
...
main
Author | SHA1 | Date | |
---|---|---|---|
|
1c396feba2 | ||
|
a7c0bee5cf | ||
5b2ebd3e90 | |||
18d07c3b64 | |||
aade8a4107 | |||
|
d56eb00801 | ||
|
d39c56761b |
5 changed files with 8 additions and 32 deletions
26
.github/workflows/npm-publish.yml
vendored
26
.github/workflows/npm-publish.yml
vendored
|
@ -1,26 +0,0 @@
|
||||||
name: Publish to NPM
|
|
||||||
on:
|
|
||||||
release:
|
|
||||||
types: [created]
|
|
||||||
jobs:
|
|
||||||
Publish-NPM:
|
|
||||||
runs-on: node1
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Setup Node
|
|
||||||
uses: actions/setup-node@v2
|
|
||||||
with:
|
|
||||||
node-version: '16.x'
|
|
||||||
registry-url: 'https://registry.npmjs.org'
|
|
||||||
scope: '@thundernetworkrad'
|
|
||||||
- name: Install Dependencies
|
|
||||||
run: npm i
|
|
||||||
- name: Build
|
|
||||||
run: npm run build
|
|
||||||
- name: Publish package on NPM 📦
|
|
||||||
run: npm publish --access public
|
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
||||||
REGISTRY1: 'registry.npmjs.org'
|
|
||||||
REGISTRY2: 'registry=https://registry.npmjs.org/'
|
|
2
.npmrc
2
.npmrc
|
@ -1,2 +0,0 @@
|
||||||
//${REGISTRY1}/:_authToken=${NODE_AUTH_TOKEN}
|
|
||||||
${REGISTRY2}
|
|
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
Here are the changelogs since the first package version.
|
Here are the changelogs since the first package version.
|
||||||
|
|
||||||
|
## 2023.09.03
|
||||||
|
|
||||||
|
- Cleaned up some files
|
||||||
|
|
||||||
## 2023.09.02
|
## 2023.09.02
|
||||||
|
|
||||||
- Migrated to CHANGELOGS.md
|
- Migrated to CHANGELOGS.md
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "node-cout",
|
"name": "node-cout",
|
||||||
"version": "2023.09.02",
|
"version": "2023.09.03",
|
||||||
"description": "Standard output module for JavaScript / TypeScript",
|
"description": "Standard output module for JavaScript / TypeScript",
|
||||||
"main": "build/index.js",
|
"main": "build/index.js",
|
||||||
"types": "build/index.d.ts",
|
"types": "build/index.d.ts",
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
"await",
|
"await",
|
||||||
"log"
|
"log"
|
||||||
],
|
],
|
||||||
"author": "Thunder Network RaD | Killer Boss Original",
|
"author": "Thunder Network RaD | Killer Boss Original, Mambuco",
|
||||||
"license": "Mozilla Public License 2.0",
|
"license": "Mozilla Public License 2.0",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://source.thundernetwork.org/ThunderNetworkRaD/node-cout/issues"
|
"url": "https://source.thundernetwork.org/ThunderNetworkRaD/node-cout/issues"
|
||||||
|
|
|
@ -71,12 +71,12 @@ export default class cout {
|
||||||
}
|
}
|
||||||
if (this.save) {
|
if (this.save) {
|
||||||
string.split("\n").forEach((line) => {
|
string.split("\n").forEach((line) => {
|
||||||
log(`${this.emoji && emoji}[${time} ${type}] | ${line}`);
|
log(`${this.emoji ? emoji : ''}[${time} ${type}] | ${line}`);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
stringc.split("\n").forEach((line) => {
|
stringc.split("\n").forEach((line) => {
|
||||||
console.log(`${this.emoji && emojic}[${timec} ${typec}] | ${line}`);
|
console.log(`${this.emoji ? emojic : ''}[${timec} ${typec}] | ${line}`);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue