Skip to content

Commit 4a6b392

Browse files
committed
Merge branch 'release/1.0.0'
2 parents 21f676e + 4ac7339 commit 4a6b392

File tree

16 files changed

+7596
-2305
lines changed

16 files changed

+7596
-2305
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test
2+
3+
on: [push]
4+
5+
env:
6+
NODE_VERSION: 20
7+
8+
jobs:
9+
build:
10+
name: Test
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # https://github.com/actions/checkout/releases/tag/v3.1.0
14+
15+
- name: Use Node.js ${{ env.NODE_VERSION }}
16+
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # https://github.com/actions/setup-node/releases/tag/v3.5.1
17+
with:
18+
node-version: ${{ env.NODE_VERSION }}
19+
cache: 'npm'
20+
21+
- name: Install dependencies
22+
run: |
23+
npm ci --no-audit
24+
25+
- name: Test
26+
run: |
27+
npm run test

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
node_modules
2+
dist
23
.c9revisions
34
.c9
5+
pikaday.js
6+
pikaday.cjs
7+
pikaday.mjs
8+
!src/pikaday.js

.npmignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
node_modules
22
examples
33
tests
4+
src
45
.editorconfig
56
.gitattributes
67
.jshintrc
78
.npmignore
9+
.github
10+
babel.config.js
11+
jest.config.js
12+
vite.config.ts
813
bower.json
914
component.json
1015
CNAME

README.md

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
Pikaday
1+
@handsontable/pikaday
22
========
33

4-
[![NPM version][npm-image]][npm-url]
5-
[![License][license-image]][license-url]
6-
[![Downloads][downloads-image]][downloads-url]
4+
[![NPM version](https://img.shields.io/npm/v/@handsontable/pikaday.svg?style=flat)](https://www.npmjs.com/package/@handsontable/pikaday)
5+
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/handsontable/pikaday/blob/master/LICENSE)
6+
[![NPM downloads](https://img.shields.io/npm/dm/@handsontable/pikaday.svg?style=flat)](https://www.npmjs.com/package/@handsontable/pikaday)
77

88

99
### A refreshing JavaScript Datepicker
@@ -23,26 +23,26 @@ Also see the [changelog](CHANGELOG.md)
2323
You can install Pikaday as an NPM package:
2424

2525
```shell
26-
npm install pikaday
26+
npm install @handsontable/pikaday
2727
```
2828

2929
Or link directly to the CDN:
3030

3131
```html
32-
<script src="https://cdn.jsdelivr.net/npm/pikaday/pikaday.js"></script>
32+
<script src="https://cdn.jsdelivr.net/npm/@handsontable/pikaday/pikaday.js"></script>
3333
```
3434

3535
## Styles
3636
You will also need to include Pikaday CSS file. This step depends on how Pikaday was installed. Either import from NPM:
3737

3838
```css
39-
@import './node_modules/pikaday/css/pikaday.css';
39+
@import '@handsontable/pikaday/css/pikaday.css';
4040
```
4141

4242
Or link to the CDN:
4343

4444
```html
45-
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/pikaday/css/pikaday.css">
45+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@handsontable/pikaday/css/pikaday.css">
4646
```
4747

4848
## Usage
@@ -216,7 +216,7 @@ If you use a modular script loader, Pikaday is not bound to the global object an
216216
See the [AMD example][] for a full version.
217217

218218
```javascript
219-
require(['pikaday'], function(Pikaday) {
219+
require(['@handsontable/pikaday'], function(Pikaday) {
220220
var picker = new Pikaday({ field: document.getElementById('datepicker') });
221221
});
222222
```
@@ -235,7 +235,7 @@ If you use a CommonJS compatible environment you can use the require function to
235235

236236

237237
```javascript
238-
var pikaday = require('pikaday');
238+
var pikaday = require('@handsontable/pikaday');
239239
```
240240

241241
When you bundle all your required modules with [Browserify][browserify] and you don't use [Moment.js][moment] specify the ignore option:
@@ -377,14 +377,9 @@ Also [@stas][stas] has a fork [stas/Pikaday][stas Pika], but is now quite old
377377

378378
## Browser Compatibility
379379

380-
* IE 7+
381-
* Chrome 8+
382-
* Firefox 3.5+
383-
* Safari 3+
384-
* Opera 10.6+
385-
386-
[![browser compatibility](https://ci.testling.com/rikkert/pikaday.png)
387-
](https://ci.testling.com/rikkert/pikaday)
380+
* Chrome (latest major versions)
381+
* Firefox (latest major versions)
382+
* Safari (latest major versions)
388383

389384

390385
* * *

babel.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@babel/preset-env',
4+
],
5+
};

jest.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
testEnvironment: 'jsdom',
3+
transform: {
4+
'^.+\\.(js|jsx|ts|tsx)$': 'babel-jest',
5+
},
6+
};

0 commit comments

Comments
 (0)