Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v6.4.1 #2772

Merged
merged 13 commits into from
Mar 14, 2023
Merged

v6.4.1 #2772

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
**/.husky/
**/types/
**/build/

#temporary
/test/test-import.ts
**/test/
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Report a bug
description: Tell us about your issue.
title: "Provide a general summary of the issue"
labels: ["Type: bug", "State: Triage"]
labels: ["Type: Bug", "State: Triage"]
body:
- type: checkboxes
attributes:
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Feature request
description: Suggest new or updated features.
title: "Suggest a new feature"
labels: ["Type: feature request", "State: Triage"]
labels: ["Type: Feature Request", "State: Triage"]
assignees: []
body:
- type: checkboxes
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/base/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Setup Node
description: Setup node

inputs:
registry:
description: 'A Github PAT'
default: 'https://registry.npmjs.org'

runs:
using: composite
steps:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: ${{ inputs.registry }}
- name: Npm install
shell: bash
run: npm ci
32 changes: 32 additions & 0 deletions .github/workflows/build/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build
description: Build

inputs:
GITHUB_TOKEN:
description: 'A Github PAT'
required: true
QODANA_TOKEN:
description: 'A Qodana token'
required: true

runs:
using: composite
steps:
- name: Unit tests
shell: bash
run: npm run test:coverage
- name: Build
shell: bash
run: npm run build
- name: Build docs
shell: bash
run: npm run docs
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@main
env:
QODANA_TOKEN: ${{ inputs.QODANA_TOKEN }}
# Send coverage report to Coveralls
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ inputs.GITHUB_TOKEN }}
38 changes: 0 additions & 38 deletions .github/workflows/docs.yml

This file was deleted.

51 changes: 51 additions & 0 deletions .github/workflows/feature-branch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Feature Branch Publish Package

on:
push:
branches:
- 'feature/*'
- 'bug/*'
- development
# paths:
# - src

jobs:
main:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: ./.github/workflows/base
with:
registry: 'https://npm.pkg.github.com'
- name: Set package version
id: set_version
run: |
# Get the branch name
BRANCH_NAME=${GITHUB_REF#refs/heads/}
# remove "feature/" prefix
BRANCH_NAME=${BRANCH_NAME#feature/}
# replace underscore with dashes (thanks semver)
BRANCH_NAME=${BRANCH_NAME//_/-}
BUILD_ID=$(echo $GITHUB_RUN_ID | cut -c1-7)
VERSION=$(node -p "const pkg = require('./package.json'); pkg.version")
NEW_VERSION="$VERSION-$BRANCH_NAME.$BUILD_ID"
#sed -i "s/\"version\": \".*\"/\"version\": \"$VERSION\"/g" ./package.json
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_OUTPUT
- name: Build
uses: ./.github/workflows/build
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
- name: Create Release
run: npm run release:version ${{steps.set_version.outputs.VERSION }} ${{steps.set_version.outputs.NEW_VERSION }}
- name: Publish package
run: |
npm publish --access public --registry https://npm.pkg.github.com/
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
28 changes: 0 additions & 28 deletions .github/workflows/main.yml

This file was deleted.

17 changes: 3 additions & 14 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup NuGet
uses: NuGet/[email protected]
- name: Nuget
uses: ./.github/workflows/nuget
with:
nuget-api-key: ${{ secrets.NPM_TOKEN }}
nuget-version: '6.x'
- name: Pack NuGet
working-directory: ./src/nuget
run: |
nuget pack TempusDominus.nuspec -Verbosity detailed -NonInteractive -NoPackageAnalysis
nuget pack TempusDominus.scss.nuspec -Verbosity detailed -NonInteractive -NoPackageAnalysis
- name: Push Nuget
working-directory: ./src/nuget
run: |
nuget push TempusDominus.*.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey ${{ secrets.NPM_TOKEN }}
nuget push TempusDominus.scss.*.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey ${{ secrets.NPM_TOKEN }}
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
27 changes: 27 additions & 0 deletions .github/workflows/nuget/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Nuget Publish
description: Setup node

inputs:
NUGET_API_KEY:
description: 'A Nuget API Key'
required: true

runs:
using: composite
steps:
- name: Setup NuGet
uses: NuGet/[email protected]
with:
nuget-version: '6.x'
- name: Pack NuGet
working-directory: ./src/nuget
shell: pwsh
run: |
nuget pack TempusDominus.nuspec -Verbosity detailed -NonInteractive -NoPackageAnalysis
nuget pack TempusDominus.scss.nuspec -Verbosity detailed -NonInteractive -NoPackageAnalysis
- name: Push Nuget
working-directory: ./src/nuget
shell: pwsh
run: |
nuget push TempusDominus.*.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey ${{ inputs.NUGET_API_KEY }}
nuget push TempusDominus.scss.*.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey ${{ inputs.NUGET_API_KEY }}
26 changes: 10 additions & 16 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
name: CI
name: Pull Request
on:
push:
branches: [ development ]
pull_request:
branches: [ development ]
workflow_dispatch:
jobs:
build:
pr:
runs-on: ubuntu-latest
steps:
- name: Perform Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: ./.github/workflows/base
- name: Build
uses: ./.github/workflows/build
with:
node-version: '18'
- name: Npm install
run: npm ci
- name: Unit tests
run: npm run test:coverage
# Send coverage report to Coveralls
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
35 changes: 16 additions & 19 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,28 @@ on:
types: [ created ]
workflow_dispatch:
jobs:
build:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
- name: Setup
uses: ./.github/workflows/base
- name: Build
uses: ./.github/workflows/build
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
keep_files: true
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Setup NuGet
uses: NuGet/[email protected]
- name: Nuget
uses: ./.github/workflows/nuget
with:
nuget-version: '6.x'
- name: Pack NuGet
working-directory: ./src/nuget
run: |
nuget pack TempusDominus.nuspec -Verbosity detailed -NonInteractive -NoPackageAnalysis
nuget pack TempusDominus.scss.nuspec -Verbosity detailed -NonInteractive -NoPackageAnalysis
- name: Push Nuget
working-directory: ./src/nuget
run: |
nuget push TempusDominus.*.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey ${{ secrets.NUGET_API_KEY }}
nuget push TempusDominus.scss.*.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey ${{ secrets.NUGET_API_KEY }}
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

[![Rate on Openbase](https://badges.openbase.com/js/rating/@eonasdan/tempus-dominus.svg)](https://openbase.com/js/@eonasdan/tempus-dominus?utm_source=embedded&utm_medium=badge&utm_campaign=rate-badge)

# Tempus Dominus Date/Time Picker v6.2.10
# Tempus Dominus Date/Time Picker v6.4.1

Tempus Dominus is a powerful and robust date time picker for javascript. Version 6 is another major rewrite over the previous version. V6 is written with modern browsers in mind and is written in typescript. Bootstrap, momentjs and jQuery are no longer required dependencies. Popper2 is all that is required for the picker to position correctly. If you still require jQuery (seriously, you should move off that asap) there's a jQuery provider that wraps the native js functions.

# Ready State

The beta is here. There's still plenty of things that can be worked on and you can see the [rough roadmap here](https://github.com/Eonasdan/tempus-dominus/projects).
V6 has shipped! You can see the [rough roadmap here](https://github.com/users/Eonasdan/projects/1).

# Community

Need help or want to discuss some? Join [the discord](https://discord.gg/BHS9jw9YPf).

Please also take a look at the [discussions](https://github.com/Eonasdan/tempus-dominus/discussions). There are several RFCs (Request For Comment) open and you can help shape the future of the picker by participating in these discussions.
Please also take a look at the [discussions](https://github.com/Eonasdan/tempus-dominus/discussions). There are several RFCs (Request For Comment) open, and you can help shape the future of the picker by participating in these discussions.

# Developers

Expand All @@ -26,13 +26,13 @@ The docs folder contains the generated documentation site, don't modify this dir

## Running

You can run `npm run serve` which will start a browser-sync server. Navigate to `http://localhost:3001/` to view the docs.
You can run `npm run serve` which will start a web server. Navigate to `http://localhost:3001/` to view the docs.

## Watching for changes

Do not run `npm run serve` at the same time.

Run `npm start`. This runs browser-sync, the build and watchers for the docs, styles, and typescript.
Run `npm start`. This runs web server, the build and watchers for the docs, styles, and typescript.

## Where do you use this?

Expand Down
Loading