mishig HF staff commited on
Commit
f09e28b
1 Parent(s): e8d6409

prepare build

Browse files
Files changed (4) hide show
  1. README.md +11 -38
  2. package-lock.json +13 -0
  3. package.json +1 -0
  4. svelte.config.js +13 -6
README.md CHANGED
@@ -1,38 +1,11 @@
1
- # create-svelte
2
-
3
- Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
4
-
5
- ## Creating a project
6
-
7
- If you're seeing this, you've probably already done this step. Congrats!
8
-
9
- ```bash
10
- # create a new project in the current directory
11
- npm create svelte@latest
12
-
13
- # create a new project in my-app
14
- npm create svelte@latest my-app
15
- ```
16
-
17
- ## Developing
18
-
19
- Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
20
-
21
- ```bash
22
- npm run dev
23
-
24
- # or start the server and open the app in a new browser tab
25
- npm run dev -- --open
26
- ```
27
-
28
- ## Building
29
-
30
- To create a production version of your app:
31
-
32
- ```bash
33
- npm run build
34
- ```
35
-
36
- You can preview the production build with `npm run preview`.
37
-
38
- > To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
 
1
+ ---
2
+ title: Diffuse The Rest
3
+ emoji: ⚡️
4
+ colorFrom: yellow
5
+ colorTo: red
6
+ sdk: static
7
+ pinned: false
8
+ app_file: build/index.html
9
+ ---
10
+
11
+ # Diffuse The Rest
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
package-lock.json CHANGED
@@ -9,6 +9,7 @@
9
  "version": "0.0.1",
10
  "devDependencies": {
11
  "@sveltejs/adapter-auto": "next",
 
12
  "@sveltejs/kit": "next",
13
  "@typescript-eslint/eslint-plugin": "^5.27.0",
14
  "@typescript-eslint/parser": "^5.27.0",
@@ -259,6 +260,12 @@
259
  "tiny-glob": "^0.2.9"
260
  }
261
  },
 
 
 
 
 
 
262
  "node_modules/@sveltejs/adapter-vercel": {
263
  "version": "1.0.0-next.67",
264
  "resolved": "https://registry.npmjs.org/@sveltejs/adapter-vercel/-/adapter-vercel-1.0.0-next.67.tgz",
@@ -4083,6 +4090,12 @@
4083
  "tiny-glob": "^0.2.9"
4084
  }
4085
  },
 
 
 
 
 
 
4086
  "@sveltejs/adapter-vercel": {
4087
  "version": "1.0.0-next.67",
4088
  "resolved": "https://registry.npmjs.org/@sveltejs/adapter-vercel/-/adapter-vercel-1.0.0-next.67.tgz",
 
9
  "version": "0.0.1",
10
  "devDependencies": {
11
  "@sveltejs/adapter-auto": "next",
12
+ "@sveltejs/adapter-static": "^1.0.0-next.39",
13
  "@sveltejs/kit": "next",
14
  "@typescript-eslint/eslint-plugin": "^5.27.0",
15
  "@typescript-eslint/parser": "^5.27.0",
 
260
  "tiny-glob": "^0.2.9"
261
  }
262
  },
263
+ "node_modules/@sveltejs/adapter-static": {
264
+ "version": "1.0.0-next.39",
265
+ "resolved": "https://registry.npmjs.org/@sveltejs/adapter-static/-/adapter-static-1.0.0-next.39.tgz",
266
+ "integrity": "sha512-EeD39H6iEe0UEKnKxLFTZFZpi/FcX5xfbAvsMQ+B09aDZccpQmkJBSIo+4kq1JsQGSjwi/+J3aE9bR67R6CIyQ==",
267
+ "dev": true
268
+ },
269
  "node_modules/@sveltejs/adapter-vercel": {
270
  "version": "1.0.0-next.67",
271
  "resolved": "https://registry.npmjs.org/@sveltejs/adapter-vercel/-/adapter-vercel-1.0.0-next.67.tgz",
 
4090
  "tiny-glob": "^0.2.9"
4091
  }
4092
  },
4093
+ "@sveltejs/adapter-static": {
4094
+ "version": "1.0.0-next.39",
4095
+ "resolved": "https://registry.npmjs.org/@sveltejs/adapter-static/-/adapter-static-1.0.0-next.39.tgz",
4096
+ "integrity": "sha512-EeD39H6iEe0UEKnKxLFTZFZpi/FcX5xfbAvsMQ+B09aDZccpQmkJBSIo+4kq1JsQGSjwi/+J3aE9bR67R6CIyQ==",
4097
+ "dev": true
4098
+ },
4099
  "@sveltejs/adapter-vercel": {
4100
  "version": "1.0.0-next.67",
4101
  "resolved": "https://registry.npmjs.org/@sveltejs/adapter-vercel/-/adapter-vercel-1.0.0-next.67.tgz",
package.json CHANGED
@@ -13,6 +13,7 @@
13
  },
14
  "devDependencies": {
15
  "@sveltejs/adapter-auto": "next",
 
16
  "@sveltejs/kit": "next",
17
  "@typescript-eslint/eslint-plugin": "^5.27.0",
18
  "@typescript-eslint/parser": "^5.27.0",
 
13
  },
14
  "devDependencies": {
15
  "@sveltejs/adapter-auto": "next",
16
+ "@sveltejs/adapter-static": "^1.0.0-next.39",
17
  "@sveltejs/kit": "next",
18
  "@typescript-eslint/eslint-plugin": "^5.27.0",
19
  "@typescript-eslint/parser": "^5.27.0",
svelte.config.js CHANGED
@@ -1,17 +1,24 @@
1
- import adapter from '@sveltejs/adapter-auto';
2
  import preprocess from 'svelte-preprocess';
3
 
 
 
 
4
  /** @type {import('@sveltejs/kit').Config} */
5
  const config = {
6
  // Consult https://github.com/sveltejs/svelte-preprocess
7
  // for more information about preprocessors
8
- preprocess: preprocess({
9
- postcss: true
10
- }),
11
 
12
  kit: {
13
- adapter: adapter()
 
 
 
 
 
 
14
  }
15
  };
16
 
17
- export default config;
 
1
+ import adapter from '@sveltejs/adapter-static';
2
  import preprocess from 'svelte-preprocess';
3
 
4
+ const dev = process.env.NODE_ENV === 'development';
5
+
6
+
7
  /** @type {import('@sveltejs/kit').Config} */
8
  const config = {
9
  // Consult https://github.com/sveltejs/svelte-preprocess
10
  // for more information about preprocessors
11
+ preprocess: preprocess(),
 
 
12
 
13
  kit: {
14
+ paths: {
15
+ base: dev ? '' : '/staticspaceiframe/huggingface/diffuse-the-rest/build',
16
+ },
17
+ adapter: adapter(),
18
+ prerender:{
19
+ default: true,
20
+ }
21
  }
22
  };
23
 
24
+ export default config;