Skip to content

Commit

Permalink
Bumps svelte kit in website docs (#4038)
Browse files Browse the repository at this point in the history
  • Loading branch information
walmazacn authored Dec 2, 2024
1 parent c053ee9 commit d101476
Show file tree
Hide file tree
Showing 8 changed files with 5,843 additions and 4,563 deletions.
1 change: 1 addition & 0 deletions website/docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ vite.config.ts.timestamp-*
/src/assets
/src/images
/src/lib/data/docs.json
/test-results
sitemap.xml
10,230 changes: 5,750 additions & 4,480 deletions website/docs/package-lock.json

Large diffs are not rendered by default.

130 changes: 66 additions & 64 deletions website/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,66 +1,68 @@
{
"name": "docu-page",
"version": "0.0.1",
"type": "module",
"private": true,
"scripts": {
"core": "npm run serve-core",
"client": "vite dev --port 4001",
"clear-ports": "kill -9 $(lsof -ti:4000,4001)",
"build": "npm run pre-build && vite build && npm run copy-docs-html",
"vite-build": "vite build",
"preview": "vite preview --port 4001",
"test": "playwright test",
"serve-core": "sirv public --single --port 4000",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"test:unit": "vitest",
"fetchversions": "curl -H \"Accept: application/vnd.github.v3+json\" https://api.github.com/repos/SAP/luigi/tags?per_page=100 > ./public/versions.json",
"pre-build": "sh ./scripts/move-export.sh && npm run fetchversions && npm run compilecorescss && npm run bundleLuigiConfig && npm run generateSitemap && npm run buildMarkdownDocu",
"copy-docs-html": "cp -R build/* public/docu-microfrontend",
"compilecorescss": "sass --no-source-map ./src/luigi-config/styles/index.scss ./public/coreStyles.css",
"bundleLuigiConfig": "esbuild src/luigi-config/extended/main.js --bundle --minify --outfile=./public/luigi-config.bundle.js",
"buildMarkdownDocu": "node src/markdown-conversion/plugins/buildDocsContent.js",
"generateSitemap": "node ./scripts/generate-docu-sitemap.js"
},
"devDependencies": {
"@docsearch/js": "^3.4.0",
"@playwright/test": "^1.28.1",
"@rollup/plugin-json": "^6.0.0",
"@sveltejs/adapter-static": "^3.0.4",
"@sveltejs/kit": "^2.5.25",
"@types/lodash.orderby": "^4.6.7",
"algoliasearch": "^4.17.0",
"hastscript": "^9.0.0",
"hogan.js": "^3.0.2",
"rehype-autolink-headings": "^7.1.0",
"rehype-format": "^5.0.0",
"rehype-slug": "^6.0.0",
"rehype-stringify": "^10.0.0",
"rollup": "^4.24.0",
"sass": "^1.62.1",
"sirv-cli": "^2.0.2",
"svelte": "^4.2.8",
"svelte-check": "^4.0.0",
"typescript": "^5.3.3",
"vite": "^5.4.8",
"vitest": "^2.0.5"
},
"dependencies": {
"@agentofuser/rehype-section": "^1.0.5",
"@luigi-project/client": "2.2.0",
"@luigi-project/core": "2.0.1",
"esbuild": "^0.18.20",
"hast-util-has-property": "3.0.0",
"lodash.orderby": "^4.6.0",
"rehype-raw": "^7.0.0",
"remark-frontmatter": "^5.0.0",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.1.0",
"unified": "^11.0.5",
"unist-util-visit": "^5.0.0"
},
"engines": {
"node": ">=18.19.1"
}
"name": "docu-page",
"version": "0.0.1",
"type": "module",
"private": true,
"scripts": {
"core": "npm run serve-core",
"client": "vite dev --port 4001",
"clear-ports": "kill -9 $(lsof -ti:4000,4001)",
"build": "npm run pre-build && vite build && npm run copy-docs-html",
"vite-build": "vite build",
"preview": "vite preview --port 4001",
"test": "npx playwright test",
"serve-core": "sirv public --single --port 4000",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"test:unit": "vitest",
"fetchversions": "curl -H \"Accept: application/vnd.github.v3+json\" https://api.github.com/repos/SAP/luigi/tags?per_page=100 > ./public/versions.json",
"pre-build": "sh ./scripts/move-export.sh && npm run fetchversions && npm run compilecorescss && npm run bundleLuigiConfig && npm run generateSitemap && npm run buildMarkdownDocu",
"copy-docs-html": "cp -R build/* public/docu-microfrontend",
"compilecorescss": "sass --no-source-map ./src/luigi-config/styles/index.scss ./public/coreStyles.css",
"bundleLuigiConfig": "esbuild src/luigi-config/extended/main.js --bundle --minify --outfile=./public/luigi-config.bundle.js",
"buildMarkdownDocu": "node src/markdown-conversion/plugins/buildDocsContent.js",
"generateSitemap": "node ./scripts/generate-docu-sitemap.js"
},
"dependencies": {
"@agentofuser/rehype-section": "^1.0.5",
"@luigi-project/client": "2.18.0",
"@luigi-project/core": "2.18.0",
"esbuild": "^0.18.20",
"hast-util-has-property": "3.0.0",
"lodash.orderby": "^4.6.0",
"rehype-raw": "^7.0.0",
"remark-frontmatter": "^5.0.0",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.1.0",
"unified": "^11.0.5",
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
"@docsearch/js": "^3.4.0",
"@playwright/test": "^1.49.0",
"@rollup/plugin-json": "^6.0.0",
"@sveltejs/adapter-static": "^3.0.6",
"@sveltejs/kit": "^2.8.5",
"@sveltejs/vite-plugin-svelte": "^3.0.2",
"@types/lodash.orderby": "^4.6.7",
"algoliasearch": "^4.17.0",
"hastscript": "^9.0.0",
"hogan.js": "^3.0.2",
"rehype-autolink-headings": "^7.1.0",
"rehype-format": "^5.0.0",
"rehype-slug": "^6.0.0",
"rehype-stringify": "^10.0.0",
"rollup": "^4.24.0",
"sass": "^1.62.1",
"sass-embedded": "^1.81.0",
"sirv-cli": "^2.0.2",
"svelte": "^4.0.5",
"svelte-check": "^4.1.0",
"typescript": "^5.3.3",
"vite": "^5.0.3",
"vitest": "^2.0.5"
},
"engines": {
"node": ">=18.19.1"
}
}
22 changes: 12 additions & 10 deletions website/docs/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import type { PlaywrightTestConfig } from '@playwright/test';
import { defineConfig } from '@playwright/test';

const config: PlaywrightTestConfig = {
webServer: {
command: 'npm run build && npm run preview',
port: 4173
},
testDir: 'tests'
};

export default config;
export default defineConfig({
webServer: {
command: 'npm run build && npm run core',
timeout: 120 * 1000,
url: 'http://localhost:4000'
},
use: {
baseURL: 'http://localhost:4000'
},
testDir: 'tests'
});
4 changes: 1 addition & 3 deletions website/docs/src/luigi-config/styles/index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@use './search' as *;
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Quicksand:500&display=swap');

// Icon font
Expand Down Expand Up @@ -609,6 +610,3 @@ $side-nav-width-mobile: 260px;
}
}
}


@import './search';
6 changes: 6 additions & 0 deletions website/docs/tests/test.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { expect, test } from '@playwright/test';

test('index page has expected title', async ({ page }) => {
await page.goto('/');
await expect(page).toHaveTitle(/Documentation - Luigi/);
});
6 changes: 0 additions & 6 deletions website/docs/tests/test.ts

This file was deleted.

7 changes: 7 additions & 0 deletions website/docs/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ import { defineConfig } from 'vitest/config';

export default defineConfig({
plugins: [sveltekit()],
css: {
preprocessorOptions: {
scss: {
api: 'modern-compiler'
}
}
},
test: {
include: ['src/**/*.{test,spec}.{js,ts}']
},
Expand Down

0 comments on commit d101476

Please sign in to comment.