Skip to content

Commit

Permalink
build: deps lock for sveltinio to work
Browse files Browse the repository at this point in the history
  • Loading branch information
xmlking committed Oct 1, 2023
1 parent 01db822 commit 5f29c3f
Show file tree
Hide file tree
Showing 8 changed files with 2,700 additions and 145 deletions.
1 change: 1 addition & 0 deletions apps/docs/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
kashmora.com
10 changes: 5 additions & 5 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "docs",
"version": "0.0.1",
"private": true,
"type": "module",
"scripts": {
"dev": "vite dev --port 3002",
"dev:debug": "DEBUG=* vite dev",
Expand All @@ -28,7 +29,7 @@
"@sveltinio/remark-headings": "1.0.3",
"@sveltinio/seo": "0.4.2",
"@sveltinio/services": "0.4.2",
"@sveltinio/widgets": "0.7.7",
"@sveltinio/widgets": "0.7.4",
"@tailwindcss/aspect-ratio": "0.4.2",
"@tailwindcss/typography": "0.5.10",
"@types/gtag.js": "0.0.14",
Expand Down Expand Up @@ -57,7 +58,7 @@
"rehype-external-links": "3.0.0",
"rehype-slug": "6.0.0",
"remark-emoji": "4.0.0",
"remark-reading-time": "2.0.1",
"remark-reading-time": "1.0.1",
"rimraf": "5.0.5",
"svelte": "4.2.1",
"svelte-check": "3.5.2",
Expand All @@ -69,6 +70,5 @@
"vite": "4.4.9",
"vite-imagetools": "5.0.8",
"vite-plugin-tailwind-purgecss": "0.1.3"
},
"type": "module"
}
}
}
2 changes: 1 addition & 1 deletion apps/docs/src/routes/api/v1/sveltin/+server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { RequestHandler } from './$types';
import { sveltinVersion, sveltekitVersion, buildTime } from '$config/defaults.js';
import type { RequestHandler } from './$types';

export const prerender = true;

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/routes/posts/[slug]/+page.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { PageLoad } from './$types';
import { error } from '@sveltejs/kit';
import { getSingle } from '$lib/posts/loadPosts';
import type { PageLoad } from './$types';

export const load = (async ({ params }) => {
const { slug } = params;
Expand Down
1 change: 1 addition & 0 deletions apps/docs/svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const config = {
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter({
// default options are shown
pages: 'build',
assets: 'build',
fallback: '200.html',
Expand Down
20 changes: 7 additions & 13 deletions apps/docs/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import { resolve, join, dirname } from 'node:path';
import path from 'node:path';
import { readFileSync } from 'node:fs';
import { fileURLToPath } from 'node:url';
import { sveltekit } from '@sveltejs/kit/vite';
import { imagetools } from 'vite-imagetools';
import { purgeCss } from 'vite-plugin-tailwind-purgecss';
import { defineConfig } from 'vite';

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

const file = fileURLToPath(new URL('package.json', import.meta.url));
const json = readFileSync(file, 'utf8');
const pkg = JSON.parse(json);
Expand All @@ -20,7 +17,6 @@ export default defineConfig({
'process.env.VITE_BUILD_TIME': JSON.stringify(new Date().toISOString())
},
server: {
port: 5173,
fs: {
// Allow serving files from one level up to the project root
// Alternatevaly set server.fs.strict to false
Expand All @@ -29,15 +25,13 @@ export default defineConfig({
},
resolve: {
alias: {
$sveltin: resolve(join(__dirname, './src/sveltin')),
$config: resolve(join(__dirname, './config')),
$content: resolve(join(__dirname, './content')),
$themes: resolve(join(__dirname, './themes'))
$sveltin: path.resolve('./src/sveltin'),
$config: path.resolve('./config'),
$content: path.resolve('./content'),
$data: path.resolve('./data'),
$themes: path.resolve('./themes')
}
},
plugins: [sveltekit(), imagetools(), purgeCss()],
ssr: { noExternal: ['@indaco/svelte-iconoir/**'] },
test: {
include: ['src/**/*.{test,spec}.{js,ts}']
}
ssr: { noExternal: ['@indaco/svelte-iconoir/**'] }
});
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,20 @@
"turbo": "1.10.14",
"vitest": "0.34.6"
},
"overrides": {
"remark-reading-time": "1.0.1",
"@sveltinio/widgets": "0.7.4"
},
"pnpm": {
"overrides": {
"remark-reading-time": "1.0.1",
"@sveltinio/widgets": "0.7.4"
}
},
"packageManager": "pnpm@8.7.6",
"engines": {
"node": ">=18",
"pnpm": ">=8"
},
"version": "0.1.2"
}
}
Loading

1 comment on commit 5f29c3f

@vercel
Copy link

@vercel vercel bot commented on 5f29c3f Oct 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

spectacular-playground – ./apps/playground

spectacular-playground.vercel.app
spectacular-playground-git-main-xmlking.vercel.app
spectacular-playground-xmlking.vercel.app

Please sign in to comment.