Skip to content

Commit

Permalink
refactor(repo): update tooling and cleaning up builds
Browse files Browse the repository at this point in the history
  • Loading branch information
dysfunc committed Nov 27, 2023
1 parent e251f18 commit 096964e
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 88 deletions.
2 changes: 1 addition & 1 deletion docs/package-lock.json

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

Binary file removed docs/public/favicon.png
Binary file not shown.
79 changes: 0 additions & 79 deletions docs/public/global.css

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion docs/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import App from './App.svelte'
import App from './app.svelte'

import './styles.scss';

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"start": "npm --prefix ./docs install && vite & npm --prefix ./docs run dev",
"dev": "vite",
"build": "vite build",
"build:docs": "npm --prefix ./docs run build",
"build:docs": "npm --prefix ./docs install && npm --prefix ./docs run build",
"deploy": "npm run build:docs && npx gh-pages -d docs/build",
"publish": "npm run build && npm publish --access=public",
"lint": "eslint -c ./.eslintrc.json --fix \"src/**/*.{.js,svelte}\"",
Expand Down
2 changes: 1 addition & 1 deletion src/Viewable.snap.js → src/viewable.snap.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`Proxy<Viewable.test> > should render the component 1`] = `
exports[`Viewable > should render the component 1`] = `
<body>
<div>
<div>
Expand Down
8 changes: 4 additions & 4 deletions src/Viewable.svelte → src/viewable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@
* @type {String}
*/
export let rootMargin = '0px';
/**
* Array of visibility thresholds that will result in a callback when
* the observed element crosses that each threshold (.1 = 10% visible inside of its container)
*/
/**
* Array of visibility thresholds that will result in a callback when
* the observed element crosses that each threshold (.1 = 10% visible inside of its container)
*/
export let threshold = [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1];
/**
* Observed element metadata
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/Viewable.test.svelte → src/viewable.test.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script>
import Viewable from './Viewable.svelte';
import Viewable from './viewable.svelte';
let element;
</script>
Expand Down

0 comments on commit 096964e

Please sign in to comment.