Git Product home page Git Product logo

dt-package-tester's Introduction

dt-package-tester

Install @types packages and run their tests from Definitely Typed

Packages are installed in mirror/; the code expects Definitely Typed to reside at /home/nathansa/DefinitelyTyped.

TODO: This generates result.json; I still need to save that somewhere else, modify the script to install @testtypepublishing packages from Github and run it that, then diff the two jsons.

cleanup-tsconfig

Remove all d.ts files from Definitely Typed tsconfigs that are not index.d.ts. Also prints the tsconfigs that violate this property. You should save this output in a file named /home/nathansa/types-publisher/doubt2.txt for running cleanup-tsconfig2.

Seriously.

The code expects Definitely Typed to reside at ~/DefinitelyTyped.

cleanup-tsconfig2

This script overgenerates OTHER_FILES.txt, but I can't remember by how much. I would not use it again.

install-types-registry

Take the types-registry json, whatever it's named, and iterate through each package and each tag in the package. Download the tgz of each unique version of the package from npm and unzip it into npm-install/package-1.2/ Convert the downloaded output of npm to github-publishable code and copy to github-publish/package-1.2/.

The conversion will need to

  1. add github package
  2. rename package scope to @testtypepublishing
  3. rename dependency package scope to @testtypepublishing It might also need to clean out some elements of package.json, but I haven't seen anything yet.

Downloading the tgz should also work with github (to github-install/package/1.2).

publish-to-github

Iterate through each unique version of packages from types-registry. Publish each package to @testtypepublishing on github. (This is just npm publish on each directory in github-publisher.)

Now that this works well, it's part of install-types-registry.

compare-npm-to-github

Just do this with ls github-install/* >github-install.txt (and for npm), then diffing. Then, do a directory diff of npm-install/ and github-install/.

dt-package-tester's People

Contributors

sandersn avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dt-package-tester's Issues

Additional recommended tools

I recommend the following tools, which provide a strict environment to run tests in:

  • package-preview by @zkochan
    • produces a production version of a package to run tests on, that can only access what’s declared in dependencies.
  • pnpm by @zkochan
    • A strict package manager that uses hardlinks, symlinks and isolated directory trees to ensure that packages can only require(…) what they’ve declared in their package.json.

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.