Skip to content

Commit

Permalink
[wip] typescript conversion (#88)
Browse files Browse the repository at this point in the history
* [wip]

* [wip] migrates tests to jest for easier debugging, removes deps

* [chore] ignore dist

* [chore] fix ordering of event listeners to make sure async functions were run after

* [chore] updates tests to be jest tests adds website scaffolding

* [chore] updates ci workflow and cleans up website

* [chore] get types building and docs produced

* Gabrielcsapo/typescript conversion (#89)

* Minor fixes

Replaced JavaScript with TypeScript in README
Made sure that package will be built if installed from github
Fixed some types
Made some async functions return a Promise if callback was not specified

* Fixed small TYPO that broke README.md

* Update package.json

Added myself as contributor cuz y not

* Update service.ts

oops, missed a spot

* Create .git-package.meta

this dotfile should be commited to the repo

* Create .npmignore

.git-package.meta should not get committed to npm

Co-authored-by: Buj Itself <[email protected]>
Co-authored-by: Gabriel Csapo <[email protected]>

* [chore] updates dependencies

* [chore] fixes node@14 tests

* [chore] fix failing tests

* [chore] fix failing tests

* [chore] fix lint issues

* [chore] updates changelog

Co-authored-by: Buj <[email protected]>
Co-authored-by: Buj Itself <[email protected]>
  • Loading branch information
3 people authored Jan 3, 2022
1 parent 19520cc commit 05b5342
Show file tree
Hide file tree
Showing 186 changed files with 14,235 additions and 16,320 deletions.
26 changes: 12 additions & 14 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
{
"extends": "eslint:recommended",
"env": {
"node": true,
"es6": true
},
"rules": {
"strict": 0,
"semi": [
"error",
"always"
],
"no-octal": 0
}
}
"parser": "@typescript-eslint/parser",
"plugins": [
"prettier",
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
]
}
1 change: 1 addition & 0 deletions .git-package.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

64 changes: 64 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [main]
pull_request:
branches: [main]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
test:
name: "Node ${{ matrix.node }} - ${{ matrix.os }}"
runs-on: ${{ matrix.os }}-latest

strategy:
matrix:
node: ["14", "16", "latest"]
os: [ubuntu, macOS, windows]

steps:
- uses: actions/checkout@v1
- uses: volta-cli/action@v1
with:
node-version: ${{ matrix.node }}
- name: install dependencies
run: npm i
- name: lint
run: npm run lint
env:
CI: true
- name: test
run: npm test
env:
CI: true

gh-release:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16.x"
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
- name: install dependencies
run: npm i
- name: Release to GitHub Pages
env:
USE_SSH: true
GIT_USER: git
run: |
git config --global user.email "[email protected]"
git config --global user.name "Gabriel J. Csapo"
cd packages/website
npm run deploy
32 changes: 0 additions & 32 deletions .github/workflows/node.js.yml

This file was deleted.

6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ coverage
example/test
example/tmp
package-lock.json
.vs/
.vs/
dist
temp
etc
build-complete.meta
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git-package.meta
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": true
}
42 changes: 0 additions & 42 deletions .tryitout

This file was deleted.

5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 1.0.0-beta.1 (01/02/2022)

- Migrates to typescript (@5GameMaker @gabrielcsapo)
- Removes node support from node@<14

# 0.6.1 (03/03/2019)

- Fixes bug with being able to overwrite git repos that a user doesn't have access to. @masasron
Expand Down
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) 2016 Gabriel Csapo
Copyright (c) 2021 Gabriel Csapo

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
Loading

0 comments on commit 05b5342

Please sign in to comment.