Skip to content

Commit

Permalink
refactor: move back to node (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRamosAcosta committed Feb 4, 2024
1 parent c59ffe2 commit a19dc78
Show file tree
Hide file tree
Showing 127 changed files with 5,207 additions and 879 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm install

- name: Check types
run: npm run typecheck

- name: Run the tests
run: npm run test

- name: Build
run: npm run build
22 changes: 0 additions & 22 deletions .github/workflows/deno.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
build
.env
.idea

node_modules
dist
6 changes: 6 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
src
test
.idea
coverage
.env
dist/test
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.18.0
5 changes: 0 additions & 5 deletions .vscode/settings.json

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Daniel Ramos
Copyright (c) 2023 Daniel Ramos

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
13 changes: 0 additions & 13 deletions Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ OPTIONS:
The password of your factorial account. Also configurable via FACTORIAL_USER_PASSWORD env variable.
-r, --randomness <RANDOMNESS>
The amount of minutes for the shift clock in and out entropy. Also configurable via SHIFT_MINUTES_RANDOMNESS env variable.
The amount of minutes for the shift oClock in and out entropy. Also configurable via SHIFT_MINUTES_RANDOMNESS env variable.
--entryTime <ENTRY_TIME>
The default entry time you want to set to fill shifts. Also configurable via ENTRY_TIME env variable.
Expand Down
1 change: 0 additions & 1 deletion deps.ts

This file was deleted.

2 changes: 0 additions & 2 deletions dev_deps.ts

This file was deleted.

Loading

0 comments on commit a19dc78

Please sign in to comment.