Code Monkey home page Code Monkey logo

habr-cvsn-app's Introduction

'composer' vs 'npm': multi-module project deployment

Demo for Habr: https://habr.com/ru/post/458018/ (in russian)

Overview

This project has one dependent module 'habr-cvsn-mod-func' that has own dependency 'habr-cvsn-mod-base'. Project and modules have php & js scripts and can be deployed using composer or npm.

Deployment scripts

  • rebuild_composer.sh: deploy PHP project using composer;
  • rebuild_npm_01_regular.sh: deploy nodejs project w/o VCS support for dependencies;
  • rebuild_npm_02_link_external.sh: deploy nodejs project with VCS support for dependencies (sources are placed outside the project structure);
  • rebuild_npm_03_link_internal.sh: deploy nodejs project with VCS support for dependencies (sources are placed inside the project structure);

PHP

$ ./rebuild_composer.sh
...
$ php ./index.php
This is application.
This is func module.
This is base module.

nodejs

$  ./rebuild_npm_*.sh
...
$ nodejs index.js 
This is application.
This is func module.
This is base module.

habr-cvsn-app's People

Contributors

flancer64 avatar

Watchers

 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.