Skip to content

Commit

Permalink
Add netlify configs
Browse files Browse the repository at this point in the history
  • Loading branch information
jarda-svoboda committed Jul 10, 2023
1 parent b37f6dc commit 14cc37e
Show file tree
Hide file tree
Showing 45 changed files with 99 additions and 70 deletions.
1 change: 0 additions & 1 deletion examples/component-scoped-csr/.npmrc

This file was deleted.

5 changes: 5 additions & 0 deletions examples/component-scoped-csr/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[build]
command = "cd ../../ && npm run build && npm run build --workspace component-scoped-csr"
publish = "build"
[functions]
node_bundler = "esbuild"
2 changes: 1 addition & 1 deletion examples/component-scoped-csr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"prepare": "svelte-kit sync"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.1.0",
"@sveltejs/adapter-netlify": "^2.0.7",
"@sveltejs/kit": "^1.22.1",
"svelte": "^4.0.5",
"vite": "^4.4.2"
Expand Down
2 changes: 1 addition & 1 deletion examples/component-scoped-csr/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable */
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-netlify';

/** @type {import('@sveltejs/kit').Config} */
const config = {
Expand Down
1 change: 0 additions & 1 deletion examples/component-scoped-ssr/.npmrc

This file was deleted.

5 changes: 5 additions & 0 deletions examples/component-scoped-ssr/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[build]
command = "cd ../../ && npm run build && npm run build --workspace component-scoped-ssr"
publish = "build"
[functions]
node_bundler = "esbuild"
2 changes: 1 addition & 1 deletion examples/component-scoped-ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"prepare": "svelte-kit sync"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.1.0",
"@sveltejs/adapter-netlify": "^2.0.7",
"@sveltejs/kit": "^1.22.1",
"svelte": "^4.0.5",
"vite": "^4.4.2"
Expand Down
2 changes: 1 addition & 1 deletion examples/component-scoped-ssr/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable */
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-netlify';

/** @type {import('@sveltejs/kit').Config} */
const config = {
Expand Down
1 change: 0 additions & 1 deletion examples/duplicit-load-prevention/.npmrc

This file was deleted.

5 changes: 5 additions & 0 deletions examples/duplicit-load-prevention/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[build]
command = "cd ../../ && npm run build && npm run build --workspace duplicit-load-prevention"
publish = "build"
[functions]
node_bundler = "esbuild"
2 changes: 1 addition & 1 deletion examples/duplicit-load-prevention/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"prepare": "svelte-kit sync"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.1.0",
"@sveltejs/adapter-netlify": "^2.0.7",
"@sveltejs/kit": "^1.22.1",
"svelte": "^4.0.5",
"vite": "^4.4.2"
Expand Down
2 changes: 1 addition & 1 deletion examples/duplicit-load-prevention/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-netlify';

/** @type {import('@sveltejs/kit').Config} */
const config = {
Expand Down
1 change: 0 additions & 1 deletion examples/fallback-locale/.npmrc

This file was deleted.

5 changes: 5 additions & 0 deletions examples/fallback-locale/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[build]
command = "cd ../../ && npm run build && npm run build --workspace fallback-locale"
publish = "build"
[functions]
node_bundler = "esbuild"
2 changes: 1 addition & 1 deletion examples/fallback-locale/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"prepare": "svelte-kit sync"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.1.0",
"@sveltejs/adapter-netlify": "^2.0.7",
"@sveltejs/kit": "^1.22.1",
"svelte": "^4.0.5",
"vite": "^4.4.2"
Expand Down
2 changes: 1 addition & 1 deletion examples/fallback-locale/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable */
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-netlify';

/** @type {import('@sveltejs/kit').Config} */
const config = {
Expand Down
1 change: 0 additions & 1 deletion examples/locale-router-static/.npmrc

This file was deleted.

5 changes: 5 additions & 0 deletions examples/locale-router-static/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[build]
command = "cd ../../ && npm run build && npm run build --workspace locale-router-static"
publish = "build"
[functions]
node_bundler = "esbuild"
2 changes: 1 addition & 1 deletion examples/locale-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"prepare": "svelte-kit sync"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.1.0",
"@sveltejs/adapter-netlify": "^2.0.7",
"@sveltejs/kit": "^1.22.1",
"svelte": "^4.0.5",
"vite": "^4.4.2"
Expand Down
2 changes: 1 addition & 1 deletion examples/locale-router/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable */
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-netlify';

/** @type {import('@sveltejs/kit').Config} */
const config = {
Expand Down
1 change: 0 additions & 1 deletion examples/multi-page/.npmrc

This file was deleted.

5 changes: 5 additions & 0 deletions examples/multi-page/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[build]
command = "cd ../../ && npm run build && npm run build --workspace multi-page"
publish = "build"
[functions]
node_bundler = "esbuild"
2 changes: 1 addition & 1 deletion examples/multi-page/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"prepare": "svelte-kit sync"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.1.0",
"@sveltejs/adapter-netlify": "^2.0.7",
"@sveltejs/kit": "^1.22.1",
"svelte": "^4.0.5",
"vite": "^4.4.2"
Expand Down
2 changes: 1 addition & 1 deletion examples/multi-page/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable */
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-netlify';

/** @type {import('@sveltejs/kit').Config} */
const config = {
Expand Down
1 change: 0 additions & 1 deletion examples/one-page/.npmrc

This file was deleted.

5 changes: 5 additions & 0 deletions examples/one-page/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[build]
command = "cd ../../ && npm run build && npm run build --workspace one-page"
publish = "build"
[functions]
node_bundler = "esbuild"
2 changes: 1 addition & 1 deletion examples/one-page/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"prepare": "svelte-kit sync"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.1.0",
"@sveltejs/adapter-netlify": "^2.0.7",
"@sveltejs/kit": "^1.22.1",
"svelte": "^4.0.5",
"vite": "^4.4.2"
Expand Down
2 changes: 1 addition & 1 deletion examples/one-page/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable */

import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-netlify';

/** @type {import('@sveltejs/kit').Config} */
const config = {
Expand Down
1 change: 0 additions & 1 deletion examples/parser-default/.npmrc

This file was deleted.

5 changes: 5 additions & 0 deletions examples/parser-default/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[build]
command = "cd ../../ && npm run build && npm run build --workspace parser-default"
publish = "build"
[functions]
node_bundler = "esbuild"
4 changes: 2 additions & 2 deletions examples/parser-default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.1.0",
"@sveltejs/adapter-netlify": "^2.0.7",
"@sveltejs/kit": "^1.22.1",
"svelte": "^4.0.5",
"svelte-check": "^3.4.5",
Expand All @@ -25,4 +25,4 @@
"@sveltekit-i18n/base": "file:../../node_modules/@sveltekit-i18n/base",
"@sveltekit-i18n/parser-default": "file:../../node_modules/@sveltekit-i18n/parser-default"
}
}
}
2 changes: 1 addition & 1 deletion examples/parser-default/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable */
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-netlify';
import preprocess from 'svelte-preprocess';

/** @type {import('@sveltejs/kit').Config} */
Expand Down
1 change: 0 additions & 1 deletion examples/parser-icu/.npmrc

This file was deleted.

5 changes: 5 additions & 0 deletions examples/parser-icu/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[build]
command = "cd ../../ && npm run build && npm run build --workspace parser-icu"
publish = "build"
[functions]
node_bundler = "esbuild"
2 changes: 1 addition & 1 deletion examples/parser-icu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.1.0",
"@sveltejs/adapter-netlify": "^2.0.7",
"@sveltejs/kit": "^1.22.1",
"svelte": "^4.0.5",
"svelte-check": "^3.4.5",
Expand Down
2 changes: 1 addition & 1 deletion examples/parser-icu/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable */
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-netlify';
import preprocess from 'svelte-preprocess';

/** @type {import('@sveltejs/kit').Config} */
Expand Down
1 change: 0 additions & 1 deletion examples/preprocess/.npmrc

This file was deleted.

5 changes: 5 additions & 0 deletions examples/preprocess/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[build]
command = "cd ../../ && npm run build && npm run build --workspace preprocess"
publish = "build"
[functions]
node_bundler = "esbuild"
2 changes: 1 addition & 1 deletion examples/preprocess/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"prepare": "svelte-kit sync"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.1.0",
"@sveltejs/adapter-netlify": "^2.0.7",
"@sveltejs/kit": "^1.22.1",
"svelte": "^4.0.5",
"vite": "^4.4.2"
Expand Down
2 changes: 1 addition & 1 deletion examples/preprocess/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable */
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-netlify';

/** @type {import('@sveltejs/kit').Config} */
const config = {
Expand Down
1 change: 0 additions & 1 deletion examples/single-load/.npmrc

This file was deleted.

5 changes: 5 additions & 0 deletions examples/single-load/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[build]
command = "cd ../../ && npm run build && npm run build --workspace single-load"
publish = "build"
[functions]
node_bundler = "esbuild"
15 changes: 11 additions & 4 deletions examples/single-load/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
{
"name": "single-load",
"name": "parser-icu",
"version": "0.0.1",
"scripts": {
"dev": "vite dev",
"build": "vite build",
"package": "svelte-kit package",
"preview": "vite preview",
"prepare": "svelte-kit sync"
"prepare": "svelte-kit sync",
"check": "svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.1.0",
"@sveltejs/adapter-netlify": "^2.0.7",
"@sveltejs/kit": "^1.22.1",
"svelte": "^4.0.5",
"svelte-check": "^3.4.5",
"svelte-preprocess": "^5.0.4",
"tslib": "^2.3.1",
"typescript": "^5.1.6",
"vite": "^4.4.2"
},
"type": "module",
"dependencies": {
"sveltekit-i18n": "file:../../"
"@sveltekit-i18n/base": "file:../../node_modules/@sveltekit-i18n/base",
"@sveltekit-i18n/parser-icu": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion examples/single-load/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable */
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-netlify';

/** @type {import('@sveltejs/kit').Config} */
const config = {
Expand Down
Loading

0 comments on commit 14cc37e

Please sign in to comment.