From 8e737f84df234df52887c74167b6033ce9f764e7 Mon Sep 17 00:00:00 2001 From: max Date: Mon, 2 Nov 2020 20:23:53 +0100 Subject: [PATCH] Initial commit --- .gitignore | 36 +++++++++++++++++++ CHANGELOG.md | 6 ++++ Documentation~/PACKAGENAME.md | 3 ++ Editor/COMPANYNAME.PACKAGENAME.Editor.asmdef | 16 +++++++++ Editor/EditorExample.cs | 6 ++++ LICENSE.md | 21 +++++++++++ README.md | 14 ++++++++ Runtime/COMPANYNAME.PACKAGENAME.asmdef | 12 +++++++ Runtime/RuntimeExample.cs | 5 +++ Samples~/Example1/Example.txt | 2 ++ THIRD PARTY NOTICES.md | 11 ++++++ ...OMPANYNAME.PACKAGENAME.Editor.Tests.asmdef | 20 +++++++++++ Tests/Editor/TestEditorExample.cs | 26 ++++++++++++++ .../COMPANYNAME.PACKAGENAME.Tests.asmdef | 17 +++++++++ Tests/Runtime/TestRuntimeExample.cs | 25 +++++++++++++ package.json | 30 ++++++++++++++++ 16 files changed, 250 insertions(+) create mode 100644 .gitignore create mode 100644 CHANGELOG.md create mode 100644 Documentation~/PACKAGENAME.md create mode 100644 Editor/COMPANYNAME.PACKAGENAME.Editor.asmdef create mode 100644 Editor/EditorExample.cs create mode 100644 LICENSE.md create mode 100644 README.md create mode 100644 Runtime/COMPANYNAME.PACKAGENAME.asmdef create mode 100644 Runtime/RuntimeExample.cs create mode 100644 Samples~/Example1/Example.txt create mode 100644 THIRD PARTY NOTICES.md create mode 100644 Tests/Editor/COMPANYNAME.PACKAGENAME.Editor.Tests.asmdef create mode 100644 Tests/Editor/TestEditorExample.cs create mode 100644 Tests/Runtime/COMPANYNAME.PACKAGENAME.Tests.asmdef create mode 100644 Tests/Runtime/TestRuntimeExample.cs create mode 100644 package.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..420f02d --- /dev/null +++ b/.gitignore @@ -0,0 +1,36 @@ +[Ll]ibrary/ +[Tt]emp/ +[Oo]bj/ +[Bb]uild/ +[Bb]uilds/ +[Ll]ogs/ +Assets/AssetStoreTools* + +# Visual Studio 2015 cache directory +/.vs/ + +# Autogenerated VS/MD/Consulo solution and project files +ExportedObj/ +.consulo/ +*.csproj +*.unityproj +*.sln +*.suo +*.tmp +*.user +*.userprefs +*.pidb +*.booproj +*.svd +*.pdb + +# Unity3D generated meta files +*.pidb.meta +*.pdb.meta + +# Unity3D Generated File On Crash Reports +sysinfo.txt + +# Builds +*.apk +*.unitypackage \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..2da9e92 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,6 @@ +# Change Log: + +## 0.1.0 + +- Start Project: + - ... diff --git a/Documentation~/PACKAGENAME.md b/Documentation~/PACKAGENAME.md new file mode 100644 index 0000000..119e48a --- /dev/null +++ b/Documentation~/PACKAGENAME.md @@ -0,0 +1,3 @@ +# PACKAGENAME + +Documentation. \ No newline at end of file diff --git a/Editor/COMPANYNAME.PACKAGENAME.Editor.asmdef b/Editor/COMPANYNAME.PACKAGENAME.Editor.asmdef new file mode 100644 index 0000000..2c9e8f1 --- /dev/null +++ b/Editor/COMPANYNAME.PACKAGENAME.Editor.asmdef @@ -0,0 +1,16 @@ +{ + "name": "COMPANYNAME.PACKAGENAME.Editor", + "references": [ + "COMPANYNAME.PACKAGENAME" + ], + "includePlatforms": [ + "Editor" + ], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [] +} \ No newline at end of file diff --git a/Editor/EditorExample.cs b/Editor/EditorExample.cs new file mode 100644 index 0000000..7bf43e5 --- /dev/null +++ b/Editor/EditorExample.cs @@ -0,0 +1,6 @@ +using UnityEngine; +using UnityEditor; + +namespace COMPANYNAME.PACKAGENAME.Editor +{ +} \ No newline at end of file diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..7bbabf9 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 COMPANYNAME + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..d1a57a1 --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +# [COMPANYNAME]() - PACKAGENAME + +Description. + +## Install + +[Installing from a Git URL](https://docs.unity3d.com/Manual/upm-ui-giturl.html) + +[Unitypackage](https://github.com/COMPANYNAME/PACKAGENAME/releases) + + +## LICENSE + +Overall package is licensed under [MIT](/LICENSE.md), unless otherwise noted in the [3rd party licenses](/THIRD%20PARTY%20NOTICES.md) file and/or source code. \ No newline at end of file diff --git a/Runtime/COMPANYNAME.PACKAGENAME.asmdef b/Runtime/COMPANYNAME.PACKAGENAME.asmdef new file mode 100644 index 0000000..39855df --- /dev/null +++ b/Runtime/COMPANYNAME.PACKAGENAME.asmdef @@ -0,0 +1,12 @@ +{ + "name": "COMPANYNAME.PACKAGENAME", + "references": [], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [] +} \ No newline at end of file diff --git a/Runtime/RuntimeExample.cs b/Runtime/RuntimeExample.cs new file mode 100644 index 0000000..9315689 --- /dev/null +++ b/Runtime/RuntimeExample.cs @@ -0,0 +1,5 @@ +using UnityEngine; + +namespace COMPANYNAME.PACKAGENAME +{ +} \ No newline at end of file diff --git a/Samples~/Example1/Example.txt b/Samples~/Example1/Example.txt new file mode 100644 index 0000000..d505ef0 --- /dev/null +++ b/Samples~/Example1/Example.txt @@ -0,0 +1,2 @@ +This is just a template package with a template sample folder structure. +Import of this example file is successful! diff --git a/THIRD PARTY NOTICES.md b/THIRD PARTY NOTICES.md new file mode 100644 index 0000000..7b0cc49 --- /dev/null +++ b/THIRD PARTY NOTICES.md @@ -0,0 +1,11 @@ +This package borrows code from various different sources, including: + +# []() + +### Relevant Files +- []() + +### Credits +- Author: []() +- Source: []() +- License: []() diff --git a/Tests/Editor/COMPANYNAME.PACKAGENAME.Editor.Tests.asmdef b/Tests/Editor/COMPANYNAME.PACKAGENAME.Editor.Tests.asmdef new file mode 100644 index 0000000..ef6c99d --- /dev/null +++ b/Tests/Editor/COMPANYNAME.PACKAGENAME.Editor.Tests.asmdef @@ -0,0 +1,20 @@ +{ + "name": "COMPANYNAME.PACKAGENAME.Editor.Tests", + "references": [ + "COMPANYNAME.PACKAGENAME", + "COMPANYNAME.PACKAGENAME.Editor" + ], + "includePlatforms": [ + "Editor" + ], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "optionalUnityReferences": [ + "TestAssemblies" + ] +} \ No newline at end of file diff --git a/Tests/Editor/TestEditorExample.cs b/Tests/Editor/TestEditorExample.cs new file mode 100644 index 0000000..caf7bbb --- /dev/null +++ b/Tests/Editor/TestEditorExample.cs @@ -0,0 +1,26 @@ +using UnityEngine; +using UnityEngine.TestTools; +using UnityEditor; +using System.Collections; +using System.Collections.Generic; +using NUnit.Framework; + +namespace COMPANYNAME.PACKAGENAME.Editor.Tests +{ + public class TestEditorExample + { + [Test] + public void TestEditorExampleSimplePasses() + { + // Use the Assert class to test conditions + } + + [UnityTest] + public IEnumerator TestEditorExampleWithEnumeratorPasses() + { + // Use the Assert class to test conditions. + // Use yield to skip a frame. + yield return null; + } + } +} \ No newline at end of file diff --git a/Tests/Runtime/COMPANYNAME.PACKAGENAME.Tests.asmdef b/Tests/Runtime/COMPANYNAME.PACKAGENAME.Tests.asmdef new file mode 100644 index 0000000..d6c0cd3 --- /dev/null +++ b/Tests/Runtime/COMPANYNAME.PACKAGENAME.Tests.asmdef @@ -0,0 +1,17 @@ +{ + "name": "COMPANYNAME.PACKAGENAME.Tests", + "references": [ + "COMPANYNAME.PACKAGENAME" + ], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "optionalUnityReferences": [ + "TestAssemblies" + ] +} \ No newline at end of file diff --git a/Tests/Runtime/TestRuntimeExample.cs b/Tests/Runtime/TestRuntimeExample.cs new file mode 100644 index 0000000..bb62108 --- /dev/null +++ b/Tests/Runtime/TestRuntimeExample.cs @@ -0,0 +1,25 @@ +using UnityEngine; +using UnityEngine.TestTools; +using System.Collections; +using System.Collections.Generic; +using NUnit.Framework; + +namespace COMPANYNAME.PACKAGENAME.Tests +{ + public class TestRuntimeExample + { + [Test] + public void TestRuntimeExampleSimplePasses() + { + // Use the Assert class to test conditions + } + + [UnityTest] + public IEnumerator TestRuntimeExampleEnumeratorPasses() + { + // Use the Assert class to test conditions. + // Use yield to skip a frame. + yield return null; + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..5c6f7f8 --- /dev/null +++ b/package.json @@ -0,0 +1,30 @@ +{ + "name": "com.COMPANYNAME.PACKAGENAME", + "displayName": "Template Unity Package", + "version": "0.1.0", + "unity": "2019.3", + "unityRelease": "7f1", + "description": "This is a template package, used as a basis to build a bigger one.", + "category": "Tool", + "type": "tool", + "license": "MIT", + "author": { + "name": "Max Kruf", + "email": "info@maxartz15.com", + "url": "https://www.maxartz15.com" + }, + "dependencies": { + "com.maxartz15.package1": "0.1.0" + }, + "keywords": [ + "COMPANYNAME", + "PACKAGENAME" + ], + "samples": [ + { + "displayName": "Example 1", + "description": "This sample is just an example", + "path": "Samples~/Example1" + } + ] +}