Skip to content

Commit

Permalink
chore: build template
Browse files Browse the repository at this point in the history
  • Loading branch information
leomotors committed Sep 12, 2023
1 parent fcf7e8f commit 77b9f3b
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion apps/example/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Template

Template Discord Bot for Cocoa Discord Utils
Template Discord Bot for Cocoa Discord
4 changes: 2 additions & 2 deletions apps/example/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@cocoa-discord/template-hybrid",
"version": "1.0.0",
"description": "Template Discord Bot using Cocoa Discord Utils (Has both message and slash commands)",
"version": "0.0.0",
"description": "Template Discord Bot using Cocoa Discord (Has both message and slash commands)",
"main": "dist/bot.js",
"type": "module",
"scripts": {
Expand Down
10 changes: 4 additions & 6 deletions apps/example/src/bot.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import "dotenv/config";

import {
ActivityGroupLoader,
ActivityManager,
Expand All @@ -12,10 +10,10 @@ import { CocoaIntent } from "cocoa-discord/template";

import { Client } from "discord.js";

import { MainMessageCog } from "./commands/main.message";
import { MainSlashCog } from "./commands/main.slash";
import { style } from "./commands/styles";
import { GuildIds } from "./environment";
import { MainMessageCog } from "./commands/main.message.js";
import { MainSlashCog } from "./commands/main.slash.js";
import { style } from "./commands/styles.js";
import { GuildIds } from "./environment.js";

const client = new Client(
new CocoaIntent()
Expand Down
3 changes: 2 additions & 1 deletion apps/example/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"compilerOptions": {
"target": "esnext",
"module": "NodeNext",
"rootDirs": ["./src"],
"outDir": "./dist",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"moduleResolution": "node",
"moduleResolution": "nodenext",
"experimentalDecorators": true,
"incremental": true,
"noUncheckedIndexedAccess": true
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"packageManager": "[email protected]",
"scripts": {
"build:app": "FORCE_COLOR=2 turbo run build:app",
"build": "FORCE_COLOR=2 turbo run build",
"dev": "FORCE_COLOR=2 turbo run dev --parallel",
"lint": "FORCE_COLOR=2 turbo run lint",
Expand Down
14 changes: 7 additions & 7 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"$schema": "https://turborepo.org/schema.json",
"pipeline": {
"build:app": {
"dependsOn": ["^build"],
"outputs": ["dist/**"]
},
"build": {
"dependsOn": [
"^build"
],
"outputs": [
"dist/**"
]
"dependsOn": ["^build"],
"outputs": ["dist/**"]
},
"lint": {},
"format": {},
Expand All @@ -17,4 +17,4 @@
"cache": false
}
}
}
}

0 comments on commit 77b9f3b

Please sign in to comment.