Skip to content
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

Vite conveyor migration #1307

Merged
merged 21 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
60c6cec
Reconfigured project structure for vite, electron-vite, and Hydraulic…
nelsonni Sep 29, 2023
15299f9
Populated preload API and redux store (in renderer)
nelsonni Sep 29, 2023
1e6bbb5
Update app naming from com.sample.synectic to io.github.EPICLab.synec…
nelsonni Sep 29, 2023
dcb7539
Fix TS7056 errors for inferred types exceeding the maximum length the…
nelsonni Sep 30, 2023
55aaa43
Add noUncheckedIndexedAccess option in tsconfig for tightening up ind…
nelsonni Sep 30, 2023
543f970
React components migrated
nelsonni Oct 6, 2023
a7f6766
Initial configs for MacOS 14 secure coding requirements
nelsonni Oct 6, 2023
a9fdb40
Always open DevTools in development mode
nelsonni Oct 6, 2023
e13ec4c
Migrate MUI TreeView per https://mui.com/blog/lab-tree-view-to-mui-x/
nelsonni Oct 6, 2023
aef4223
Externalize ESM-only packages in Vite config
nelsonni Oct 6, 2023
f883ea8
Prettier formatting
nelsonni Oct 6, 2023
2587625
chore: update dependencies
nelsonni Oct 6, 2023
b05b99c
Aggregate Content component imports to use default directory imports …
nelsonni Oct 7, 2023
cd7a27d
ESM Resolver for AceEditor component updated
nelsonni Oct 7, 2023
850a198
Modal components added to Canvas
nelsonni Oct 7, 2023
395d2ec
GitGraph ported over
nelsonni Oct 9, 2023
5b3b76d
Yarn updated to 3.6.4
nelsonni Oct 9, 2023
4b47d9d
Corrected gitignore rules
nelsonni Oct 10, 2023
e6c8a7c
Conveyor CI configuration
nelsonni Oct 10, 2023
9c57893
Dependency updates
nelsonni Oct 10, 2023
a85cc74
Separate CI build and deploy steps
nelsonni Oct 10, 2023
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
7 changes: 4 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true

[*.{js,json,yml}]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
trim_trailing_whitespace = false
insert_final_newline = false
48 changes: 0 additions & 48 deletions .eslintrc.json

This file was deleted.

5 changes: 4 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
* text=auto eol=lf
/.yarn/** linguist-vendored
/.yarn/releases/* binary
/.yarn/plugins/**/* binary
/.pnp.* binary linguist-generated
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build Release

on: [push, workflow_dispatch, workflow_call]
jobs:
build:
# Important: must be run from Linux.
runs-on: ubuntu-latest
steps:
- name: Checkout Git repository
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
cache: 'yarn'

- name: Install Dependencies
run: yarn install

- name: Build Synectic
run: yarn build
47 changes: 47 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Deploy to GitHub

on: [workflow_dispatch]
jobs:
build:
uses: ./.github/workflows/build.yml
deploy:
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Checkout Git repository
uses: actions/checkout@v3

- name: Download macOS ARM build
uses: actions/download-artifact@v3
with:
name: build-macos-aarch64
path: ./artifacts

- name: Download macOS AMD64 build
uses: actions/download-artifact@v3
with:
name: build-macos-amd64
path: ./artifacts

- name: Download Windows build
uses: actions/download-artifact@v3
with:
name: build-windows-amd64
# Windows is not in a tarball, so we extract to a separate directory.
path: ./artifacts/windows

- name: Download Linux AMD64 build
uses: actions/download-artifact@v3
with:
name: build-linux-amd64
path: ./artifacts

- name: Run Conveyor
uses: hydraulic-software/conveyor/actions/build@v11.4
env:
OAUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
command: make copied-site
extra_flags: -f ci.conveyor.conf
signing_key: ${{ secrets.SIGNING_KEY }}
agree_to_license: 1
28 changes: 0 additions & 28 deletions .github/workflows/production.yml

This file was deleted.

52 changes: 0 additions & 52 deletions .github/workflows/release.yml

This file was deleted.

98 changes: 9 additions & 89 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,98 +1,18 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Build files
node_modules
dist
out
output

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock
# OS and Environment files
.DS_Store

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# Webpack
.webpack/

# Electron-Forge
out/

# Yarn Integrity file
.yarn-integrity

# Yarn 2/3 configuration files
# Yarn without Zero-Installs
>>>>>>> Stashed changes
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
!.yarn/versions
14 changes: 14 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Ignore artifacts (node_modules is include by default)
out

# Ignore config files
**/.yarn
**/.vscode
**/.github
conveyor.conf
tsconfig.json
tsconfig.*.json

# Ignore all Markdown files
**/*.md
LICENSE
9 changes: 0 additions & 9 deletions .prettierrc

This file was deleted.

8 changes: 8 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
singleQuote: true
semi: true
printWidth: 100
tabWidth: 2
trailingComma: none
arrowParens: avoid
endOfLine: lf
plugins: []
10 changes: 1 addition & 9 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,2 @@
{
"editor.formatOnSave": true,
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.preferences.quoteStyle": "single",
"typescript.preferences.importModuleSpecifier": "relative",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
}
Loading