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

garlictech-workflows-client

v1.0.2

Published

Client-side workflow management for Garlic Tech projects.

Downloads

7

Readme

Workflow management for Garlic Tech projects

NPM Package Version Build Status Dependency Status

The information below applies all the Garlic Tech projects.

Before everything, read the the pages common to all the GarlicTech projects.

Environment

Make sure that you use npm version >= 3.0.0 and node version 5.0.0.

Installation

After cloning, do the usual

npm install

The instal process will create a .env file. Edit it, to add development setup. Probably the first thing is: uncomment the NODE_ENV=development line. Mind, that the e2e test bundle is built only if this environment variable is set.

Commands during development

  • Set up development environment

npm run setup-dev

The command pulls an example .env file, sets up protractor, etc. You need to do it once, after npm install.

  • Start a development web server, with livereload:

npm start

  • Build the project (in the dist directory):

npm run build

  • Run the unit tests:

npm run unittest

In development mode it will watch sources anr re-run tests on changes. In production mode, it runs it once.

  • Important *: Currently, karma requires that the dist folder exists, with the compiled project. So, before running unittests, make sure that you issued npm run build at least once.

  • Set up selenium (do in once):

npm run protractor-setup

Postinstall tries to execute this step. Use this command explicitly it it failed for some reason.

  • Start selenium server for protractor tests:

npm run protractor-start

  • Execute e2e tests (selenium must be running):

npm run e2e-tests

Before running it, you have to start selenium (npm run protractor-start) and a web server serving the project (npm start). Also, ensure, that the webpack bundle containing the test app is built.

  • Watch source changes

npm run start-watch

This command watches source files and rebuilds the project if it changes. It does not start development server. The command is useful when you develop ionic applications with livereload: project is built in the dist folder, and the emulator can reload the app.

  • Profile webpack build

npm run webpack-profile

It produces a webpack-stats.json file. Upload it to the Webpack analyse tool and

Gulp commands

They are really done during development. Available gulp commands:

gulp help

You can find some more info in https://github.com/garlictech/garlictech-workflows-common.

Content of package.json

  • main filed should be present: it should be the index file that is the main entry point of the package. Karma, etc. uses it!

  • A special construct may be present, here is an example:

"garlic": {
  "type": "module",
  "unittest": "./src/test/unit/test.coffee"
}
  • type: Must be "module" if the package is an (Angular) module. In this case, the index.html in the e2e test will be used, where you can implement your e2e tests. Otherwise, the package is an application package, it has src/index.html, so npm start uses that.

  • unittest: The entry point of the unit tests. By default, it is ./src/test/unit/test.coffee. Change it if you have vanilla Javascript, etc. project.

  • config field

  • port: webpack dev server uses this port (so, it is available as npm_package_config_port environment variable)