Skip to content

Commit

Permalink
Merge pull request #29 from ralcorta/improvement
Browse files Browse the repository at this point in the history
Improvement
  • Loading branch information
ralcorta authored Oct 2, 2023
2 parents c1c29de + a0e93a0 commit a2a4df0
Show file tree
Hide file tree
Showing 169 changed files with 19,878 additions and 283 deletions.
Binary file modified .DS_Store
Binary file not shown.
20 changes: 20 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"overrides": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"rules": {
// "@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-unused-vars": "warn"
// "require-await": "off",
}
}
8 changes: 4 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ jobs:
uses: actions/setup-node@v2
with:
registry-url: https://registry.npmjs.org/
node-version: '16'
node-version: '18'

# Install dependencies (required by Run tests step or Run Build)
- name: Install dependencies
run: yarn install
run: npm install

# Build typescript project
- name: Build
run: npm run build

# Tests
#- name: Run tests
# run: yarn test
- name: Run tests
run: npm run test

# Configure Git
- name: Git configuration
Expand Down
75 changes: 75 additions & 0 deletions .github/workflows/vitepress-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Build and Deploy Docs
on:
push:
branches:
- 'main'
- 'releases/**'
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Install dependencies
run: npm ci
- name: Build with VitePress
run: |
npm run docs:build
touch docs/.vitepress/dist/.nojekyll
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: docs/.vitepress/dist

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2


# jobs:
# build-and-deploy-doc:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@master
# - name: "Give permissions"
# run: |
# sudo chown -R root:root $GITHUB_WORKSPACE
# - name: Vitepress Deploy
# uses: jenkey2011/vuepress-deploy@master
# env:
# ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# TARGET_REPO: ralcorta/afip.ts
# TARGET_BRANCH: gh-pages
# BUILD_SCRIPT: npm i && npm run docs:build
# BUILD_DIR: docs/.vuepress/dist
# CNAME: https://www.afipts.com

25 changes: 0 additions & 25 deletions .github/workflows/vuepress-deploy.yml

This file was deleted.

5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
lib
.env

node_modules
package-lock.json
pnpm-lock.yaml

src/auth/tickets
test-files
tests/mocks/credentials

.DS_Store
docs/.vitepress/dist
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit a2a4df0

Please sign in to comment.