This commit is contained in:
Ollie Taylor
2023-02-23 13:33:00 +00:00
10 changed files with 1561 additions and 31 deletions
+8
View File
@@ -0,0 +1,8 @@
# Changesets
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
+11
View File
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
+4 -4
View File
@@ -6,15 +6,15 @@ module.exports = {
ignorePatterns: ['*.cjs'], ignorePatterns: ['*.cjs'],
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }], overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
settings: { settings: {
'svelte3/typescript': () => require('typescript') 'svelte3/typescript': () => require('typescript'),
}, },
parserOptions: { parserOptions: {
sourceType: 'module', sourceType: 'module',
ecmaVersion: 2020 ecmaVersion: 2020,
}, },
env: { env: {
browser: true, browser: true,
es2017: true, es2017: true,
node: true node: true,
} },
}; };
+10 -9
View File
@@ -3,6 +3,9 @@ on:
push: push:
branches: branches:
- 'main' - 'main'
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -19,13 +22,11 @@ jobs:
with: with:
cmd: install --frozen-lockfile cmd: install --frozen-lockfile
- name: yarn build - name: Create Release Pull Request or Publish
uses: borales/actions-yarn@v4 id: changesets
uses: changesets/action@v1
with: with:
cmd: build --frozen-lockfile publish: yarn run release
env:
- uses: JS-DevTools/npm-publish@v1 GITHUB_TOKEN: ${{ secrets.TOKEN }}
with: NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./package.json
+6 -2
View File
@@ -12,7 +12,8 @@
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --plugin-search-dir . --check . && eslint .", "lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write ." "format": "prettier --plugin-search-dir . --write .",
"release": "yarn run build && changeset publish"
}, },
"exports": { "exports": {
".": { ".": {
@@ -47,5 +48,8 @@
}, },
"svelte": "./dist/index.js", "svelte": "./dist/index.js",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"type": "module" "type": "module",
"dependencies": {
"@changesets/cli": "^2.26.0"
}
} }
+2 -2
View File
@@ -3,9 +3,9 @@ import type { PlaywrightTestConfig } from '@playwright/test';
const config: PlaywrightTestConfig = { const config: PlaywrightTestConfig = {
webServer: { webServer: {
command: 'npm run build && npm run preview', command: 'npm run build && npm run preview',
port: 4173 port: 4173,
}, },
testDir: 'tests' testDir: 'tests',
}; };
export default config; export default config;
+1 -1
View File
@@ -3,7 +3,7 @@ export type PlayerElement = HTMLAudioElement | undefined;
export function usePlayer<K extends keyof HTMLAudioElement>( export function usePlayer<K extends keyof HTMLAudioElement>(
el: PlayerElement, el: PlayerElement,
key: K, key: K,
value: HTMLAudioElement[K] value: HTMLAudioElement[K],
) { ) {
if (!el) return; if (!el) return;
el[key] = value; el[key] = value;
+2 -2
View File
@@ -8,8 +8,8 @@ const config = {
preprocess: vitePreprocess(), preprocess: vitePreprocess(),
kit: { kit: {
adapter: adapter() adapter: adapter(),
} },
}; };
export default config; export default config;
+1 -1
View File
@@ -2,5 +2,5 @@ import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite'; import { defineConfig } from 'vite';
export default defineConfig({ export default defineConfig({
plugins: [sveltekit()] plugins: [sveltekit()],
}); });
+1516 -10
View File
File diff suppressed because it is too large Load Diff