Skip to content

Implement system to handle varying platform module names/compatibility across platforms #151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 120
tab_width = 2
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false

[*.{yml,yaml}]
max_line_length = off

[COMMIT_EDITMSG]
max_line_length = off
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist/
lib/
node_modules/
jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"plugins": ["jest", "@typescript-eslint", "prettier", "unicorn"],
"extends": ["plugin:unicorn/recommended", "plugin:github/recommended", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module"
},
"env": {
"node": true,
"es6": true,
"jest/globals": true
},
"rules": {
"prettier/prettier": "error",
"import/no-extraneous-dependencies": 0,
"import/no-namespace": "off"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist/index* -diff linguist-generated=true
dist/licenses* -diff linguist-generated=true
dist/sourcemap* -diff linguist-generated=true
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.idea
node_modules
coverage/
lib/
.vsconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/node_modules/**
**/dist/**
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"printWidth": 120
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
save-prefix "^"
--install.audit true
--add.audit true
16 changes: 16 additions & 0 deletions .github/workflows/actions/module-compatibility-handler/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'Module Compatibility Handler'
description: 'Validates module compatibility for different versions of Unity and provides the real module name'
inputs:
editorVersion:
description: 'The version of the Unity editor'
required: true
editorChangeset:
description: 'The changeset of the Unity editor'
required: true
editorModule:
description: 'The module that will be installed with the editor'
required: true

runs:
using: 'node12'
main: 'dist/index.js'
Loading