Skip to content

Commit 05b5342

Browse files
gabrielcsapo5GameMakerBuj Itself
authored
[wip] typescript conversion (#88)
* [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]>
1 parent 19520cc commit 05b5342

File tree

186 files changed

+14235
-16320
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

186 files changed

+14235
-16320
lines changed

.eslintrc

+12-14
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
{
2-
"extends": "eslint:recommended",
3-
"env": {
4-
"node": true,
5-
"es6": true
6-
},
7-
"rules": {
8-
"strict": 0,
9-
"semi": [
10-
"error",
11-
"always"
12-
],
13-
"no-octal": 0
14-
}
15-
}
2+
"parser": "@typescript-eslint/parser",
3+
"plugins": [
4+
"prettier",
5+
"@typescript-eslint"
6+
],
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:prettier/recommended",
10+
"plugin:@typescript-eslint/eslint-recommended",
11+
"plugin:@typescript-eslint/recommended"
12+
]
13+
}

.git-package.meta

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

.github/workflows/ci.yml

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the main branch
8+
push:
9+
branches: [main]
10+
pull_request:
11+
branches: [main]
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17+
jobs:
18+
test:
19+
name: "Node ${{ matrix.node }} - ${{ matrix.os }}"
20+
runs-on: ${{ matrix.os }}-latest
21+
22+
strategy:
23+
matrix:
24+
node: ["14", "16", "latest"]
25+
os: [ubuntu, macOS, windows]
26+
27+
steps:
28+
- uses: actions/checkout@v1
29+
- uses: volta-cli/action@v1
30+
with:
31+
node-version: ${{ matrix.node }}
32+
- name: install dependencies
33+
run: npm i
34+
- name: lint
35+
run: npm run lint
36+
env:
37+
CI: true
38+
- name: test
39+
run: npm test
40+
env:
41+
CI: true
42+
43+
gh-release:
44+
if: github.event_name != 'pull_request'
45+
runs-on: ubuntu-latest
46+
steps:
47+
- uses: actions/checkout@v2
48+
- uses: actions/setup-node@v2
49+
with:
50+
node-version: "16.x"
51+
- uses: webfactory/[email protected]
52+
with:
53+
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
54+
- name: install dependencies
55+
run: npm i
56+
- name: Release to GitHub Pages
57+
env:
58+
USE_SSH: true
59+
GIT_USER: git
60+
run: |
61+
git config --global user.email "[email protected]"
62+
git config --global user.name "Gabriel J. Csapo"
63+
cd packages/website
64+
npm run deploy

.github/workflows/node.js.yml

-32
This file was deleted.

.gitignore

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@ coverage
66
example/test
77
example/tmp
88
package-lock.json
9-
.vs/
9+
.vs/
10+
dist
11+
temp
12+
etc
13+
build-complete.meta

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.git-package.meta

.prettierrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}

.tryitout

-42
This file was deleted.

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 1.0.0-beta.1 (01/02/2022)
2+
3+
- Migrates to typescript (@5GameMaker @gabrielcsapo)
4+
- Removes node support from node@<14
5+
16
# 0.6.1 (03/03/2019)
27

38
- Fixes bug with being able to overwrite git repos that a user doesn't have access to. @masasron

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2016 Gabriel Csapo
3+
Copyright (c) 2021 Gabriel Csapo
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)