Changes between Version 1 and Version 5 of Ticket #5559


Ignore:
Timestamp:
08/23/2017 01:35:07 PM (3 years ago)
Author:
kzar
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5559

    • Property Ready set
  • Ticket #5559 – Description

    v1 v5  
    55 
    66=== What to change === 
    7 Change the `ensure_dependencies.py` script so that it calls `npm install --only=production` after a dependency is cloned or updated if the dependency contains the `packages.json` file in its root. The command should be called from the dependency's path. 
     7- Change the `ensure_dependencies.py` script so that it calls `npm install --only=production` after a dependency is cloned or updated if the dependency contains the `packages.json` file in its root. The command should be called from the dependency's path. 
     8- If the `SKIP_DEPENDENCY_UPDATES` environment variable is set `npm install` shouldn't be called. 
     9- If the `npm` command doesn't exist a warning should be displayed 'Failed to install Node.js dependencies for DEPENDENCY_NAME, please ensure Node.js is installed.' 
     10 
     11- Add a packages.json file with the following contents: 
     12 
     13``` 
     14{ 
     15  "name": "buildtools", 
     16  "repository": "https://hg.adblockplus.org/buildtools", 
     17  "license": "GPL-3.0", 
     18  "dependencies": { 
     19    "jsdoc": "3.5.4" 
     20  } 
     21} 
     22```