Skip to content

Commit

Permalink
Merge branch 'release/1.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
budnix committed Dec 11, 2023
2 parents 21f676e + 4ac7339 commit 4a6b392
Show file tree
Hide file tree
Showing 16 changed files with 7,596 additions and 2,305 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test

on: [push]

env:
NODE_VERSION: 20

jobs:
build:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # https://github.com/actions/checkout/releases/tag/v3.1.0

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # https://github.com/actions/setup-node/releases/tag/v3.5.1
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'

- name: Install dependencies
run: |
npm ci --no-audit
- name: Test
run: |
npm run test
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
node_modules
dist
.c9revisions
.c9
pikaday.js
pikaday.cjs
pikaday.mjs
!src/pikaday.js
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
node_modules
examples
tests
src
.editorconfig
.gitattributes
.jshintrc
.npmignore
.github
babel.config.js
jest.config.js
vite.config.ts
bower.json
component.json
CNAME
Expand Down
31 changes: 13 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Pikaday
@handsontable/pikaday
========

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


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

```shell
npm install pikaday
npm install @handsontable/pikaday
```

Or link directly to the CDN:

```html
<script src="https://cdn.jsdelivr.net/npm/pikaday/pikaday.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@handsontable/pikaday/pikaday.js"></script>
```

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

```css
@import './node_modules/pikaday/css/pikaday.css';
@import '@handsontable/pikaday/css/pikaday.css';
```

Or link to the CDN:

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

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

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


```javascript
var pikaday = require('pikaday');
var pikaday = require('@handsontable/pikaday');
```

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

## Browser Compatibility

* IE 7+
* Chrome 8+
* Firefox 3.5+
* Safari 3+
* Opera 10.6+

[![browser compatibility](https://ci.testling.com/rikkert/pikaday.png)
](https://ci.testling.com/rikkert/pikaday)
* Chrome (latest major versions)
* Firefox (latest major versions)
* Safari (latest major versions)


* * *
Expand Down
5 changes: 5 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@babel/preset-env',
],
};
6 changes: 6 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
testEnvironment: 'jsdom',
transform: {
'^.+\\.(js|jsx|ts|tsx)$': 'babel-jest',
},
};
Loading

0 comments on commit 4a6b392

Please sign in to comment.