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

alfresco-adf-cli

v0.1.4

Published

Command line tools for Alfresco ADF

Downloads

1

Readme

alfresco-adf-cli

Command line tools for Alfresco ADF

Installing

npm install -g alfresco-adf-cli

Alternatively you can install as part of your project:

npm install --save-dev alfresco-adf-cli

Using with Travis CI

.travis.yml

before_install:
- npm install -g alfresco-adf-cli

Commands

  • help
  • init
  • tslint
  • clean
  • remove
  • serve
  • test
  • check
    • license
  • version

help

Shows general help information or help details for a given command.

--help [command]

Examples:

adf --help
adf --help serve
adf help test

init

Setup default project.

init [dir]

Examples:

adf init
adf init .
adf init project/folder

Puts the following files into target directory:

  • .editorconfig
  • .eslintrc.json
  • .gitignore
  • .npmignore
  • .travis.yml
  • .tsconfig.json
  • .tslint.json

For more information see internal help: adf help init.

tslint

Runs TSlint for a given project directory using embedded rules.

tslint [dir]

Examples:

adf tslint
adf tslint .
adf tslint project/folder

Your project does not need to have tslint.json installed however tsconfig.json is required.

For more information see internal help: adf help tslint.

clean

Cleans the project directory.

clean [dir..]

Examples:

adf clean
adf clean .
adf clean project1 project2 project3
adf clean project*

Automatically removes the following subdirectories:

  • node_modules/
  • dist/
  • typings/
  • coverage/

For more information see internal help: adf help clean.

remove

Removes a file or directory. The directory can have contents.

remove [path..]

Examples:

adf remove test1
adf remove test1 test2 test3
adf remove test*

For more information see internal help: adf help remove.

serve

serve [path]

Examples:

adf serve .
adf serve --open

For more information see internal help: adf help serve.

test

Runs unit tests for a given project folder(s).
Allows generating and opening coverage reports.

adf test [dir] [coverage] [open]

Exasmples:

adf test
adf test project1
adf test --coverage --open

Uses Karma test runner with Jasmine for tests by default.
The following libraries are bundled so you don't need installing them for your project:

  • jasmine-core
  • karma
  • karma-chrome-launcher
  • karma-coverage
  • karma-jasmine
  • karma-jasmine-ajax
  • karma-jasmine-html-reporter
  • karma-mocha-reporter
  • remap-istanbul

For more information see internal help: adf help test.

check

For more details on commands refer to inline help:

adf help check

Supported sub-commands:

  • license

license

Runs license header check for a given folder(s).

adf check license [dir] [pattern] [ignore]

For more details refer to inline help:

adf help check license

Examples:

adf check license
adf check license project1/
adf check license --pattern '**/*.ts'
adf check license --pattern '**/*.js' '**/!(index).ts' --ignore '**/*.d.ts'

This command does not load full content of a file during check and uses streaming to minimise memory footprint.

version

Shows program version number.

Examples:

adf --version