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.1.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

denoc-1.1.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: denoc-1.1.2.tar.gz
  • Upload date:
  • Size: 4.5 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.1.2.tar.gz
Algorithm Hash digest
SHA256 637fc92e89319e45406c34f8c2df8d45cf54db697121b3dd09b10b32284c0cf6
MD5 cbb042551575d74aa75a803f37237aef
BLAKE2b-256 862cc16a072f2daa6c5a3fd2cf29ab9e0e9add052f6cd2b1b2cf6964d5b3a5ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: denoc-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.0 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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 33bd19e2f0f64df2efcb3ebc1866693c2cb03a4a7eb1f9c35daecd89e1c256ef
MD5 63115cc8bb336381d3a8e9396200b136
BLAKE2b-256 a5d5d90fdd6781c25b12a0b8b97b57307813657afcdbf38dd7b58566b948f28d

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