From 6ef19afe9cc06d05e844433ee868036ad0df5662 Mon Sep 17 00:00:00 2001 From: "Yuichiro Tachibana (Tsuchiya)" Date: Thu, 29 Jun 2023 12:02:12 +0900 Subject: [PATCH] Remove packages/desktop-cli (#576) * Remove packages/desktop-cli * Remove build- and publish-desktop-cli --- .github/workflows/main.yml | 69 ----------------- packages/desktop-cli/.gitignore | 120 ------------------------------ packages/desktop-cli/README.md | 5 -- packages/desktop-cli/package.json | 5 -- 4 files changed, 199 deletions(-) delete mode 100644 packages/desktop-cli/.gitignore delete mode 100644 packages/desktop-cli/README.md delete mode 100644 packages/desktop-cli/package.json diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5aba76557..ded8ce45e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -840,75 +840,6 @@ jobs: with: files: packages/desktop/stlite-desktop-v*.tgz - build-desktop-cli: - if: ${{ ! failure() }} # This job should run even if the depending jobs are skipped, but not when those jobs failed: https://qiita.com/abetomo/items/d9ede7dbeeb24f723fc5#%E8%A8%AD%E5%AE%9A%E4%BE%8B4 - needs: [test-desktop] - - env: - python-version: "3.10" - # To avoid an error like "FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory". - # See https://github.com/actions/virtual-environments/issues/70#issuecomment-653886422 - # The Linux VM has 7GB RAM (https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources), - # so we set the max memory size as 6.5 GiB like https://nodejs.org/api/cli.html#--max-old-space-sizesize-in-megabytes - NODE_OPTIONS: "--max-old-space-size=6656" - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - name: Package - working-directory: packages/desktop-cli - run: yarn pack - - - name: Upload the built tar ball as an artifact - uses: actions/upload-artifact@v3 - if: ${{ ! startsWith(github.ref, 'refs/tags/v') }} - with: - path: packages/desktop-cli/stlite-desktop-cli-v*.tgz - name: stlite-desktop-cli-${{ github.sha }}.tgz - - - name: Upload the built tar ball as an artifact (when pushed with a version tag) - uses: actions/upload-artifact@v3 - if: startsWith(github.ref, 'refs/tags/v') - with: - path: packages/desktop-cli/stlite-desktop-cli-v*.tgz - name: stlite-desktop-cli-${{ github.ref_name }}.tgz - - publish-desktop-cli: - if: ${{ !failure() && startsWith(github.ref, 'refs/tags/v') }} # `!failure()` is necessary to avoid skipping this job after successful build: https://github.com/actions/runner/issues/491 - needs: [build-desktop-cli, publish-desktop] # Depends on publish-desktop because `@stlite/desktop-cli` depends on `@stlite/desktop`. - - permissions: - contents: write # Necessary for creating releases: https://github.com/softprops/action-gh-release#permissions - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version-file: .nvmrc - cache: 'yarn' - registry-url: 'https://registry.npmjs.org' - scope: '@stlite' - - - uses: actions/download-artifact@v3 - id: download-desktop-cli - with: - name: stlite-desktop-cli-${{ github.ref_name }}.tgz - path: packages/desktop-cli - - - run: yarn publish stlite-desktop-cli-v*.tgz --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - working-directory: packages/desktop-cli - - - name: Create a new release - uses: softprops/action-gh-release@v1 - with: - files: packages/desktop-cli/stlite-desktop-cli-v*.tgz - test-build-vscode-extension: strategy: fail-fast: false diff --git a/packages/desktop-cli/.gitignore b/packages/desktop-cli/.gitignore deleted file mode 100644 index 0ea91aa69..000000000 --- a/packages/desktop-cli/.gitignore +++ /dev/null @@ -1,120 +0,0 @@ -### https://raw.github.com/github/gitignore/218a941be92679ce67d0484547e3e142b2f5f6f0/Node.gitignore - -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -lerna-debug.log* - -# 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 - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage -*.lcov - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -jspm_packages/ - -# Snowpack dependency directory (https://snowpack.dev/) -web_modules/ - -# TypeScript cache -*.tsbuildinfo - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Microbundle cache -.rpt2_cache/ -.rts2_cache_cjs/ -.rts2_cache_es/ -.rts2_cache_umd/ - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variables file -.env -.env.test - -# parcel-bundler cache (https://parceljs.org/) -.cache -.parcel-cache - -# Next.js build output -.next -out - -# Nuxt.js build / generate output -.nuxt -dist - -# Gatsby files -.cache/ -# Comment in the public line in if your project uses Gatsby and not Next.js -# https://nextjs.org/blog/next-9-1#public-directory-support -# public - -# vuepress build output -.vuepress/dist - -# Serverless directories -.serverless/ - -# FuseBox cache -.fusebox/ - -# DynamoDB Local files -.dynamodb/ - -# TernJS port file -.tern-port - -# Stores VSCode versions used for testing VSCode extensions -.vscode-test - -# yarn v2 -.yarn/cache -.yarn/unplugged -.yarn/build-state.yml -.yarn/install-state.gz -.pnp.* - - diff --git a/packages/desktop-cli/README.md b/packages/desktop-cli/README.md deleted file mode 100644 index 549d9cb37..000000000 --- a/packages/desktop-cli/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# `@stlite/desktop-cli` - -## DEPRECATED - -Use [`@stlite/desktop`](https://www.npmjs.com/package/@stlite/desktop) instead. diff --git a/packages/desktop-cli/package.json b/packages/desktop-cli/package.json deleted file mode 100644 index f63779cf9..000000000 --- a/packages/desktop-cli/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "@stlite/desktop-cli", - "version": "0.34.0", - "license": "Apache-2.0" -}