-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(deps-dev): bump deps * ci: add workflow * breaking(build): drop support for es/umd builds * breaking(types): move type definitions to src folder * chore(deps-dev): add gh-pages to devDependencies * fix(types): export non-default props in unstyled types * docs: add pnpm install command * docs: use svelte syntax highlighting for on:complete example * docs: display button as block to abridge examples * docs: update copy * docs: use periods
- Loading branch information
Showing
14 changed files
with
274 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies and validate TypeScript definitions | ||
run: | | ||
yarn | ||
yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
.DS_Store | ||
/lib | ||
/dist | ||
/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,26 @@ | ||
import resolve from "@rollup/plugin-node-resolve"; | ||
import svelte from "rollup-plugin-svelte"; | ||
import svelteReadme from "svelte-readme"; | ||
import pkg from "./package.json"; | ||
|
||
export default () => { | ||
if (!process.env.BUNDLE) return svelteReadme({ | ||
style: ` | ||
[data-pincode], [data-pincode] ~ div { | ||
margin-bottom: 16px; | ||
} | ||
export default svelteReadme({ | ||
style: ` | ||
[data-pincode], [data-pincode] ~ div { | ||
margin-bottom: 16px; | ||
} | ||
.complete { | ||
font-weight: 700; | ||
} | ||
.complete { | ||
font-weight: 700; | ||
} | ||
.success { | ||
color: #24a148; | ||
} | ||
.success { | ||
color: #24a148; | ||
} | ||
.error { | ||
color: #da1e28; | ||
} | ||
` | ||
}); | ||
.error { | ||
color: #da1e28; | ||
} | ||
return ["es", "umd"].map((format) => { | ||
const UMD = format === "umd"; | ||
|
||
return { | ||
input: pkg.svelte, | ||
output: { | ||
format, | ||
file: UMD ? pkg.main : pkg.module, | ||
name: UMD ? pkg.name : undefined, | ||
exports: "named", | ||
}, | ||
plugins: [svelte({ emitCss: false }), resolve()], | ||
}; | ||
}); | ||
}; | ||
.code-fence button { | ||
display: block; | ||
margin-bottom: 0.25rem; | ||
} | ||
`, | ||
}); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default, Code, PincodeProps } from "../Pincode.svelte"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default, PincodeInputProps } from "../PincodeInput.svelte"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.