0.4.3 • Published 5 years ago

rf-install-update v0.4.3

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

rf-install-update

Installation and update tools for rapidfacture software

main functions

  • install
  • update

Node has to be installed so the package can be fetched with npm. The functions are started like below, but usually from a shell script within your project (folder scripts in rf-install-update)

// update
require('rf-install-update').update.start('yourProjectPath')


// install
require('rf-install-update').install.start('yourProjectPath')

utils

Those functions can be used:

  • chooseEnvirnonment
  • checkExternalDependencies
  • ifPullIsNeededThen
  • pull
  • npmInstall
  • build
  • updateEnvironmentConfig
  • updateMailConfig
  • printInstallationHeader
  • pm2Startup
  • pm2ResartAll

Updates can be done according to specified environmental file

var config = {

   // usual network config
   "db": {
      "global": "mongodb://localhost:27017/global",
      "user": "mongodb://localhost:27017/user"
   },
   "port": 3004,


   // these options are used to update the project
   "update": {
      // environment options
      'branch': 'master',
      'compress': false, // minifie html, js, css
      'environment': 'environment',
      'mailTemplates': 'mail',

      // update options
      'forcePull': false, // overwrite local changes
      'refreshConfig': false, // overwrite environment config with fresh one from git
      'refreshMailTemplates': false, //  overwrite mail templates with fresh one from git
      'refreshDatabase': false //  NOTE: critical - for local dev or on system install; overwrite database samples
   }
};

building custom install scripts for external programs

const checkAndInstall = require('rf-install-update').checkAndInstall;

// install via shell command
checkAndInstall('inkscape', 'sudo apt-get install inkscape');

// install via function
checkAndInstall('programme XY', function(shell, cmd){ console.log('now installing ' + cmd);});

Development

Currently no tests implemented. You might edit the package included in a standard app, check functionality, then update the package.

ToDo

  • maybe do a npm rebuild node-sass?

Legal Issues

  • Licenese: MIT
  • Author: Felix Furtmayr
0.4.3

5 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.6

5 years ago

0.3.5

5 years ago

0.3.4

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago