Giter Site home page Giter Site logo

alfresco-hackathon-2018's Introduction

alfresco-hackathon-2018

Automated plugin and library installations for ADF/ACA

Description

For the time being ADF/ACA extension libraries require several steps to get integrated into an application: installing from the NPM, then configuring JSON definition, optionally adding extra dependencies and asset files. The idea is to define some sort of convention for an ADF plugins and its artifacts, and have a command line tool that is able to install the library, configure all assets, and even change the "app.module.ts" file to register extra Angular modules.

Prep work

Look through the following libs:

It expects the extension to contain a special entry in the package.json similar to following:

{
    "alfresco": {
        "extension": "assets/my-extension.json",
        "module": "MyExtensionModule",
        "namespace": "my-extension"
    }
}

Targets

  • Command-line tool with node.js
  • Install packages from NPM
  • Install packages from packed tarballs
  • Copy extension definition file (.json) to the src/app/assets/plugins
  • Register extension within the app.extensions.json
  • Register extension module in the src/app/extensions.module.ts

Running

To link the project locally and use as a global tool:

npm link

That will register the adf-ext command.

Using with Angular projects

Installing

Install dependency:

adf-ext i <npm-package>
adf-ext i <targball> <package-name>

Example:

adf-ext i my-lib

Installing local tarball packages

adf-ext i <path-to-tarball>/my-extension-0.0.1.tgz my-extension

Adding existing

Add already installed (manually) dependency from the node_modules.

adf-ext add <package-name>

Example

adf-ext add my-lib

Note the install command does that, use add only if you installed the lib manually.

alfresco-hackathon-2018's People

Contributors

denysvuika avatar

Stargazers

 avatar

Watchers

 avatar  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.