Skip to content

Commit

Permalink
🔨 🎨 Code refactor/Improve format/structure
Browse files Browse the repository at this point in the history
  • Loading branch information
vinodnimbalkar committed Jun 8, 2021
1 parent 40a28c6 commit 785866e
Show file tree
Hide file tree
Showing 30 changed files with 38,583 additions and 21,816 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI
on: [push]
jobs:
build:
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}

runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['12.x', '14.x']
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1

- name: Lint
run: yarn lint

- name: Test
run: yarn test --ci --coverage --maxWorkers=2

- name: Build
run: yarn build
Empty file added .github/workflows/publish.yml
Empty file.
12 changes: 12 additions & 0 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: size
on: [pull_request]
jobs:
size:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@v1
- uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
12,052 changes: 0 additions & 12,052 deletions data/data.js

This file was deleted.

1 change: 1 addition & 0 deletions dist/data.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export declare const category: any;
55 changes: 55 additions & 0 deletions dist/dinvishesh.cjs.development.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/dinvishesh.cjs.development.js.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/dinvishesh.cjs.production.min.js.map

Large diffs are not rendered by default.

47 changes: 47 additions & 0 deletions dist/dinvishesh.esm.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/dinvishesh.esm.js.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions dist/dinvishesh.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/dinvishesh.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions dist/dinvishesh.modern.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/dinvishesh.modern.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions dist/dinvishesh.module.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/dinvishesh.module.js.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/dinvishesh.umd.js.map

This file was deleted.

10 changes: 10 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
declare const dinVisheshToday: () => {
janm: any;
mrutyu: any;
ghatana: any;
};
declare const dinVishesh: (cat: string | undefined, month: string, day: string) => any;
declare const dinVisheshByCategoryAndMonth: (cat: string, month: string) => any;
declare const dinVisheshAll: () => any;
declare const dinVisheshByCategory: (cat: string) => any;
export { dinVisheshToday, dinVishesh, dinVisheshByCategoryAndMonth, dinVisheshAll, dinVisheshByCategory };
8 changes: 8 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

'use strict'

if (process.env.NODE_ENV === 'production') {
module.exports = require('./dinvishesh.cjs.production.min.js')
} else {
module.exports = require('./dinvishesh.cjs.development.js')
}
4 changes: 3 additions & 1 deletion example/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ console.log(dinvishesh.dinVishesh("janm", "january", "11"));

console.log(dinvishesh.dinVisheshAll());

console.log(dinvishesh.dinVisheshByCategory("ghatana"));
console.log(dinvishesh.dinVisheshByCategory("ghatana"));

console.log(dinvishesh.dinVisheshByCategoryAndMonth("ghatana", "may"));
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"author": "Vinod Nimbalkar",
"license": "MIT",
"dependencies": {
"dinvishesh": "^1.0.0"
"dinvishesh": "^1.0.3"
}
}
Loading

0 comments on commit 785866e

Please sign in to comment.