Skip to main content

Utilities for compile JavaScript with Deno

Project description

Deprecated

This would make more sense if it was written using Deno, or a compiled language like Go or Rust.

Email me to eliaz.bobadilladev@gmail.com if you create a similar tool, so I will link it here.

If no one does, I will try to do it in my free time later, sponsor me 😩

Denoc

Compile Deno executables and compress them for all platforms easily 🚀

Install

You can install denoc from PyPI like any other package:

pip install denoc

From Github 👇

pip install git+https:/github.com/UltiRequiem/denoc

Usage

Basic usage

denoc compileMe.ts

This will make a directory (deno_builds) with executables for all the supported platforms.

Optional flags:

denoc --outputDir deno_dir_output --compress True file.ts
  • outputDir: The directory where the binaries will be, by default the directory is deno_build

  • compress: Compress the binaries directory

Build and Publish on GitHub Actions

name: Compile

on:
  push:
    tags:
      - "*"

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - uses: denoland/setup-deno@v1
        with:
          deno-version: v1.x

      - name: Install denoc
        run: pip install denoc

      - name: Build for all platforms
        run: denoc cli.ts

      - name: Release
        uses: softprops/action-gh-release@v1
        with:
          files: |
            deno_builds/x86_64-unknown-linux-gnu
            deno_builds/aarch64-apple-darwin 
            deno_builds/x86_64-apple-darwin
            deno_builds/x86_64-pc-windows-msvc.exe
          token: ${{ secrets.GITHUB_TOKEN }}

Example Repository 👉 ultirequiem/deno-clear

Authors

Eliaz Bobadilla (a.k.a UltiRequiem) - Creator and Maintainer 💪

See also the full list of contributors who participated in this project.

Versioning

We use SemVer for versioning. For the versions available, see the tags.

Licence

Licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

denoc-1.2.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

denoc-1.2.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file denoc-1.2.0.tar.gz.

File metadata

  • Download URL: denoc-1.2.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.10 Linux/4.4.0-19041-Microsoft

File hashes

Hashes for denoc-1.2.0.tar.gz
Algorithm Hash digest
SHA256 6d2c0411508138521faf195c710eb49b375436d425fd68c983287ce85b32654f
MD5 d38fb3252eff0710c870499f1170d039
BLAKE2b-256 27da2028541a5f314a52b619ea19dd80c9257fa1fe0de895b7411cafa50ada98

See more details on using hashes here.

File details

Details for the file denoc-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: denoc-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.10 Linux/4.4.0-19041-Microsoft

File hashes

Hashes for denoc-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc37fa7ad72d25ddaac030fa1525152fd7ca643f922489d2a8f5c448f5716544
MD5 0ce30d309a310ebc2248fc1e01b346cb
BLAKE2b-256 a2919adf0d501fbcd84330292c21ab98bfbc4fe0a898b36daf80af046283b8b2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page