-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maintains the same signature and tests, just rewriting using TypeScript, as well as using [tsdx](https://github.com/jaredpalmer/tsdx) for modern asset generation. The goal is to be compatible with [unpkg](https://unpkg.com) and [Pika](https://www.pika.dev).
- Loading branch information
Showing
15 changed files
with
1,293 additions
and
603 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,50 @@ | ||
name: CI Tests | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
name: Lint on node 12.x and ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js 12.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
|
||
- name: Install deps and build | ||
run: yarn install | ||
|
||
- name: Lint codebase | ||
run: yarn lint | ||
|
||
test: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
node: ['10.x', '12.x', '13.x'] | ||
os: [ubuntu-latest, windows-latest, macOS-latest] | ||
|
||
name: Test on node ${{ matrix.node }} and ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js ${{ matrix.node }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: Install deps and build | ||
run: yarn install | ||
|
||
- name: Test package | ||
run: yarn test --runInBand |
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 +1,6 @@ | ||
node_modules | ||
*.log | ||
.DS_Store | ||
node_modules | ||
dist | ||
package-lock.json | ||
yarn.lock |
This file was deleted.
Oops, something went wrong.
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,18 @@ | ||
Copyright © Wes Souza <hey@wes.dev> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the “Software”), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | ||
of the Software, and to permit persons to whom the Software is furnished to do | ||
so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
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 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,26 +1,24 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Simple Calendar</title> | ||
<meta charset="utf-8"> | ||
<link rel="stylesheet" href="style.css"> | ||
</head> | ||
<body> | ||
<head> | ||
<title>Simple Calendar</title> | ||
<meta charset="utf-8" /> | ||
<link rel="stylesheet" href="./style.css" /> | ||
</head> | ||
<body> | ||
<h1 class="calendar js-calendar-month"></h1> | ||
|
||
<h1 class="calendar js-calendar-month"></h1> | ||
<ul class="calendar js-calendar"> | ||
<li class="calendar-day -weekday">Mo</li> | ||
<li class="calendar-day -weekday">Tu</li> | ||
<li class="calendar-day -weekday">We</li> | ||
<li class="calendar-day -weekday">Th</li> | ||
<li class="calendar-day -weekday">Fr</li> | ||
<li class="calendar-day -weekday">Sa</li> | ||
<li class="calendar-day -weekday">Su</li> | ||
</ul> | ||
|
||
<ul class="calendar js-calendar"> | ||
<li class="calendar-day -weekday">Mo</li> | ||
<li class="calendar-day -weekday">Tu</li> | ||
<li class="calendar-day -weekday">We</li> | ||
<li class="calendar-day -weekday">Th</li> | ||
<li class="calendar-day -weekday">Fr</li> | ||
<li class="calendar-day -weekday">Sa</li> | ||
<li class="calendar-day -weekday">Su</li> | ||
</ul> | ||
|
||
<script src="../../dist/calendar-base.min.js"></script> | ||
<script src="my-calendar.js"></script> | ||
|
||
</body> | ||
</html> | ||
<script src="https://cdn.pika.dev/calendar-base@^1.0.0"></script> | ||
<script src="./my-calendar.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.