diff --git a/.github/workflows/richnav-all.yml b/.github/workflows/richnav-all.yml new file mode 100644 index 0000000..e47f1f2 --- /dev/null +++ b/.github/workflows/richnav-all.yml @@ -0,0 +1,47 @@ +### This template is meant to be used by a .NET Core repository running RichNav +### Please fill anything marked above with a "# **** #" comment with the value appropriate for your repository + +name: Rich Code Navigation + +on: + pull_request: + push: + branches: [ master ] + +jobs: + richnav: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + + # **** Please change 'dotnet-version' to be the version of the .NET SDK used in your project **** # + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 3.1.101 + + # **** Please change 'working-directory' to be the location where your .SLN file is located **** # + - name: Install dependencies + run: dotnet restore + working-directory: ./csharp + + # **** Please change the version of Node being used to the one for your project **** # + - name: Use Node.js 12.x + uses: actions/setup-node@v1 + with: + node-version: 12.x + + - run: yarn + working-directory: typescript + + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + + - uses: microsoft/RichCodeNavIndexer@v0.1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + languages: csharp,java,typescript,cpp \ No newline at end of file diff --git a/.github/workflows/richnav-csharp.yml b/.github/workflows/richnav-csharp.yml new file mode 100644 index 0000000..6d693b5 --- /dev/null +++ b/.github/workflows/richnav-csharp.yml @@ -0,0 +1,33 @@ +### This template is meant to be used by a .NET Core repository running RichNav +### Please fill anything marked above with a "# **** #" comment with the value appropriate for your repository +name: Rich Code Navigation (.NET Core) + +on: + pull_request: + push: + branches: [ master ] + +jobs: + build: + + runs-on: windows-latest + + steps: + + - uses: actions/checkout@v2 + + # **** Please change 'dotnet-version' to be the version of the .NET SDK used in your project **** # + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 3.1.101 + + # **** Please change 'working-directory' to be the location where your .SLN file is located **** # + - name: Install dependencies + run: dotnet restore + working-directory: ./csharp + + - uses: microsoft/RichCodeNavIndexer@v0.1 + with: + languages: csharp + repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/richnav-java.yml b/.github/workflows/richnav-java.yml new file mode 100644 index 0000000..ae1406e --- /dev/null +++ b/.github/workflows/richnav-java.yml @@ -0,0 +1,27 @@ +### This template is meant to be used by a .NET Core repository running RichNav +### Please fill anything marked above with a "# **** #" comment with the value appropriate for your repository + +name: Rich Code Navigation (Java with Maven) + +on: + pull_request: + push: + branches: [ master ] + +jobs: + richnav: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + + - uses: microsoft/RichCodeNavIndexer@v0.1 + with: + languages: java + repo-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/richnav-typescript.yml b/.github/workflows/richnav-typescript.yml new file mode 100644 index 0000000..99fde22 --- /dev/null +++ b/.github/workflows/richnav-typescript.yml @@ -0,0 +1,35 @@ +### This template is meant to be used by a .NET Core repository running RichNav +### Please fill anything marked above with a "# **** #" comment with the value appropriate for your repository + +name: Rich Code Navigation (Node JS) + +on: + pull_request: + push: + branches: [ master ] + +jobs: + richnav: + + runs-on: windows-latest + + # **** If necessary, use the Node version for your repository. Note: must be greater than 10.x **** # + strategy: + matrix: + node-version: [10.x, 12.x, 14.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - run: yarn + working-directory: typescript + + - uses: microsoft/RichCodeNavIndexer@v0.1 + with: + languages: typescript + repo-token: ${{ secrets.GITHUB_TOKEN }} + diff --git a/.gitignore b/.gitignore index 041046f..6f20df6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,339 @@ -# C# -csharp/bin/* -csharp/obj/* -csharp/.vs/* +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore # TypeScript typescript/lib +node_modules +.vscode/ -# Java -java/lib \ No newline at end of file +# User-specific files +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Files created by azure-pipelines-task-lib +*.taskkey + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Oo]ut/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUNIT +*.VisualState.xml +TestResult.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +launchSettings.json + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_i.h +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding add-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +#*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs +.gradle/ +.project +.settings/ + +#Generated files created by LSIFLanguageServers building test-assets +*.class + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ +package-lock.json + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# JetBrains Rider +.idea/ +*.sln.iml + +# CodeRush +.cr/ + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 8617098..0000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "node", - "request": "launch", - "name": "TypeScript", - "program": "${workspaceFolder}/typescript/lib/App.js", - "outFiles": [ - "${workspaceFolder}/typescript/lib/**/*.js" - ], - "sourceMaps": true, - }, - { - "type": "java", - "request": "launch", - "name": "Java", - "mainClass": "App", - } - ] -} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json deleted file mode 100644 index 3639f24..0000000 --- a/.vscode/tasks.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - // See https://go.microsoft.com/fwlink/?LinkId=733558 - // for the documentation about the tasks.json format - "version": "2.0.0", - "tasks": [ - { - "label": "java", - "type": "shell", - "command": "javac ${workspaceFolder}/java/src/*.java -d ${workspaceFolder}/java/lib/", - "group": "build", - "problemMatcher": [] - } - ] -} \ No newline at end of file diff --git a/README.md b/README.md index f11631a..dc12f2e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,21 @@ -[![Build Status](https://dev.azure.com/jumattos/Tester-Game/_apis/build/status/jumattos.tester-game?branchName=master)](https://dev.azure.com/jumattos/Tester-Game/_build/latest?definitionId=1&branchName=master) +# Rich Code Navigation Indexed Code Samples -A game written for testing purposes. +This is a sample code base used to validate Rich Code Nav indexing against DEV, INT, and PROD environments. + +## Validation steps +1. Push any commit to any branch to trigger the build, typically a trivial comment change. +1. Monitor the indexing task and make sure the build succeeded. +1. Use the [Rich Nav chrome extension](https://chrome.google.com/webstore/detail/intellinav/dpafdcoicfffinjoondenocgljiaepfj) to validate code navigation on the commit that was indexed against the target environment. + +## Build Status +### DEV + +[![Build Status](https://dev.azure.com/devdiv/Personal/_apis/build/status/RichNavIndexCodeSamples/RichNavIndex-GitHub-DEV)](https://dev.azure.com/devdiv/Personal/_build/latest?definitionId=12798) + +### INT + +[![Build Status](https://dev.azure.com/devdiv/Personal/_apis/build/status/RichNavIndexCodeSamples/RichNavIndex-GitHub-INT)](https://dev.azure.com/devdiv/Personal/_build/latest?definitionId=12796) + +### PROD + +[![Build Status](https://dev.azure.com/devdiv/Personal/_apis/build/status/RichNavIndexCodeSamples/RichNavIndex-GitHub-PROD)](https://dev.azure.com/devdiv/Personal/_build/latest?definitionId=12797) diff --git a/azure-pipelines-dev.yml b/azure-pipelines-dev.yml new file mode 100644 index 0000000..e284a69 --- /dev/null +++ b/azure-pipelines-dev.yml @@ -0,0 +1,37 @@ +# Runs weekly or after every push to all branches to validate indexing against development environment + +trigger: + branches: + include: ["master", "*"] + paths: + exclude: ["doc", "*.md"] + +schedules: +- cron: "0 15 * * Wed" # Wed @ 8 or 9 AM Mountain Time (depending on DST) + displayName: Weekly Development Environment Validation Run + branches: + include: + - master + always: true + +queue: + name: Hosted VS2017 + timeoutInMinutes: 60 + +steps: +- task: NodeTool@0 + displayName: 'Use Node 10.x' + inputs: + versionSpec: 10.x + +- task: MS-RichCodeNav.Indexer.build-task.RichCodeNavIndexer@0 + displayName: Rich Code Navigation Upload to Development + inputs: + serviceConnection: 'richCodeNav-Token-Dev' + languages: 'csharp,typescript,java,cpp' + githubServiceConnection: 'xuachen' + nugetFeed: 'https://devdiv.pkgs.visualstudio.com/Personal/_packaging/richnav/nuget/v3/index.json' + isPrivateFeed: true + nugetVersion: '0.1.1382-alpha' + environment: development + continueOnError: true diff --git a/azure-pipelines-int.yml b/azure-pipelines-int.yml new file mode 100644 index 0000000..a4fc937 --- /dev/null +++ b/azure-pipelines-int.yml @@ -0,0 +1,36 @@ +# Runs weekly or after every push to all branches to validate indexing against staging/production environments + +trigger: + branches: + include: ["master", "*"] + paths: + exclude: ["doc", "*.md"] + +schedules: +- cron: "0 15 * * Wed" # Wed @ 8 or 9 AM Mountain Time (depending on DST) + displayName: Weekly Staging Environment Validation Run + branches: + include: + - master + always: true + +queue: + name: Hosted VS2017 + timeoutInMinutes: 60 + +steps: +- task: NodeTool@0 + displayName: 'Use Node 10.x' + inputs: + versionSpec: 10.x + +- task: MS-RichCodeNav.Indexer.build-task.RichCodeNavIndexer@0 + displayName: Rich Code Navigation Upload to Staging + inputs: + serviceConnection: 'richCodeNav-Token-Int' + languages: 'csharp,typescript,java,cpp' + githubServiceConnection: 'xuachen' + environment: staging + isPrivateFeed: false + continueOnError: true + diff --git a/azure-pipelines-prod.yml b/azure-pipelines-prod.yml new file mode 100644 index 0000000..ace2458 --- /dev/null +++ b/azure-pipelines-prod.yml @@ -0,0 +1,36 @@ +# Runs weekly or after every push to all branches to validate indexing against staging/production environments + +trigger: + branches: + include: ["master", "*"] + paths: + exclude: ["doc", "*.md"] + +schedules: +- cron: "0 15 * * Wed" # Wed @ 8 or 9 AM Mountain Time (depending on DST) + displayName: Weekly Production Environment Validation Run + branches: + include: + - master + always: true + +queue: + name: Hosted VS2017 + timeoutInMinutes: 60 + +steps: +- task: NodeTool@0 + displayName: 'Use Node 10.x' + inputs: + versionSpec: 10.x + +- task: MS-RichCodeNav.Indexer.build-task.RichCodeNavIndexer@0 + displayName: Rich Code Navigation Upload to Production + inputs: + serviceConnection: 'richCodeNav-Token-Prod' + languages: 'csharp,typescript,java,cpp' + githubServiceConnection: 'xuachen' + environment: production + isPrivateFeed: false + continueOnError: true + diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index d75fea3..0000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,27 +0,0 @@ -# Starter pipeline -# Start with a minimal pipeline that you can customize to build and deploy your code. -# Add steps that build, run tests, deploy, and more: -# https://aka.ms/yaml - -steps: -- script: echo Hello, world! - displayName: 'Run a one-line script' - -- script: | - echo Add other tasks to build, test, and deploy your project. - echo See https://aka.ms/yaml - displayName: 'Run a multi-line script' - -- task: DotNetCoreInstaller@0 - displayName: 'Use .NET Core sdk 2.1.300' - inputs: - version: 2.1.300 - -- task: vsintellinav.vsck-service-endpoint.build-task.upload-cache-build-task@0 - displayName: 'VS IntelliNav Upload' - inputs: - vsckEndpoint: 'vscloudkernel-dev' - nugetpat: 'vscloudkernel-nuget' - language: 'typescript;csharp' - githubpat: 'jumattos' - nugetVersion: 'latest' \ No newline at end of file diff --git a/cpp/README.md b/cpp/README.md new file mode 100644 index 0000000..70e867e Binary files /dev/null and b/cpp/README.md differ diff --git a/cpp/Test.cpp b/cpp/Test.cpp new file mode 100644 index 0000000..5affa67 --- /dev/null +++ b/cpp/Test.cpp @@ -0,0 +1,16 @@ +// declaration 1 +void func(); + +int main() +{ + // reference 1 + func(); + // reference 2 + func(); +} + +// definition +void func() {} + +// declaration 2 +void func(); diff --git a/cpp/Test.sln b/cpp/Test.sln new file mode 100644 index 0000000..969d73b --- /dev/null +++ b/cpp/Test.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.28223.51 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Test", "Test.vcxproj", "{30BD441C-AD0F-4DDA-8DEB-8E3128A2B3C7}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {30BD441C-AD0F-4DDA-8DEB-8E3128A2B3C7}.Debug|x64.ActiveCfg = Debug|x64 + {30BD441C-AD0F-4DDA-8DEB-8E3128A2B3C7}.Debug|x64.Build.0 = Debug|x64 + {30BD441C-AD0F-4DDA-8DEB-8E3128A2B3C7}.Debug|x86.ActiveCfg = Debug|Win32 + {30BD441C-AD0F-4DDA-8DEB-8E3128A2B3C7}.Debug|x86.Build.0 = Debug|Win32 + {30BD441C-AD0F-4DDA-8DEB-8E3128A2B3C7}.Release|x64.ActiveCfg = Release|x64 + {30BD441C-AD0F-4DDA-8DEB-8E3128A2B3C7}.Release|x64.Build.0 = Release|x64 + {30BD441C-AD0F-4DDA-8DEB-8E3128A2B3C7}.Release|x86.ActiveCfg = Release|Win32 + {30BD441C-AD0F-4DDA-8DEB-8E3128A2B3C7}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {39B6110D-D7F7-4B02-83EE-9FF7CBC06647} + EndGlobalSection +EndGlobal diff --git a/cpp/Test.vcxproj b/cpp/Test.vcxproj new file mode 100644 index 0000000..846357b --- /dev/null +++ b/cpp/Test.vcxproj @@ -0,0 +1,160 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 15.0 + {30BD441C-AD0F-4DDA-8DEB-8E3128A2B3C7} + Win32Proj + Test + 10.0.17134.0 + + + + Application + true + v141 + Unicode + + + Application + false + v141 + true + Unicode + + + Application + true + v141 + Unicode + + + Application + false + v141 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + true + + + false + + + false + + + + NotUsing + Level3 + Disabled + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + pch.h + + + Console + true + + + + + NotUsing + Level3 + Disabled + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + pch.h + + + Console + true + + + + + NotUsing + Level3 + MaxSpeed + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + pch.h + + + Console + true + true + true + + + + + NotUsing + Level3 + MaxSpeed + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + pch.h + + + Console + true + true + true + + + + + + + + + + \ No newline at end of file diff --git a/cpp/Test.vcxproj.filters b/cpp/Test.vcxproj.filters new file mode 100644 index 0000000..8f93125 --- /dev/null +++ b/cpp/Test.vcxproj.filters @@ -0,0 +1,25 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Source Files + + + Source Files + + + \ No newline at end of file diff --git a/cpp/Test2.cpp b/cpp/Test2.cpp new file mode 100644 index 0000000..64e2bc9 --- /dev/null +++ b/cpp/Test2.cpp @@ -0,0 +1,3 @@ +int i; +double d; +bool b; diff --git a/cpp/yarn.lock b/cpp/yarn.lock new file mode 100644 index 0000000..fb57ccd --- /dev/null +++ b/cpp/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + diff --git a/java/.classpath b/java/.classpath new file mode 100644 index 0000000..71f5fef --- /dev/null +++ b/java/.classpath @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/java/pom.xml b/java/pom.xml new file mode 100644 index 0000000..ed2f930 --- /dev/null +++ b/java/pom.xml @@ -0,0 +1,75 @@ + + + + 4.0.0 + + com.test.sort + sortApp + 1.0-SNAPSHOT + + sortApp + + http://www.example.com + + + UTF-8 + 1.7 + 1.7 + + + + + junit + junit + 4.11 + test + + + + + + + + + maven-clean-plugin + 3.1.0 + + + + maven-resources-plugin + 3.0.2 + + + maven-compiler-plugin + 3.8.0 + + + maven-surefire-plugin + 2.22.1 + + + maven-jar-plugin + 3.0.2 + + + maven-install-plugin + 2.5.2 + + + maven-deploy-plugin + 2.8.2 + + + + maven-site-plugin + 3.7.1 + + + maven-project-info-reports-plugin + 3.0.0 + + + + + diff --git a/java/src/App.java b/java/src/App.java deleted file mode 100644 index 5b6c23d..0000000 --- a/java/src/App.java +++ /dev/null @@ -1,8 +0,0 @@ -public class App -{ - public static void main( String[] args ) - { - Interactive block = new GameObject(10,10); - block.interact(); - } -} diff --git a/java/src/Drawable.java b/java/src/Drawable.java deleted file mode 100644 index da34459..0000000 --- a/java/src/Drawable.java +++ /dev/null @@ -1,4 +0,0 @@ -interface Drawable -{ - public void draw(); -} \ No newline at end of file diff --git a/java/src/GameObject.java b/java/src/GameObject.java deleted file mode 100644 index 2fa16d4..0000000 --- a/java/src/GameObject.java +++ /dev/null @@ -1,20 +0,0 @@ -class GameObject implements Interactive, Drawable -{ - int posX, posY; - - GameObject(int x, int y) - { - posX = x; - posY = y; - } - - public void interact() - { - System.out.println("Interacting with GameObject"); - } - - public void draw() - { - System.out.println("Drawing GameObject at position: " + posX + ", " + posY); - } -} \ No newline at end of file diff --git a/java/src/Interactive.java b/java/src/Interactive.java deleted file mode 100644 index f7aaf1c..0000000 --- a/java/src/Interactive.java +++ /dev/null @@ -1,4 +0,0 @@ -interface Interactive -{ - public void interact(); -} \ No newline at end of file diff --git a/java/src/main/java/com/test/sort/App.java b/java/src/main/java/com/test/sort/App.java new file mode 100644 index 0000000..f72a225 --- /dev/null +++ b/java/src/main/java/com/test/sort/App.java @@ -0,0 +1,25 @@ +package com.test.sort; + +/** + * Hello world! + * + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +} + +public class SomeSort implements SortAlgorithm { + @Override + public > T[] sort(T[] array) { + } + + public static void main(String[] args) { + SomeSort pancakeSort = new SomeSort(); + pancakeSort.sort(arr); + } +} + diff --git a/java/src/test/java/com/test/sort/AppTest.java b/java/src/test/java/com/test/sort/AppTest.java new file mode 100644 index 0000000..542596a --- /dev/null +++ b/java/src/test/java/com/test/sort/AppTest.java @@ -0,0 +1,20 @@ +package com.test.sort; + +import static org.junit.Assert.assertTrue; + +import org.junit.Test; + +/** + * Unit test for simple App. + */ +public class AppTest +{ + /** + * Rigorous Test :-) + */ + @Test + public void shouldAnswerWithTrue() + { + assertTrue( true ); + } +} diff --git a/typescript/package.json b/typescript/package.json new file mode 100644 index 0000000..405365a --- /dev/null +++ b/typescript/package.json @@ -0,0 +1,10 @@ +{ + "name": "tester-game", + "version": "0.0.1", + "description": "A simple Typescript game to test things", + "main": "App.js", + "license": "MIT", + "scripts": { + "build": "tsc -p ./" + } +} \ No newline at end of file diff --git a/typescript/src/App.ts b/typescript/src/App.ts index 84fa7ad..90c4ea7 100644 --- a/typescript/src/App.ts +++ b/typescript/src/App.ts @@ -5,6 +5,9 @@ class App { main(): void { let block: Interactive = new GameObject(10, 10); block.interact(); + + let otherBlock: Interactive = new GameObject(5, 5); + otherBlock.interact(); } } diff --git a/typescript/yarn.lock b/typescript/yarn.lock new file mode 100644 index 0000000..fb57ccd --- /dev/null +++ b/typescript/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + +