Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
2.4.0 Release from master (#171)
Browse files Browse the repository at this point in the history
* feat: saving the progress

* feat: saving the progress

* feat: saving the progress

* Started the cleanup of eslint and pre-commit hooks.

Will enforce line style in next commit.

* Enforcing line indents to 2. 💥

* Adding some files to trigger a husky preHook.

* More husky config.

* Enforcing line indents to 2. Formatting test. 💥

* come on husky... you can do it.

* chore: linting

* chore: 🚨 linting.

* fixing the prettier/eslint configs and removing conflicts.

* chore: fixing all the quotes to single quote. Yeah it's a thing.

* chore: removing inferrable types.

* chore: fixing no-unused-vars. Made _vars ignored.

All other instances have been  fixed. 🩹

* chore: fixing namespace/module issue.

* chore: Removing some more rules we turned off.

* chore: Removing type rules that were disabling a few checks.

* feat: Dashboard box has been implemented

* feat: Tree view implementation has changed from AZTreeView to TreeView

* feat: The Dashboard Service has removed from Networks box

* test: The dashboard test suite has implemented

* fix: Code tweaks

* fix: Network view has moved to the top

* test: More tests have added to simulate deployment via dashboard

* fix: Dashboard processes (sometimes) was not being removed from output channel

* fix: Code for the refactoring of the truffle config readers.

* chore: adding in deleted file.

* fix: The mnemonic. nemoonik, mnemonoomic. What a word.

Random fact, Keanu Reeves starred as Johnny Mnemonic in the movie of the same name. 🤖 📝

His brain could hold 80Gigs of data. Pitiful. He should have used his iphone or iCloud instead. (There are other cloud options for storing your private data in...)

* fix: final changes to get tests working!

* fix: The issue from debug a project inside a subdirectory was fixed

* fix: Tests issues have fixed

* chore: Some functions name has changed. The truffleWorkspace has chenged to WorkspaceFolder. Put the option to Debug a transaction ocontract menu

* fix: rolled backed to TruffleWorkspace because workspace folder is not working with windows volume mapping

* fix: final bits of config.

* fix: adding commitlint

This checks the syntax of our commits. adding some constancy to the
 process of commiting with a decent message.

A rod for my own back.

* chore: fixing the docs

Adding more info in the CONTRIBUTING.md file for the correct syntax. 📝

* fix: Maximum version of apps was set on required apps page

* renamed from explorer - truffle to contract explorer

issue #121

* fix: webpack config changes

This will repair the webpack folder issues we were seeing on builds.

* chore: changes was made in order to follow the code review suggestions

* feat(explorer): added createContract

fix(commands): fixed typo "Plataform" => "Platform"

* fix(createContract): refresh explorer after createContract

* fix: updating changelog

bumping to 2.3.5 in package.json and testing local vsix.

* fix: added new PR checks

This adds in new CI tasks for PR checks.

Ensures our code quality/formatting standards are met.

:alembic:

* fix: added new PR checks/renamed on develop

Had to commit here as it won't run on a feature branch.

This adds in new CI tasks for PR checks.

Ensures our code quality/formatting standards are met.

:alembic:

Also renamed the main.yml to publish.yml and enabled into release action
.

* chore: fixing a few things

Prettier was upset about some changes. :rotating_light:

* chore: windowz and prettier fixes

eol/linefeeds. :construction_worker:

* chore: hacks reintroduced

The ts-patch code needs to be added in the beginning to allow us to
patch imports.

* fix: ci fixes

Problems with the way CI sends variables into the action.

Fixing the variable names.

* fix: hdwallet npm package has updated to truffle/hdwallet-provider

* fix: trying to get the paths correct

Pre-Release/Release fixes.

* fix: error with GitHub action

* fix: make action trigger-able

* fix: look at changelog code

Adding this action in to test changelog generation.

* chore: prettifying all the things

* fix: reworking CI Files

making reusable workflows.

Testing out the triggers for actions.

* fix: fixing paths

Disabling the changelog.yml file for the moment.

* fix: auto load has implemented

* refactor: remove unused code that checks whether Python is installed

* fix: start ganache command when invoked from the command palette (#142)

* fix: activationEvents list commands has reverted (#167)

* fix: activationEvents list commands has reverted

* fix: more events has added to the list

* fix: fork network is working with deploy (#146)

* Draft: Required app was validating NPM local packages (#164)

* fix: npm local version validation has removed from truffle and ganache

* fix: rollbacking the activationEvents list

* feat: required app page fix

Added in the action and link for the requirements page right now.

Stops a random error appearing otherwise. Found this while testing.

Co-authored-by: MB <[email protected]>

* fix: enabling the action for changelog

Adding in the ability to manually trigger the changelog action so we can
 use it as part of the release process.

* chore: updating changelog

* chore: removing metadata

Somehow we generated metadata into the package.json file which mucks up
pre-release versions.

* fix: bumping released version

Adding in new Version to changelog diff v2.4.0

This will be the published version from master.

* fix: making preRelease true

Making the flag true by default. There is some kind of issue herex
I needed to fix to make pre-release builds work again.

Thanks VSCode for silently updating things and not telling me why.

* fix: add new tasks to publish

The CI task needs to force these flags to ensure the builds are going to
 be correctly configured for the marketplace.

* fix: adjust ignore file

* Fixes the Debug Transaction command (#174)

* fix: revert some changes from #119 to fix debugger

* fix: remove duplicated types

* Dashboard link has added to dashboard view panel (#172)

feat: dashboard link has added to dashboard view panel

Co-authored-by: xhulz <[email protected]>
Co-authored-by: Nikolai <[email protected]>
Co-authored-by: Marcos Schulz <[email protected]>
Co-authored-by: Luis Mastrangelo <[email protected]>
Co-authored-by: Luis Mastrangelo <[email protected]>
  • Loading branch information
6 people authored Jul 26, 2022
1 parent d3ee36e commit 467eeb7
Show file tree
Hide file tree
Showing 270 changed files with 9,016 additions and 9,410 deletions.
3 changes: 3 additions & 0 deletions .eslintingore → .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ jspm_packages/
resources/drizzle/

ui-test/

### We ignore the config file to stop issues.
# .eslintrc.js
156 changes: 42 additions & 114 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,125 +1,53 @@
/*
👋 Hi! This file was autogenerated by tslint-to-eslint-config.
https://github.com/typescript-eslint/tslint-to-eslint-config
It represents the closest reasonable ESLint configuration to this
project's original TSLint configuration.
We recommend eventually switching this configuration to extend from
the recommended rulesets in typescript-eslint.
https://github.com/typescript-eslint/tslint-to-eslint-config/blob/master/docs/FAQs.md
Happy linting! 💖
TODO: remove this eventually...
✨ 119 rules replaced with their ESLint equivalents. ✨
❗ 7 ESLint rules behave differently from their TSLint counterparts ❗
Check ./tslint-to-eslint-config.log for details.
❓ 3 rules are not known by tslint-to-eslint-config to have ESLint equivalents. ❓
The "@typescript-eslint/tslint/config" section of ./.eslintrc.js configures eslint-plugin-tslint to run them in TSLint within ESLint.
Check ./tslint-to-eslint-config.log for details.
⚡ 1 new package is required for this ESLint configuration. ⚡
yarn add eslint-config-prettier --dev
♻ Consider using --comments to replace TSLint comment directives in your source files. ♻
✅ All is well! ✅
*/
module.exports = {
env: {
browser: true,
es6: true,
es2021: true,
node: true,
mocha: true,
},
parser: "@typescript-eslint/parser",
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
// Adding this in future would be good but its problematic.
// "plugin:@typescript-eslint/recommended-requiring-type-checking",
'prettier',
],
ignorePatterns: ['ui-test/**/*.ts', '.eslintrc.js', 'webpack*.js'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: ["./tsconfig.json"],
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json'],
},
overrides: [
{
files: ["*.ts"],
parserOptions: {
project: ["./tsconfig.json"],
},
},
],
extends: ["plugin:@typescript-eslint/recommended", "eslint:recommended", "prettier"],
plugins: ["prettier", "@typescript-eslint"],
ignorePatterns: ["ui-test/**/*.ts"],
plugins: ['@typescript-eslint'],
rules: {
// FIXME: rework this eventually. Tech-debt
"@typescript-eslint/ban-ts-comment": "off",
// FIXME: rework this eventually. Tech-debt
"@typescript-eslint/ban-types": [
"off",
{
types: {
Object: {
message: "Avoid using the `Object` type. Did you mean `object`?",
},
Function: {
message: "Avoid using the `Function` type. Prefer a specific function type, like `() => void`.",
},
Boolean: {
message: "Avoid using the `Boolean` type. Did you mean `boolean`?",
},
Number: {
message: "Avoid using the `Number` type. Did you mean `number`?",
},
String: {
message: "Avoid using the `String` type. Did you mean `string`?",
},
Symbol: {
message: "Avoid using the `Symbol` type. Did you mean `symbol`?",
},
},
},
],
"@typescript-eslint/dot-notation": "warn",
// FIXME: rework this eventually. Tech-debt
"@typescript-eslint/no-empty-interface": "off",
// FIXME: rework this eventually. Tech-debt
"@typescript-eslint/no-explicit-any": "off",
// FIXME: rework this eventually. Tech-debt
"@typescript-eslint/no-inferrable-types": "off",
// FIXME: rework this eventually. Tech-debt
"@typescript-eslint/no-namespace": "off",
// FIXME: rework this eventually. Tech-debt
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-use-before-define": "off",
// FIXME: rework this eventually. Tech-debt
"@typescript-eslint/no-var-requires": "off",
// FIXME: rework this eventually. Tech-debt
"@typescript-eslint/prefer-namespace-keyword": "off",
"@typescript-eslint/triple-slash-reference": [
"warn",
{
path: "always",
types: "prefer-import",
lib: "always",
},
],
"dot-notation": "warn",

"no-constant-condition": ["error", { checkLoops: false }],
// FIXME: tech-debt.
"no-extra-boolean-cast": "off",
// FIXME: rework this eventually. Tech-debt
"no-inner-declarations": "off",
// FIXME: rework this eventually. Tech-debt
"no-prototype-builtins": "off",
// FIXME: This needs removed. Tech-Debt
"no-undef": "off",
"no-unused-vars": "off",
"no-useless-escape": "off",
"no-use-before-define": "off",
// FIXME: rework this eventually. Tech-debt
"no-var": "off",
'dot-notation': 'off',
'@typescript-eslint/dot-notation': ['error'],

// We can ignore vars in overridden methods with this rule.
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error', {argsIgnorePattern: '^_'}],

// need this as we have a few while(true) loops.
'no-constant-condition': ['error', {checkLoops: false}],

// FIXME: rework this eventually. Tech-debt - 200+ warnings right now.
'@typescript-eslint/no-explicit-any': 'off',

// FIXME: rework this eventually. Tech-debt - 24 Issues. Prob quite complex rework.
'@typescript-eslint/no-namespace': 'off',

// FIXME: rework this eventually. Tech-debt - 70 Warnings
'@typescript-eslint/no-non-null-assertion': 'off',
// FIXME: rework this eventually. Tech-debt - cant enable this - some require code/voodoo hacks.
'@typescript-eslint/no-var-requires': 'off',
// FIXME: rework this eventually. Tech-debt - 55 Errors
'no-inner-declarations': 'off',
// FIXME: rework this eventually. Tech-debt - 4 hasOwnProperty Errors
'no-prototype-builtins': 'off',
// FIXME: This needs removed. Tech-Debt - 1 error for web3 in a voodoo JS script.
'no-undef': 'off',
// FIXME: rework this eventually. Tech-debt - 8 Errors right now. Needs investigation.
// '@typescript-eslint/ban-ts-comment': 'off',
},
};
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
59 changes: 59 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Changelog Test

on:
workflow_dispatch:

jobs:
build:
name: '✏️ Changelog generation'
runs-on: ubuntu-18.04
steps:
- name: '📥 Check-out'
uses: actions/checkout@v2
# explicitly specify ${{ github.head_ref }} in the checkout Action.
# This is required in order to work with the pull_request event (or any other non-push event).
with:
ref: ${{ github.head_ref }}

- name: '✏️ Generate full changelog'
id: generate-full-changelog
# https://github.com/heinrichreimer/action-github-changelog-generator
uses: heinrichreimer/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
headerLabel: '# 📑 Changelog'
breakingLabel: '### 💥 Breaking'
enhancementLabel: '### 🚀 Enhancements'
bugsLabel: '### 🐛 Bug fixes'
deprecatedLabel: '### ⚠️ Deprecations'
removedLabel: '### 🔥 Removals'
securityLabel: '### 🛡️ Security'
issuesLabel: '### 📁 Other issues'
prLabel: '### 📁 Other pull requests'
addSections: '{"documentation":{"prefix":"### 📖 Documentation","labels":["documentation"]},"tests":{"prefix":"### ✅ Testing","labels":["tests"]}}'
issues: true
issuesWoLabels: true
pullRequests: true
prWoLabels: true
author: true
unreleased: true
compareLink: true
stripGeneratorNotice: true
verbose: true
- name: '🖨️ Print changelog to console'
run: cat CHANGELOG.md

# TODO - look at using autocommit here:
# - name: Commit updated CHANGELOG
# uses: stefanzweifel/git-auto-commit-action@v4
# with:
# branch: ${{ github.event.release.target_commitish }}
# commit_message: Update CHANGELOG
# commit_options: '--no-verify'
# file_pattern: CHANGELOG.md

- name: '📤 Upload changelog'
uses: actions/[email protected]
with:
name: 'Changelog'
path: CHANGELOG.md
29 changes: 29 additions & 0 deletions .github/workflows/core-ci-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Core CI Checks

on:
workflow_call:

jobs:
core-checks:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: lts/*
cache: 'yarn'

- name: Clean install dependencies. Fail on lockfile Changes.
run: yarn install --immutable --immutable-cache --check-cache --non-interactive

- name: Prettier
run: yarn prettier

- name: ESLint
run: yarn eslint

- name: Tests
run: yarn test
115 changes: 6 additions & 109 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,118 +1,15 @@
name: CI
name: Main Branch Checks

on:
push:
branches:
- develop
- master
paths-ignore: # dont run when changes made to these folders
- ".vscode/**"
- '.vscode/**'

jobs:
cicd:
name: cicd
runs-on: windows-latest
env:
VSCE_FLAGS: ''
steps:
- name: checkout repo
uses: actions/checkout@v2

- name: fetch all history and tags from all branches for gitversion
run: git fetch --prune --unshallow

- name: install gitversion tool
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: "5.x"

- name: execute gitversion
id: gitversion # step id used as reference for output values
uses: gittools/actions/gitversion/[email protected]

- name: getPackageName
id: packageJson
uses: myrotvorets/[email protected]

- name: print Details
run: |
echo "::Major: ${{ steps.gitversion.outputs.major }}::"
echo "::Minor: ${{ steps.gitversion.outputs.minor }}::"
echo "::Patch: ${{ steps.gitversion.outputs.patch }}::"
echo "::MajorMinorPatch: ${{ steps.gitversion.outputs.majorMinorPatch }}::"
echo "::PreRelease: ${{ steps.gitversion.outputs.preReleaseTag }}::"
echo "::SemVer: ${{ steps.gitversion.outputs.semVer }}::"
echo "::PackageName: ${{steps.packageJson.outputs.packageName}} ::"
- name: setup node
uses: actions/setup-node@v2
with:
node-version: "16.4.x"
cache: "yarn"

- name: clean install dependencies. Fail on lockfile Changes.
run: yarn install --immutable --immutable-cache --check-cache

- name: run tests
run: yarn test

- name: update metadata in package.json
uses: onlyutkarsh/[email protected]
with:
files: "${{github.workspace}}/package.json"
patch-syntax: |
= /version => "${{ steps.gitversion.outputs.majorMinorPatch }}"
= /aiKey => "${{ secrets.AIKEY }}"
- name: add version in CHANGELOG.md
uses: cschleiden/[email protected]
with:
files: "${{github.workspace}}/CHANGELOG.md"
env:
VERSION: "${{ steps.gitversion.outputs.majorMinorPatch }}"

- name: configure package flags
id: package_flags
if: ${{ steps.gitversion.outputs.preReleaseTag != '' }}
run: |
echo "VSCE_FLAGS=--pre-release --yarn " | Out-File -FilePath $env:GITHUB_ENV -Append
echo "flags_set=true" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: compile and create vsix MASTER Release
if: github.ref == 'refs/heads/master'
run: |
echo ":: Packaging VSIX VSCE_FLAGS=${{ env.VSCE_FLAGS }}, ${{ env.flags_set }} ::"
yarn package
echo "vsix_path=${{steps.packageJson.outputs.packageName}}-${{steps.gitversion.outputs.majorMinorPatch}}" | Out-File -FilePath $env:GITHUB_ENV -Append
echo "vsix_type=-RELEASE" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: compile and create vsix Develop PreRelease
if: github.ref == 'refs/heads/develop'
run: |
echo ":: Packaging VSIX VSCE_FLAGS=${{ env.VSCE_FLAGS }}, ${{ env.flags_set }} :: $GITHUB_ENV"
yarn package ${{ env.VSCE_FLAGS }}
echo "vsix_path=${{steps.packageJson.outputs.packageName}}-${{steps.gitversion.outputs.majorMinorPatch}}" | Out-File -FilePath $env:GITHUB_ENV -Append
echo "vsix_type=-PRE_RELEASE" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: print vsix path
run: |
echo "::VSIX Path: ${{ env.vsix_path }}:: TYPE: ${{ env.vsix_type }}"
- name: upload vsix as artifact
uses: actions/upload-artifact@v1
with:
path: ${{ github.workspace }}/${{ env.vsix_path }}.vsix
name: ${{ env.vsix_path }}${{ env.vsix_type }}.vsix

# - name: publish to marketplace
# if: github.ref == 'refs/heads/master'
# run: npm run deploy ${{ env.PAT }}
#
# - name: create a release
# if: github.ref == 'refs/heads/master'
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
# with:
# tag_name: v${{ steps.gitversion.outputs.semVer }}
# release_name: v${{ steps.gitversion.outputs.semVer }}
checks:
name: Core Checks - Workflow Call
uses: ./.github/workflows/core-ci-checks.yml
secrets: inherit
Loading

0 comments on commit 467eeb7

Please sign in to comment.