Skip to content

Commit b8a556d

Browse files
committed
add new types + auto release
1 parent c03385b commit b8a556d

File tree

5 files changed

+55
-72
lines changed

5 files changed

+55
-72
lines changed

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release
2+
3+
# Run on every commit tag which begins with "v" (e.g., "v0.1.4")
4+
on:
5+
push:
6+
tags:
7+
- "v*"
8+
9+
# Automatically create a GitHub Release, with release details specified (the relevant commits)
10+
jobs:
11+
release:
12+
name: "Release"
13+
runs-on: "ubuntu-latest"
14+
steps:
15+
16+
- uses: actions/checkout@v2
17+
18+
- name: Setup NodeJS
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: '16'
22+
23+
- name: Build
24+
run: |
25+
npm ci
26+
npm run build
27+
28+
- name: Create Zip
29+
run: zip -r module-tournament-tree.zip package.json package-lock.json dist/* frontend/*
30+
31+
- uses: "marvinpinto/action-automatic-releases@latest"
32+
with:
33+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
34+
prerelease: false
35+
files: |
36+
module-tournament-tree.zip

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "rcv-tournament-tree",
2+
"name": "module-tournament-tree",
33
"version": "1.0.0",
44
"description": "Module that provides GFX elements for a tournament tree",
5-
"author": "Himyu",
5+
"author": "RCVolus",
66
"license": "MIT",
77
"toolkit": {
88
"modes": [
@@ -13,10 +13,8 @@
1313
},
1414
"needsBuild": true
1515
},
16-
"dependencies": {
17-
"league-prod-toolkit": "file:../.."
18-
},
1916
"devDependencies": {
17+
"rcv-prod-toolkit-types": "^1.0.1",
2018
"typescript": "^4.3.2",
2119
"sass": "^1.34.1"
2220
},

plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { PluginContext } from 'league-prod-toolkit/core/modules/Module'
1+
import type { PluginContext } from 'rcv-prod-toolkit-types'
22
import type { GfxState } from './types/GfxState'
33

44
const namespace = 'rcv-tournament-tree';

tsconfig.json

Lines changed: 14 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,15 @@
11
{
2-
"compilerOptions": {
3-
/* Basic Options */
4-
"incremental": true /* Enable incremental compilation */,
5-
"target": "ES2018" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */,
6-
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
7-
// "lib": [], /* Specify library files to be included in the compilation. */
8-
// "allowJs": true, /* Allow javascript files to be compiled. */
9-
// "checkJs": true, /* Report errors in .js files. */
10-
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
11-
// "declaration": true, /* Generates corresponding '.d.ts' file. */
12-
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
13-
"sourceMap": true /* Generates corresponding '.map' file. */,
14-
// "outFile": "./",
15-
"allowJs": true, /* Concatenate and emit output to single file. */
16-
"outDir": "./dist" /* Redirect output structure to the directory. */,
17-
"rootDir": "./" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
18-
// "composite": true, /* Enable project compilation */
19-
"tsBuildInfoFile": "dist/.tsbuildinfo" /* Specify file to store incremental compilation information */,
20-
// "removeComments": true, /* Do not emit comments to output. */
21-
// "noEmit": true, /* Do not emit outputs. */
22-
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
23-
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
24-
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
25-
26-
/* Strict Type-Checking Options */
27-
"strict": true /* Enable all strict type-checking options. */,
28-
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
29-
// "strictNullChecks": true, /* Enable strict null checks. */
30-
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
31-
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
32-
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
33-
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
34-
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
35-
"resolveJsonModule": true,
36-
37-
/* Additional Checks */
38-
// "noUnusedLocals": true, /* Report errors on unused locals. */
39-
// "noUnusedParameters": true, /* Report errors on unused parameters. */
40-
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
41-
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
42-
43-
/* Module Resolution Options */
44-
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
45-
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
46-
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
47-
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
48-
// "typeRoots": ["./types"], /* List of folders to include type definitions from. */
49-
// "types": ["./types.ts"], /* Type declaration files to be included in compilation. */
50-
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
51-
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
52-
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
53-
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
54-
55-
/* Source Map Options */
56-
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
57-
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
58-
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
59-
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
60-
61-
/* Experimental Options */
62-
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
63-
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
64-
}
65-
}
66-
2+
"compilerOptions": {
3+
"incremental": true,
4+
"target": "ES2018",
5+
"module": "commonjs",
6+
"sourceMap": true,
7+
"allowJs": true,
8+
"outDir": "./dist",
9+
"rootDir": "./",
10+
"strict": true,
11+
"resolveJsonModule": true,
12+
"esModuleInterop": true
13+
},
14+
"exclude": ["frontend", "dist"]
15+
}

0 commit comments

Comments
 (0)