Skip to content

Commit 48346bd

Browse files
committed
feat: first version
0 parents  commit 48346bd

14 files changed

+5343
-0
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/dist

.eslintrc.cjs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* eslint-env node */
2+
module.exports = {
3+
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
4+
parser: '@typescript-eslint/parser',
5+
plugins: ['@typescript-eslint'],
6+
root: true,
7+
};

.github/workflows/onPushToMain.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: manual release
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
release:
10+
permissions:
11+
contents: write
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Conventional Changelog Action
16+
id: changelog
17+
# https://github.com/TriPSs/conventional-changelog-action/releases/tag/v4.1.1
18+
uses: TriPSs/conventional-changelog-action@05fc06b05ff372d7a3890bfe625d42a0d97844de
19+
with:
20+
tag-prefix: ''
21+
skip-on-empty: false
22+
- name: Create Github Release
23+
env:
24+
GH_TOKEN: ${{ github.token }}
25+
run: |
26+
gh release create ${{ steps.changelog.outputs.tag }} --notes-file CHANGELOG.md

.github/workflows/onRelease.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: publish
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types: [published]
7+
8+
jobs:
9+
npm-publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
- name: Setup node
15+
# https://github.com/actions/setup-node/releases/tag/v3.8.1
16+
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
17+
with:
18+
node-version: lts/*
19+
registry-url: 'https://registry.npmjs.org'
20+
cache: npm
21+
- name: Install dependencies
22+
run: npm install
23+
- name: Build
24+
run: npm run build
25+
- name: Publish to npm
26+
run: npm publish --access public
27+
env:
28+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
dist
3+
tsconfig.tsbuildinfo

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@cristiand391/oclif-carapace-spec-plugin
2+
=================
3+
4+
oclif plugin to generate a carapace spec

bin/dev.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env -S node --loader ts-node/esm --disable-warning=ExperimentalWarning
2+
3+
// eslint-disable-next-line n/shebang
4+
import {execute} from '@oclif/core'
5+
6+
await execute({development: true, dir: import.meta.url})

bin/run.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env node
2+
3+
import {execute} from '@oclif/core'
4+
5+
await execute({dir: import.meta.url})

0 commit comments

Comments
 (0)