Skip to content

Commit

Permalink
remve highlight js
Browse files Browse the repository at this point in the history
  • Loading branch information
Riley1101 committed Dec 7, 2023
1 parent ad4fa33 commit 349a3b6
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 109 deletions.
17 changes: 0 additions & 17 deletions hooks.client.js

This file was deleted.

140 changes: 69 additions & 71 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,73 +1,71 @@
{
"name": "shaniit",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node build",
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch",
"lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write .",
"dev-prepare": "husky install"
},
"devDependencies": {
"@flydotio/dockerfile": "^0.4.11",
"@portabletext/svelte": "^2.1.4",
"@sveltejs/adapter-auto": "^2.1.1",
"@sveltejs/adapter-cloudflare": "^2.3.4",
"@sveltejs/adapter-node": "^1.3.1",
"@sveltejs/kit": "^1.27.7",
"@tailwindcss/typography": "^0.5.10",
"@types/prismjs": "^1.26.3",
"autoprefixer": "^10.4.16",
"carbon-components-svelte": "^0.75.1",
"carbon-icons-svelte": "^11.4.0",
"eslint": "^8.55.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-svelte": "^2.35.1",
"husky": "^8.0.3",
"postcss": "^8.4.32",
"prettier": "^2.8.8",
"prettier-plugin-svelte": "^2.10.1",
"sass": "^1.69.5",
"svelte": "^3.59.2",
"svelte-check": "^3.6.2",
"tailwindcss": "^3.3.6",
"typescript": "^5.3.3",
"vite": "^4.5.1"
},
"type": "module",
"dependencies": {
"@algolia/autocomplete-js": "^1.12.2",
"@algolia/autocomplete-theme-classic": "^1.12.2",
"@carbon/charts-svelte": "^1.13.8",
"@carbon/styles": "^1.44.0",
"@sanity/client": "^6.9.2",
"@sanity/code-input": "^4.1.1",
"@sanity/color-input": "^3.1.0",
"@sanity/icons": "^2.7.0",
"@sanity/image-url": "^1.0.2",
"@sanity/vision": "^3.21.0",
"algoliasearch": "^4.20.0",
"carbon-preprocess-svelte": "^0.9.1",
"d3": "^7.8.5",
"d3-cloud": "^1.2.7",
"d3-sankey": "^0.12.3",
"highlight.js": "^11.9.0",
"highlight.run": "^8.3.0",
"instantsearch.js": "^4.62.0",
"moment": "^2.29.4",
"posthog-js": "^1.93.6",
"prismjs": "^1.29.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.12.0",
"sanity": "^3.21.0",
"sanity-plugin-asset-source-unsplash": "^1.1.2",
"sanity-plugin-graph-view": "^2.0.1",
"svelte-preprocess": "^5.1.1"
}
"name": "shaniit",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node build",
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch",
"lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write .",
"dev-prepare": "husky install"
},
"devDependencies": {
"@flydotio/dockerfile": "^0.4.11",
"@portabletext/svelte": "^2.1.4",
"@sveltejs/adapter-auto": "^2.1.1",
"@sveltejs/adapter-cloudflare": "^2.3.4",
"@sveltejs/adapter-node": "^1.3.1",
"@sveltejs/kit": "^1.27.7",
"@tailwindcss/typography": "^0.5.10",
"@types/prismjs": "^1.26.3",
"autoprefixer": "^10.4.16",
"carbon-components-svelte": "^0.75.1",
"carbon-icons-svelte": "^11.4.0",
"eslint": "^8.55.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-svelte": "^2.35.1",
"husky": "^8.0.3",
"postcss": "^8.4.32",
"prettier": "^2.8.8",
"prettier-plugin-svelte": "^2.10.1",
"sass": "^1.69.5",
"svelte": "^3.59.2",
"svelte-check": "^3.6.2",
"tailwindcss": "^3.3.6",
"typescript": "^5.3.3",
"vite": "^4.5.1"
},
"type": "module",
"dependencies": {
"@algolia/autocomplete-js": "^1.12.2",
"@algolia/autocomplete-theme-classic": "^1.12.2",
"@carbon/charts-svelte": "^1.13.8",
"@carbon/styles": "^1.44.0",
"@sanity/client": "^6.9.2",
"@sanity/code-input": "^4.1.1",
"@sanity/color-input": "^3.1.0",
"@sanity/icons": "^2.7.0",
"@sanity/image-url": "^1.0.2",
"@sanity/vision": "^3.21.0",
"algoliasearch": "^4.20.0",
"carbon-preprocess-svelte": "^0.9.1",
"d3": "^7.8.5",
"d3-cloud": "^1.2.7",
"d3-sankey": "^0.12.3",
"instantsearch.js": "^4.62.0",
"moment": "^2.29.4",
"posthog-js": "^1.93.6",
"prismjs": "^1.29.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.12.0",
"sanity": "^3.21.0",
"sanity-plugin-asset-source-unsplash": "^1.1.2",
"sanity-plugin-graph-view": "^2.0.1",
"svelte-preprocess": "^5.1.1"
}
}
15 changes: 0 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
<script>
import { initAnalytics } from '$lib/utils/analytics';
import 'carbon-components-svelte/css/g10.css';
import '@algolia/autocomplete-theme-classic';
import '@carbon/charts-svelte/styles.css';
import '$lib/styles/onedark.css';
import '$lib/styles/app.css';
import Container from '$lib/components/common/Container.svelte';
import { onMount } from 'svelte';
onMount(() => {
initAnalytics();
});
</script>

<Container>
Expand Down
8 changes: 2 additions & 6 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
import { optimizeImports } from 'carbon-preprocess-svelte';

const ENV = process.env.NODE_ENV;

export default defineConfig({
plugins: [
sveltekit({
preprocess: [optimizeImports()]
})
],
plugins: [sveltekit()],
ssr: {
noExternal: ENV === 'production' ? ['instantsearch.js', 'algoliasearch', '@carbon/charts'] : []
}
Expand Down

0 comments on commit 349a3b6

Please sign in to comment.