Skip to content

Contribution Questionnaire (CQ)

Simon Marchi edited this page Jan 31, 2019 · 1 revision

When we add or update a production dependency, we need to file a CQ. We follow the same process as the main Theia repo: https://github.com/theia-ide/theia/wiki/Registering-CQs#case-new-or-updated-npm-production-dependency

Previous open CQs:

Here's the script adjusted from the main repo:

git clone git@github.com:eclipse/theia-cpp-extension.git theia-cpp-extension-cq && cd theia-cpp-extension-cq
yarn install --production

# find node_modules folders other than the main one in the root
npmlist=`find . -name node_modules | grep -v "^./node_modules"`

# Find the extensions where a Debug Adapter is Downloaded/used (defined in an "adapters" section in package.json)
grep "\"adapters" `find packages -name package.json`
# if there are changes, update list below

# list of the path where the Adapters are saved:
# note: this assumes each DA is in "unzipped" form. It it's not the case, we need to unzip it/them manually so it/they will be analysed correctly when submitted as part of the CQ.
DAlist="./packages/cortex-debug/download ./packages/cpp-debug/download"

# result: root npm_modules folder as well as any other we find elsewhere in the repo. Also we include the 
# Debug Adapters that are used as plugins:
tar czvf theia-npm-prod-dependencies.tar.gz ./node_modules $npmlist $DAlist
Clone this wiki locally