stable
Clone or download
Part of request #13702 Introduce Typescript in Vue apps This contribution's scope will limit to introducing Typescript and making it behave with our build tools. Another patch will be needed to actually make use of typings in Typescript and to enforce it. How to test: - "npm run build" succeeds - No functional change in the Release widget app - "npm run test" succeeds, all tests should pass - "make generate-po" should succesfully extract translated strings from release-widget Vue components - "npm run eslint ." should not take 20min and should not report any error. - eslint should report errors in Typescript files - prettier should report misformatted Typescript files Note to reviewer: - "npm run coverage" is known to produce misaligned coverage in this patch. A further contribution will fix that, but since we do not provide this coverage to CI for now, I chose to live with it temporarily. Change-Id: I344f13e05276dc43e1a926078b0313e5fbad1e2f
Modified Files
Name | ||||
---|---|---|---|---|
M | .eslintrc.js | +5 | −5 | Go to diff View file |
M | package-lock.json | +209 | −29 | Go to diff View file |
M | package.json | +5 | −2 | Go to diff View file |
M | plugins/release_widget/scripts/karma.conf.js | +2 | −2 | Go to diff View file |
R | plugins/release_widget/scripts/releasewidget/index.js | Go to diff View file | ||
R | plugins/release_widget/scripts/releasewidget/src/api/rest-querier.spec.js | Go to diff View file | ||
R | plugins/release_widget/scripts/releasewidget/src/api/rest-querier.js | Go to diff View file | ||
R | plugins/release_widget/scripts/releasewidget/src/app.spec.js | Go to diff View file | ||
R | plugins/release_widget/scripts/releasewidget/src/components/App.spec.js | Go to diff View file | ||
M | plugins/release_widget/scripts/releasewidget/src/components/App.vue | +1 | −1 | Go to diff View file |
R | plugins/release_widget/scripts/releasewidget/src/components/RoadmapSection/RoadmapSection.spec.js | Go to diff View file | ||
M | plugins/release_widget/scripts/releasewidget/src/components/RoadmapSection/RoadmapSection.vue | +1 | −1 | Go to diff View file |
R | plugins/release_widget/scripts/releasewidget/src/components/WhatsHotSection/ReleaseBadges.spec.js | Go to diff View file | ||
M | plugins/release_widget/scripts/releasewidget/src/components/WhatsHotSection/ReleaseBadges.vue | +1 | −1 | Go to diff View file |
R | plugins/release_widget/scripts/releasewidget/src/components/WhatsHotSection/ReleaseDescription.spec.js | Go to diff View file | ||
M | plugins/release_widget/scripts/releasewidget/src/components/WhatsHotSection/ReleaseDescription.vue | +1 | −1 | Go to diff View file |
R | plugins/release_widget/scripts/releasewidget/src/components/WhatsHotSection/ReleaseDisplayer.spec.js | Go to diff View file | ||
M | plugins/release_widget/scripts/releasewidget/src/components/WhatsHotSection/ReleaseDisplayer.vue | +1 | −1 | Go to diff View file |
R | plugins/release_widget/scripts/releasewidget/src/components/WhatsHotSection/ReleaseHeader/ReleaseHeader.spec.js | Go to diff View file | ||
M | plugins/release_widget/scripts/releasewidget/src/components/WhatsHotSection/ReleaseHeader/ReleaseHeader.vue | +1 | −1 | Go to diff View file |
R | plugins/release_widget/scripts/releasewidget/src/components/WhatsHotSection/ReleaseHeader/ReleaseHeaderRemainingDays.spec.js | Go to diff View file | ||
R | plugins/release_widget/scripts/releasewidget/src/components/WhatsHotSection/ReleaseHeader/ReleaseHeaderRemainingPoints.spec.js | Go to diff View file | ||
R | plugins/release_widget/scripts/releasewidget/src/components/WhatsHotSection/WhatsHotSection.spec.js | Go to diff View file | ||
M | plugins/release_widget/scripts/releasewidget/src/components/WhatsHotSection/WhatsHotSection.vue | +1 | −1 | Go to diff View file |
R | plugins/release_widget/scripts/releasewidget/src/helpers/date-formatters.spec.js | Go to diff View file | ||
R | plugins/release_widget/scripts/releasewidget/src/helpers/date-formatters.js | Go to diff View file | ||
R | plugins/release_widget/scripts/releasewidget/src/helpers/user-locale-helper.js | Go to diff View file | ||
R | plugins/release_widget/scripts/releasewidget/src/store/actions.spec.js | Go to diff View file | ||
R | plugins/release_widget/scripts/releasewidget/src/store/actions.js | Go to diff View file | ||
R | plugins/release_widget/scripts/releasewidget/src/store/getters.js | Go to diff View file | ||
R | plugins/release_widget/scripts/releasewidget/src/store/index.js | Go to diff View file | ||
R | plugins/release_widget/scripts/releasewidget/src/store/mutations.js | Go to diff View file | ||
R | plugins/release_widget/scripts/releasewidget/src/store/state.js | Go to diff View file | ||
A | plugins/release_widget/scripts/releasewidget/vue.shims.d.ts | +23 | −0 | Go to diff View file |
M | plugins/release_widget/scripts/webpack.config.js | +5 | −2 | Go to diff View file |
M | tests/actions.groovy | +1 | −1 | Go to diff View file |
M | tools/utils/githooks/pre-commit-04-eslint | +1 | −1 | Go to diff View file |
M | tools/utils/githooks/pre-commit-05-prettier | +1 | −1 | Go to diff View file |
M | tools/utils/scripts/webpack-configurator.js | +1 | −0 | Go to diff View file |
M | tools/utils/scripts/webpack-rule-configs.js | +24 | −1 | Go to diff View file |
A | tsconfig.json | +63 | −0 | Go to diff View file |