Skip to content

Commit

Permalink
Merge custom date format plugin into main (#2756)
Browse files Browse the repository at this point in the history
* migrating cdf plugin to main dt

* updated tests to include merged cdf code

* updated docs

* fix regex and workflows
  • Loading branch information
Eonasdan authored Feb 28, 2023
1 parent 2c49fc3 commit 5a03b85
Show file tree
Hide file tree
Showing 57 changed files with 3,891 additions and 4,934 deletions.
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/
28 changes: 28 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
workflow_call:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Npm install
run: npm ci
- name: Unit tests
run: npm run test:coverage
- name: Build docs
run: npm run docs
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@main
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
# Send coverage report to Coveralls
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml → .github/workflows/docs.yml_
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16'
node-version: '18'
- name: Npm install
run: npm ci
- name: Build docs
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/feature-branch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Feature Branch Publish Package

on:
push:
branches:
- 'feature/*'

jobs:
build:
uses: ./build.yaml
secrets: inherit
publish:
runs-on: ubuntu-latest
steps:
- name: Publish package
run: |
if [[ ${{ github.ref }} == "refs/heads/feature/*" ]]; then
npm publish --access public --registry https://npm.pkg.github.com/
fi
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
File renamed without changes.
21 changes: 3 additions & 18 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Pull Request
on:
push:
branches: [ development ]
Expand All @@ -7,20 +7,5 @@ on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Perform Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
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 }}
uses: ./build.yaml
secrets: inherit
15 changes: 8 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ on:
workflow_dispatch:
jobs:
build:
uses: ./build.yaml
secrets: inherit
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
keep_files: true
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ Tempus Dominus is a powerful and robust date time picker for javascript. Version

# 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
103 changes: 0 additions & 103 deletions build/browser-sync-config.js

This file was deleted.

9 changes: 9 additions & 0 deletions build/serve.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const { ParvusServer } = require('@eonasdan/parvus-server');

new ParvusServer({
port: 3001,
directory: `./docs`,
middlewares: [],
})
.startAsync()
.then();
Loading

0 comments on commit 5a03b85

Please sign in to comment.