make CI happy
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
parent
f4f9109519
commit
9175904b45
8
.github/workflows/node.js.yml
vendored
8
.github/workflows/node.js.yml
vendored
@ -12,16 +12,12 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
node-version: [18.x]
|
|
||||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js 18.x
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: 18.x
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build --if-present
|
- run: npm run build --if-present
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
"description": "Xe's automatic novel generation muse using Plotto and ChatGPT",
|
"description": "Xe's automatic novel generation muse using Plotto and ChatGPT",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"build": "tsc",
|
||||||
"start": "tsc && node dist/index.js",
|
"start": "tsc && node dist/index.js",
|
||||||
"test": "mocha",
|
"test": "mocha",
|
||||||
"prepare": "husky install"
|
"prepare": "husky install"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import * as fs from "node:fs/promises";
|
import * as fs from "node:fs/promises";
|
||||||
import { OpenAIApi } from "openai";
|
import { OpenAIApi } from "openai";
|
||||||
import PlotGenerator, { Plot } from "@xeserv/plottoriffic";
|
import PlotGenerator, { Plot } from "@ebooks/plottoriffic";
|
||||||
|
|
||||||
export const authorBio = `Yasomi Midori is a science fiction author who explores the themes of identity, memory, and technology in her novels. Her debut novel “The Memory Thief” was a critically acclaimed bestseller that captivated readers with its thrilling plot and complex characters. Yasomi also contributes to the Xe Iaso blog as the character Mimi, a hacker and activist who exposes the secrets of the powerful corporations that control the world. Yasomi was born and raised in Tokyo, Japan, where she developed a passion for reading and writing at an early age. She studied computer science and literature at the University of Tokyo, and worked as a software engineer before becoming a full-time writer. She lives in Kyoto with her husband and two cats.`;
|
export const authorBio = `Yasomi Midori is a science fiction author who explores the themes of identity, memory, and technology in her novels. Her debut novel “The Memory Thief” was a critically acclaimed bestseller that captivated readers with its thrilling plot and complex characters. Yasomi also contributes to the Xe Iaso blog as the character Mimi, a hacker and activist who exposes the secrets of the powerful corporations that control the world. Yasomi was born and raised in Tokyo, Japan, where she developed a passion for reading and writing at an early age. She studied computer science and literature at the University of Tokyo, and worked as a software engineer before becoming a full-time writer. She lives in Kyoto with her husband and two cats.`;
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
import { Command } from "commander";
|
import { Command } from "commander";
|
||||||
import * as dotenv from "dotenv";
|
import * as dotenv from "dotenv";
|
||||||
import { Configuration, OpenAIApi } from "openai";
|
import { Configuration, OpenAIApi } from "openai";
|
||||||
import { Plot } from "@xeserv/plottoriffic";
|
import { Plot } from "@ebooks/plottoriffic";
|
||||||
import { generateName } from "@kotofurumiya/th-namegen";
|
import { generateName } from "@kotofurumiya/th-namegen";
|
||||||
import * as fs from "node:fs/promises";
|
import * as fs from "node:fs/promises";
|
||||||
import { existsSync as fileExists } from "fs";
|
import { existsSync as fileExists } from "fs";
|
0
test/foo.ts
Normal file
0
test/foo.ts
Normal file
8
test/test.js
Normal file
8
test/test.js
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import * as assert from "assert";
|
||||||
|
describe("Array", function () {
|
||||||
|
describe("#indexOf()", function () {
|
||||||
|
it("should return -1 when the value is not present", function () {
|
||||||
|
assert.equal([1, 2, 3].indexOf(4), -1);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
@ -12,5 +12,6 @@
|
|||||||
"types": ["node"],
|
"types": ["node"],
|
||||||
"outDir": "dist"
|
"outDir": "dist"
|
||||||
},
|
},
|
||||||
|
"include": ["src/**/*", "tests/**/*", "types/**/*"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules"]
|
||||||
}
|
}
|
||||||
|
2
types/plottoriffic.d.ts
vendored
2
types/plottoriffic.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
declare module "@xeserv/plottoriffic" {
|
declare module "@ebooks/plottoriffic" {
|
||||||
export default PlotGenerator;
|
export default PlotGenerator;
|
||||||
|
|
||||||
export type Character = {
|
export type Character = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user