Skip to content

Commit fc46114

Browse files
committed
feat: initial release
0 parents  commit fc46114

22 files changed

+851
-0
lines changed

.all-contributorsrc

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"projectName": "transformer-codesandbox",
3+
"projectOwner": "remark-embedder",
4+
"imageSize": 100,
5+
"commit": false,
6+
"contributorsPerLine": 7,
7+
"repoHost": "https://github.com",
8+
"repoType": "github",
9+
"skipCi": false,
10+
"files": [
11+
"README.md"
12+
],
13+
"contributors": [
14+
{
15+
"login": "MichaelDeBoey",
16+
"name": "Michaël De Boey",
17+
"avatar_url": "https://avatars3.githubusercontent.com/u/6643991?v=4",
18+
"profile": "https://michaeldeboey.be",
19+
"contributions": [
20+
"code",
21+
"doc",
22+
"infra",
23+
"test"
24+
]
25+
}
26+
]
27+
}

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/ISSUE_TEMPLATE.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<!--
2+
Thanks for your interest in the project. I appreciate bugs filed and PRs submitted!
3+
Please make sure that you are familiar with and follow the Code of Conduct for
4+
this project (found in the CODE_OF_CONDUCT.md file).
5+
6+
Please fill out this template with all the relevant information so we can
7+
understand what's going on and fix the issue.
8+
9+
I'll probably ask you to submit the fix (after giving some direction). If you've
10+
never done that before, that's great! Check this free short video tutorial to
11+
learn how: https://kcd.im/pull-request
12+
-->
13+
14+
- `@remark-embedder/transformer-codesandbox` version:
15+
- `node` version:
16+
- `npm` version:
17+
18+
Relevant code or config
19+
20+
```js
21+
22+
```
23+
24+
What you did:
25+
26+
What happened:
27+
28+
<!-- Please provide the full error message/screenshots/anything -->
29+
30+
Reproduction repository:
31+
32+
<!--
33+
If possible, please create a repository that reproduces the issue with the
34+
minimal amount of code possible.
35+
-->
36+
37+
Problem description:
38+
39+
Suggested solution:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!--
2+
Thanks for your interest in the project. Bugs filed and PRs submitted are appreciated!
3+
4+
Please make sure that you are familiar with and follow the Code of Conduct for
5+
this project (found in the CODE_OF_CONDUCT.md file).
6+
7+
Also, please make sure you're familiar with and follow the instructions in the
8+
contributing guidelines (found in the CONTRIBUTING.md file).
9+
10+
If you're new to contributing to open source projects, you might find this free
11+
video course helpful: https://kcd.im/pull-request
12+
13+
Please fill out the information below to expedite the review and (hopefully)
14+
merge of your pull request!
15+
-->
16+
17+
<!-- What changes are being made? (What feature/bug is being fixed here?) -->
18+
19+
**What**:
20+
21+
<!-- Why are these changes necessary? -->
22+
23+
**Why**:
24+
25+
<!-- How were these changes implemented? -->
26+
27+
**How**:
28+
29+
<!-- Have you done all of these things? -->
30+
31+
**Checklist**:
32+
33+
<!-- add "N/A" to the end of each line that's irrelevant to your changes -->
34+
<!-- to check an item, place an "x" in the box like so: "- [x] Documentation" -->
35+
36+
- [ ] Documentation
37+
- [ ] Tests
38+
- [ ] Ready to be merged
39+
<!-- In your opinion, is this ready to be merged as soon as it's reviewed? -->
40+
41+
<!-- feel free to add additional comments -->

.github/workflows/validate.yml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name: validate
2+
on:
3+
push:
4+
branches:
5+
- '+([0-9])?(.{+([0-9]),x}).x'
6+
- 'main'
7+
- 'next'
8+
- 'next-major'
9+
- 'beta'
10+
- 'alpha'
11+
- '!all-contributors/**'
12+
pull_request: {}
13+
jobs:
14+
main:
15+
# ignore all-contributors PRs
16+
if: ${{ !contains(github.head_ref, 'all-contributors') }}
17+
strategy:
18+
matrix:
19+
node: [10.13, 12, 14, 15]
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: 🛑 Cancel Previous Runs
23+
uses: styfle/[email protected]
24+
with:
25+
access_token: ${{ secrets.GITHUB_TOKEN }}
26+
27+
- name: ⬇️ Checkout repo
28+
uses: actions/checkout@v2
29+
30+
- name: ⎔ Setup node
31+
uses: actions/setup-node@v1
32+
with:
33+
node-version: ${{ matrix.node }}
34+
35+
- name: 📥 Download deps
36+
uses: bahmutov/npm-install@v1
37+
with:
38+
useLockFile: false
39+
env:
40+
HUSKY_SKIP_INSTALL: true
41+
42+
- name: ▶️ Run validate script
43+
run: npm run validate
44+
45+
- name: ⬆️ Upload coverage report
46+
uses: codecov/codecov-action@v1
47+
48+
release:
49+
needs: main
50+
runs-on: ubuntu-latest
51+
if:
52+
${{ github.repository == 'remark-embedder/transformer-codesandbox' &&
53+
contains('refs/heads/main,refs/heads/beta,refs/heads/next,refs/heads/alpha',
54+
github.ref) && github.event_name == 'push' }}
55+
steps:
56+
- name: 🛑 Cancel Previous Runs
57+
uses: styfle/[email protected]
58+
with:
59+
access_token: ${{ secrets.GITHUB_TOKEN }}
60+
61+
- name: ⬇️ Checkout repo
62+
uses: actions/checkout@v2
63+
64+
- name: ⎔ Setup node
65+
uses: actions/setup-node@v1
66+
with:
67+
node-version: 14
68+
69+
- name: 📥 Download deps
70+
uses: bahmutov/npm-install@v1
71+
with:
72+
useLockFile: false
73+
env:
74+
HUSKY_SKIP_INSTALL: true
75+
76+
- name: 🏗 Run build script
77+
run: npm run build
78+
79+
- name: 🚀 Release
80+
uses: cycjimmy/semantic-release-action@v2
81+
with:
82+
semantic_version: 17
83+
branches: |
84+
[
85+
'+([0-9])?(.{+([0-9]),x}).x',
86+
'main',
87+
'next',
88+
'next-major',
89+
{name: 'beta', prerelease: true},
90+
{name: 'alpha', prerelease: true}
91+
]
92+
env:
93+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
94+
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+
node_modules
2+
coverage
3+
dist
4+
.DS_Store
5+
6+
# these cause more harm than good
7+
# when working with contributors
8+
package-lock.json
9+
yarn.lock

.huskyrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('kcd-scripts/husky')

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
coverage
3+
dist

.prettierrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('kcd-scripts/prettier')

0 commit comments

Comments
 (0)