Skip to content

Commit 88e8fcd

Browse files
committed
feat(docs): move to src directory & add more things in the introducing-plugins post
1 parent 36d3dee commit 88e8fcd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+118
-73
lines changed

apps/discord-bot/src/commands/slash/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { SparkCommand, CommandType } from '@spark.ts/handler';
2-
import { ownerOnlySlash } from '../../plugins/ownerOnly';
2+
import { ownerOnlySlash } from '~/plugins/ownerOnly';
33

44
export default new SparkCommand({
55
type: CommandType.Slash,

apps/discord-bot/src/commands/text/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { SparkCommand, CommandType } from '@spark.ts/handler';
2-
import { ownerOnlyText } from '../../plugins/ownerOnly';
2+
import { ownerOnlyText } from '~/plugins/ownerOnly';
33

44
export default new SparkCommand({
55
type: CommandType.Text,

apps/discord-bot/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { SparkClient } from '@spark.ts/handler';
2-
import { env } from './util/env.js';
2+
import { env } from '~/util/env.js';
33

44
const client = new SparkClient({
55
intents: ['Guilds', 'MessageContent', 'GuildMessages'],

apps/discord-bot/tsconfig.json

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
{
2-
"exclude": ["dist", "node_modules"],
3-
"include": ["src"],
2+
"exclude": [
3+
"dist",
4+
"node_modules"
5+
],
6+
"include": [
7+
"src"
8+
],
49
"compilerOptions": {
510
"module": "ESNext",
611
"target": "ESNext",
712
"skipLibCheck": true,
813
"moduleResolution": "node",
914
"strict": true,
1015
"sourceMap": true,
11-
1216
/* Paths */
1317
"outDir": "./dist",
1418
"rootDir": "./src",
15-
1619
/* The "No" Corner */
1720
"noImplicitAny": false,
1821
"noImplicitOverride": true,
@@ -21,18 +24,21 @@
2124
"noUncheckedIndexedAccess": true,
2225
"noUnusedLocals": true,
2326
"noUnusedParameters": true,
24-
2527
/* Strict */
2628
"strictBindCallApply": true,
2729
"strictFunctionTypes": true,
2830
"strictNullChecks": true,
2931
"strictPropertyInitialization": true,
3032
"useUnknownInCatchVariables": true,
31-
3233
/* Other settings */
3334
"esModuleInterop": true,
3435
"exactOptionalPropertyTypes": true,
3536
"experimentalDecorators": true,
36-
"forceConsistentCasingInFileNames": true
37+
"forceConsistentCasingInFileNames": true,
38+
"paths": {
39+
"~/*": [
40+
"./src/*"
41+
]
42+
},
3743
}
3844
}

apps/docs/pages/blog.mdx

Lines changed: 0 additions & 38 deletions
This file was deleted.

apps/docs/pages/index.mdx

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Link from 'next/link';
2-
import type { Feature as Feat } from '../content/features';
2+
import type { Feature as Feat } from '~/content/features';
33

44
type FeatureProps = {
55
feature: Omit<Feat, 'page'>;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { DOCS_FEATURES, HOME_FEATURES } from '../content/features';
2+
import { DOCS_FEATURES, HOME_FEATURES } from '~/content/features';
33
import Feature from './Feature';
44

55
export function DetailedFeaturesGrid({

0 commit comments

Comments
 (0)