Skip to content

Commit 81f1a3f

Browse files
committed
chore: initial commit
0 parents  commit 81f1a3f

26 files changed

+7105
-0
lines changed

.c8rc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"parserPlugins": ["typescript"],
3+
"reporter": ["text-summary", "lcov"],
4+
"include": ["src/**/*.ts"]
5+
}

.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: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.0.4/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{
6+
"repo": "marko-js/resolve-sync"
7+
}
8+
],
9+
"commit": false,
10+
"fixed": [],
11+
"linked": [],
12+
"access": "public",
13+
"baseBranch": "main",
14+
"updateInternalDependencies": "patch",
15+
"ignore": []
16+
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
name: "\U0001F41BBug report"
3+
about: Something isn't working right
4+
---
5+
6+
## Version: x.x.x
7+
8+
<!--- Provide the exact version in which you see the bug. You can run `npm ls resolve-sync` to see this. -->
9+
10+
### Details
11+
12+
<!--- Provide a more detailed introduction to the issue itself, and why you consider it to be a bug. How has this bug affected you? What were you trying to accomplish? -->
13+
14+
### Expected Behavior
15+
16+
<!--- Tell us what should happen -->
17+
18+
### Actual Behavior
19+
20+
<!--- Tell us what happens instead -->
21+
22+
### Possible Fix
23+
24+
<!--- Not obligatory, but suggest a fix or reason for the bug -->
25+
26+
<details><summary>Additional Info</summary>
27+
28+
### Your Environment
29+
30+
<!-- Include as many relevant details about the environment you experienced the bug in -->
31+
32+
- Environment name and version (e.g. Chrome 39, node.js 5.4):
33+
- Operating System and version (desktop or mobile):
34+
- Link to your project:
35+
36+
### Steps to Reproduce
37+
38+
<!-- Provide a link to a live example -->
39+
40+
<!-- or an unambiguous set of steps to reproduce this bug -->
41+
42+
<!-- include code to reproduce, if relevant -->
43+
44+
1. first...
45+
2.
46+
3.
47+
4.
48+
49+
### Stack Trace
50+
51+
<!-- If an error is thrown, provide the stack trace here -->
52+
53+
</details>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: "\U0001F680Feature request"
3+
about: Suggest an idea for a package in this repo
4+
---
5+
6+
### Description
7+
8+
<!--- Provide a detailed description of the change or addition you are proposing -->
9+
10+
### Why
11+
12+
<!--- Why is this change important to you? How would you use it? -->
13+
14+
<!--- How can it benefit other users? -->
15+
16+
### Possible Implementation & Open Questions
17+
18+
<!--- Not obligatory, but suggest an idea for implementing addition or change -->
19+
20+
<!--- What still needs to be discussed -->
21+
22+
### Is this something you're interested in working on?
23+
24+
<!--- Yes or no -->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!--- Provide a general summary of your changes in the Title above -->
2+
3+
## Description
4+
5+
<!--- Describe your changes in detail. Include the package name if applicable. -->
6+
7+
## Motivation and Context
8+
9+
<!--- Why is this change required? What problem does it solve? -->
10+
11+
<!--- If it fixes an open issue, please link to the issue here. -->
12+
13+
## Screenshots (if appropriate):
14+
15+
## Checklist:
16+
17+
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
18+
19+
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
20+
21+
- [ ] I have updated/added documentation affected by my changes.
22+
- [ ] I have added tests to cover my changes.
23+
24+
<!--
25+
Disclaimer: Contributions via GitHub pull requests are gladly accepted from their original author. Along with any pull requests, please state that the contribution is your original work and that you license the work to the project under the project's open source license. Whether or not you state this explicitly, by submitting any copyrighted material via pull request, email, or other means you agree to license the material under the project's open source license and warrant that you have the legal authority to do so.
26+
-->

.github/workflows/ci.yml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
push:
7+
branches: [main]
8+
9+
concurrency:
10+
group: "${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}"
11+
cancel-in-progress: true
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
with:
20+
ref: ${{ github.head_ref }}
21+
- name: Use node
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 22
25+
cache: npm
26+
- name: Install dependencies
27+
run: npm ci
28+
- name: Build
29+
run: npm run @ci:build
30+
- name: Lint Code
31+
run: npm run @ci:lint
32+
test:
33+
runs-on: ubuntu-latest
34+
name: "test: node@${{ matrix.node }}"
35+
strategy:
36+
fail-fast: false
37+
matrix:
38+
node: [20, 22, 24]
39+
steps:
40+
- name: Checkout code
41+
uses: actions/checkout@v4
42+
- name: Use node@${{ matrix.node }}
43+
uses: actions/setup-node@v4
44+
with:
45+
node-version: ${{ matrix.node }}
46+
cache: npm
47+
- name: Install dependencies
48+
run: npm ci
49+
- name: Run tests
50+
run: npm run @ci:test
51+
- name: Report code coverage
52+
uses: codecov/codecov-action@v5
53+
with:
54+
token: ${{ secrets.CODECOV_TOKEN }}
55+
slug: marko-js/resolve-sync
56+
release:
57+
runs-on: ubuntu-latest
58+
needs: [build, test]
59+
if: "${{ github.repository_owner == 'marko-js' && github.event_name == 'push' }}"
60+
steps:
61+
- name: Checkout code
62+
uses: actions/checkout@v4
63+
- name: Setup node
64+
uses: actions/setup-node@v4
65+
with:
66+
node-version: 22
67+
cache: npm
68+
- name: Install dependencies
69+
run: npm ci
70+
- name: Release
71+
id: changesets
72+
uses: changesets/action@v1
73+
with:
74+
version: npm run @ci:version
75+
publish: npm run @ci:release
76+
commit: "[ci] release"
77+
title: "[ci] release"
78+
env:
79+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
80+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.nyc_output
2+
.vscode
3+
*.actual*
4+
*.DS_Store
5+
*.tsbuildinfo
6+
coverage
7+
dist
8+
node_modules
9+
npm-debug.log

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm exec lint-staged

.lintstagedrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"*.ts": ["eslint --fix", "prettier --write"],
3+
"*{.js,.json,.md,.yml,rc}": ["prettier --write"]
4+
}

0 commit comments

Comments
 (0)