Giter VIP home page Giter VIP logo

slow-types-compiler's Introduction

slow-types-compiler

poc compiler for jsr slow types

this package is intended to be a placeholder and a proof of concept while deno team comes up with a blazing fastπŸš€πŸ¦€β„’ solution for that

disclaimer: this pile of garbage is not actively maintained, meaning that prs will probably be merged but no issues will be addressed by me because i just don't care enough. it will probably not work out of the box for you, too. feel free to fork and adapt it to your needs

usage

via cli:

pnpx @teidesu/slow-types-compiler fix --entry /path/to/jsr.json

via js:

import * as stc from '@teidesu/slow-types-compiler'

const project = stc.createProject() // ts-morph project
stc.processPackage(project, '/path/to/deno.json') // or jsr.json
project.saveSync()

populate

this package provides a populate command that can be used to populate a local jsr instance with packages from jsr.io

via cli

$ pnpx @teidesu/slow-types-compiler populate
Usage: slow-types-compiler populate <options> <pkg1> [pkg2] ...
  --downstream: URL of the downstream registry (required)
  --unstable-create-via-api: create packages via API
  --token: API token
  --publish-args: Additional arguments to pass to `deno publish`
  --quiet, -q: Suppress output
  <pkg1> [pkg2] ...: packages to populate (with version, e.g. `@std/[email protected]`)

via js

import { populateFromUpstream } from '@teidesu/slow-types-compiler'

populateFromUpstream({ ... })

limitations

  • jsr/npm libraries resolution is not fully supported (e.g. @types/*)
  • merged namespaces are not supported
  • paths in tsconfig.json is not supported

slow-types-compiler's People

Contributors

teidesu avatar

Stargazers

Damir Modyarov avatar Nikolay Maksimovski avatar Kravets avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.