npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ghedsh-grade-node

v1.0.6

Published

To be used with ghedsh. Helps teachers grading Node.js assignments.

Downloads

11

Readme

ghedsh-grade-node

npm

To be used with ghedsh. Helps grading Node assignments.

Prerequisites

Node.js version >=8.0.0 (async/await support).

Install

npm install ghedsh-grade-node --save

Usage

grade-node [--teacher/-t] </dir> <--output/-o> <output_file.extension>

Options

--teacher or -t is the absolute path directory containing teacher's private tests.

--output or -o tests output file name.

--version or -v shows current package version.

--help or -h prints usage help.

Performance

If --teacher or -t option provided, ghedsh-grade-node will copy teacher's private tests into student's /test dir. (Else, jump to install dependencies process).

Runs npm intall.

Runs npm install --only=dev.

Runs npm test. (Assumes that npm test command from package.json will run all tests under /test directory).

Captures stdout and stderr into files.

Context (WIP)

Se trata de escribir un paquete npm que contiene un script grade-node que complementa la funcionalidad de evaluación de ghedsh.

Esta es la forma de uso desde ghedsh:

crguezl> ULL-ESIT-PL-1718> new_eval ale-eval /ale/i
...
crguezl> ULL-ESIT-PL-1718> cd repo ale-eval
...
crguezl> ULL-ESIT-PL-1718> foreach grade-node --teacher teacher-tests-dir  --output grade.test.md
...

grade-node recibe como argumento un directorio teacher-tests-dir/ que contiene las pruebas privadas (en mocha u otro framework) que ha escrito el profesor para la práctica Para cada repo grade-node copia en el subdirectorio test/ del alumno los contenidos de teacher-tests-dir/ Recuerda que dentro de un git submodule foreach ... The command has access to the variables $name, $path, $sha1 and $toplevel:

  • $name is the name of the relevant submodule section in .gitmodules
  • $path is the name of the submodule directory relative to the superproject
  • $sha1 is the commit as recorded in the superproject
  • $toplevel is the absolute path to the top-level of the superproject.

grade-node hace un npm install y si tiene éxito un npm test redirigiendo la salida a un fichero markdown grade-test.md que queda en el repo del alumno. Ahora el profe si quiere puede hacer algo como:

crguezl> ULL-ESIT-PL-1718> foreach gh-issue --title 'Resultado de las pruebas' --input grade-test.md

... que ejecutaría otro script gh-issue que enviaría los issues.