mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
2aadc18105
We have a Jenkins job to take screenshots of VisualEditor and upload the result to commons.wikimedia.org. That roughly does: npm install node_modules/.bin/grunt screenshots-all bundle install bundle exec upload However on CI, the Docker container only accepts 'npm run-script XXX' or 'bundle exec rake YYY'. Add a npm script 'screenshots-all' invoking 'grunt screenshots-all'. Add a rake task 'commons_upload'. I have added a basic check to make sure environment variables are properly set before invoking the upload script. Thus on CI the usage will become: npm install npm run-script screenshots-all bundle install bundle exec rake commons_upload Which match the CI convention. Bug: T189122 Change-Id: I221ed8d6178dd036eac287f0f811834a6d4ffd22
32 lines
804 B
JSON
32 lines
804 B
JSON
{
|
|
"name": "visualeditor",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"description": "Build tools for the VisualEditor-MediaWiki extension.",
|
|
"scripts": {
|
|
"test": "grunt test",
|
|
"doc": "jsduck",
|
|
"postdoc": "grunt copy:jsduck",
|
|
"screenshots-all": "grunt screenshots-all"
|
|
},
|
|
"devDependencies": {
|
|
"babel-polyfill": "6.9.1",
|
|
"eslint-config-wikimedia": "0.5.0",
|
|
"grunt": "1.0.1",
|
|
"grunt-banana-checker": "0.6.0",
|
|
"grunt-contrib-copy": "1.0.0",
|
|
"grunt-contrib-watch": "1.0.0",
|
|
"grunt-eslint": "20.1.0",
|
|
"grunt-image": "4.1.0",
|
|
"grunt-jsonlint": "1.1.0",
|
|
"grunt-mocha-test": "0.12.7",
|
|
"grunt-stylelint": "0.9.0",
|
|
"grunt-tyops": "0.1.0",
|
|
"jimp": "0.2.24",
|
|
"mocha": "2.5.3",
|
|
"selenium-webdriver": "2.53.2",
|
|
"stylelint": "8.2.0",
|
|
"stylelint-config-wikimedia": "0.4.2"
|
|
}
|
|
}
|