Skip to content

Commit a080efa

Browse files
authored
Initial commit
0 parents  commit a080efa

File tree

150 files changed

+14648
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+14648
-0
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": ["@changesets/cli/commit", { "skipCI": false }],
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": ["@example/*"]
11+
}

.deepsource.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version = 1
2+
3+
[[analyzers]]
4+
name = "javascript"
5+
6+
[analyzers.meta]
7+
plugins = ["react"]
8+
environment = [
9+
"nodejs",
10+
"browser",
11+
"vitest"
12+
]

.github/FUNDING.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# These are supported funding model platforms
2+
3+
github: [md2docx, mayank1513] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
polar: mayank1513
5+
patreon: # Replace with a single Patreon username
6+
open_collective: # Replace with a single Open Collective username
7+
ko_fi: # Replace with a single Ko-fi username
8+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
9+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
10+
liberapay: # Replace with a single Liberapay username
11+
issuehunt: # Replace with a single IssueHunt username
12+
otechie: # Replace with a single Otechie username
13+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
14+
custom: [https://pages.razorpay.com/mayank1513] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ""
5+
labels: ""
6+
assignees: ""
7+
---
8+
9+
**Describe the bug**
10+
A clear and concise description of what the bug is.
11+
12+
**To Reproduce**
13+
Steps to reproduce the behavior:
14+
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
28+
- OS: [e.g. iOS]
29+
- Browser [e.g. chrome, safari]
30+
- Version [e.g. 22]
31+
32+
**Smartphone (please complete the following information):**
33+
34+
- Device: [e.g. iPhone6]
35+
- OS: [e.g. iOS8.1]
36+
- Browser [e.g. stock browser, safari]
37+
- Version [e.g. 22]
38+
39+
**Additional context**
40+
Add any other context about the problem here.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ""
5+
labels: ""
6+
assignees: ""
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11+
12+
**Describe the solution you'd like**
13+
A clear and concise description of what you want to happen.
14+
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
18+
**Additional context**
19+
Add any other context or screenshots about the feature request here.

.github/workflows/manual-publish.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Manually publish to NPM - Apply changeset in the workflow.
2+
3+
# publish only when package json has changed - assuming version upgrade
4+
on:
5+
workflow_dispatch:
6+
7+
jobs:
8+
publish:
9+
if: github.event.repository.owner.login == 'md2docx'
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
id-token: write
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
token: ${{ secrets.GITHUB_TOKEN }}
19+
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
registry-url: https://registry.npmjs.org
24+
- name: Setup Git
25+
run: |
26+
git config --global user.name "mayank1513"
27+
git config --global user.email "mayank.srmu@gmail.com"
28+
- run: npm i -g pnpm && pnpm i
29+
name: Install dependencies
30+
# fail and not publish if any of the unit tests are failing
31+
- name: Test
32+
run: pnpm test
33+
working-directory: ./lib
34+
- name: clean up working directory
35+
run: git status && git clean -f -d && git status
36+
# - name: Copy Readme file
37+
# run: cp ./README.md ./lib # todo: uncomment this line while rebranding
38+
- name: Apply changesets, publish and create release, branches and tags
39+
run: node ./scripts/manual-publish.js
40+
env:
41+
BRANCH: ${{ github.ref_name }}
42+
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
43+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
44+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Publish to NPM
2+
3+
# publish only when package json has changed - assuming version upgrade
4+
on:
5+
push:
6+
branches: [main]
7+
paths: "lib/package.json"
8+
9+
jobs:
10+
publish:
11+
# Don't run just after creating repo from template
12+
# Also avoid running after merging set-up PR
13+
if: github.event.repository.owner.login == 'md2docx'
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
id-token: write
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
token: ${{ secrets.GITHUB_TOKEN }}
23+
24+
- uses: actions/setup-node@v4
25+
with:
26+
node-version: 20
27+
registry-url: https://registry.npmjs.org
28+
- name: Setup Git
29+
run: |
30+
git config --global user.name "mayank1513"
31+
git config --global user.email "mayank.srmu@gmail.com"
32+
- run: npm i -g pnpm && pnpm i
33+
name: Install dependencies
34+
# fail and not publish if any of the unit tests are failing
35+
- name: Test
36+
run: pnpm test
37+
working-directory: ./lib
38+
# - name: Copy Readme file
39+
# run: cp ./README.md ./lib # will be uncommented while rebranding
40+
- name: Apply changesets, publish and create release, branches and tags
41+
run: node ./scripts/publish.js
42+
env:
43+
BRANCH: ${{ github.ref_name }}
44+
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
45+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
46+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: test
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: "5 */8 * * *"
8+
jobs:
9+
test:
10+
if: github.run_number != 1
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
- run: npm i -g pnpm && pnpm i
20+
name: Install dependencies
21+
- name: Run unit tests
22+
run: pnpm test
23+
working-directory: ./lib
24+
- name: Upload coverage reports to Codecov
25+
continue-on-error: true
26+
uses: codecov/codecov-action@v4
27+
with:
28+
directory: ./lib
29+
token: ${{ secrets.CODECOV_TOKEN }}
30+
- uses: paambaati/codeclimate-action@v8.0.0
31+
continue-on-error: true
32+
env:
33+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
34+
with:
35+
coverageLocations: ./lib/coverage/*.xml:clover

.github/workflows/upgrade.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Update dependencies
2+
3+
on:
4+
schedule:
5+
- cron: "0 */8 * * *"
6+
jobs:
7+
update-deps:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
token: ${{ secrets.GITHUB_TOKEN }}
15+
16+
- uses: actions/setup-node@v4
17+
with:
18+
registry-url: https://registry.npmjs.org
19+
node-version: 20
20+
- name: Setup Git
21+
run: |
22+
git config --global user.name "mayank1513"
23+
git config --global user.email "mayank.srmu@gmail.com"
24+
git fetch
25+
git checkout main
26+
git pull
27+
- run: npm i -g pnpm && pnpm i --no-frozen-lockfile
28+
name: Install dependencies
29+
- run: git stash --include-untracked
30+
name: clean up working directory
31+
- run: pnpx @turbo/codemod update . && pnpm update --latest -r
32+
name: Update dependencies
33+
- run: pnpm build --filter @example/nextjs
34+
name: Build all apps to make sure it is not broken due to dependency upgrades
35+
- name: Run unit tests
36+
run: pnpm test
37+
- name: Save upgraded packages back to repo
38+
run: echo $(date +%F_%H:%M:%S) > .lst && git add . && git commit -m "upgrade deps && docs [skip ci]" && git push origin main

0 commit comments

Comments
 (0)