-
-
Notifications
You must be signed in to change notification settings - Fork 832
Implementation of new potential skinning mechanism #3723
Changes from 9 commits
25f5cca
c02beb9
97af040
a5dadda
ff584d1
59ddefd
f5264db
225695a
20a6153
0a9985f
9865ce8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
{ | ||
"sourceMaps": "inline", | ||
"presets": [ | ||
"react", | ||
"es2015", | ||
"es2016" | ||
["@babel/preset-env", { | ||
"targets": { | ||
"browsers": [ | ||
"last 2 versions" | ||
], | ||
"node": 12 | ||
}, | ||
"modules": "commonjs" | ||
}], | ||
"@babel/preset-typescript", | ||
"@babel/preset-flow", | ||
"@babel/preset-react" | ||
], | ||
"plugins": [ | ||
[ | ||
"transform-builtin-extend", | ||
{ | ||
"globals": ["Error"] | ||
} | ||
], | ||
"transform-class-properties", | ||
"transform-object-rest-spread", | ||
"transform-runtime", | ||
"add-module-exports", | ||
"syntax-dynamic-import" | ||
["@babel/plugin-proposal-decorators", { "legacy": true }], | ||
"@babel/plugin-proposal-numeric-separator", | ||
"@babel/plugin-proposal-class-properties", | ||
"@babel/plugin-proposal-object-rest-spread", | ||
"@babel/plugin-transform-flow-comments", | ||
"@babel/plugin-syntax-dynamic-import", | ||
"@babel/plugin-transform-runtime" | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,111 @@ | ||
steps: | ||
- label: ":eslint: Lint" | ||
- label: ":eslint: JS Lint" | ||
command: | ||
- "echo '--- Install js-sdk'" | ||
- "./scripts/ci/install-deps.sh" | ||
- "yarn lintwithexclusions" | ||
- "yarn stylelint" | ||
- "yarn lint:js" | ||
plugins: | ||
- docker#v3.0.1: | ||
image: "node:10" | ||
image: "node:12" | ||
|
||
- label: ":chains: End-to-End Tests" | ||
agents: | ||
# We use a xlarge sized instance instead of the normal small ones because | ||
# e2e tests otherwise take +-8min | ||
queue: "xlarge" | ||
- label: ":eslint: TS Lint" | ||
command: | ||
# TODO: Remove hacky chmod for BuildKite | ||
- "echo '--- Setup'" | ||
- "chmod +x ./scripts/ci/*.sh" | ||
- "chmod +x ./scripts/*" | ||
- "echo '--- Install js-sdk'" | ||
- "./scripts/ci/install-deps.sh" | ||
- "./scripts/ci/end-to-end-tests.sh" | ||
- "yarn lint:ts" | ||
plugins: | ||
- docker#v3.0.1: | ||
image: "matrixdotorg/riotweb-ci-e2etests-env:latest" | ||
propagate-environment: true | ||
image: "node:12" | ||
|
||
- label: ":karma: Tests" | ||
agents: | ||
# We use a medium sized instance instead of the normal small ones because | ||
# webpack loves to gorge itself on resources. | ||
queue: "medium" | ||
- label: ":eslint: Types Lint" | ||
command: | ||
# Install chrome | ||
- "echo '--- Installing Chrome'" | ||
- "wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -" | ||
- "sh -c 'echo \"deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main\" >> /etc/apt/sources.list.d/google.list'" | ||
- "apt-get update" | ||
- "apt-get install -y google-chrome-stable" | ||
# Run tests | ||
# TODO: Remove hacky chmod for BuildKite | ||
- "chmod +x ./scripts/ci/*.sh" | ||
- "chmod +x ./scripts/*" | ||
- "echo '--- Installing Dependencies'" | ||
- "echo '--- Install js-sdk'" | ||
- "./scripts/ci/install-deps.sh" | ||
- "echo '+++ Running Tests'" | ||
- "./scripts/ci/unit-tests.sh" | ||
env: | ||
CHROME_BIN: "/usr/bin/google-chrome-stable" | ||
- "yarn lint:types" | ||
plugins: | ||
- docker#v3.0.1: | ||
image: "node:10" | ||
propagate-environment: true | ||
image: "node:12" | ||
|
||
- label: "🔧 Riot Tests" | ||
agents: | ||
# We use a medium sized instance instead of the normal small ones because | ||
# webpack loves to gorge itself on resources. | ||
queue: "medium" | ||
- label: "🛠 Build" | ||
command: | ||
# Install chrome | ||
- "echo '--- Installing Chrome'" | ||
- "wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -" | ||
- "sh -c 'echo \"deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main\" >> /etc/apt/sources.list.d/google.list'" | ||
- "apt-get update" | ||
- "apt-get install -y google-chrome-stable" | ||
# Run tests | ||
# TODO: Remove hacky chmod for BuildKite | ||
- "chmod +x ./scripts/ci/*.sh" | ||
- "chmod +x ./scripts/*" | ||
- "echo '--- Installing Dependencies'" | ||
- "echo '--- Install js-sdk'" | ||
- "./scripts/ci/install-deps.sh" | ||
- "echo '+++ Running Tests'" | ||
- "./scripts/ci/riot-unit-tests.sh" | ||
env: | ||
CHROME_BIN: "/usr/bin/google-chrome-stable" | ||
- "yarn build" | ||
plugins: | ||
- docker#v3.0.1: | ||
image: "node:10" | ||
propagate-environment: true | ||
image: "node:12" | ||
|
||
# - label: ":chains: End-to-End Tests" | ||
# agents: | ||
# # We use a xlarge sized instance instead of the normal small ones because | ||
# # e2e tests otherwise take +-8min | ||
# queue: "xlarge" | ||
# command: | ||
# # TODO: Remove hacky chmod for BuildKite | ||
# - "echo '--- Setup'" | ||
# - "chmod +x ./scripts/ci/*.sh" | ||
# - "chmod +x ./scripts/*" | ||
# - "echo '--- Install js-sdk'" | ||
# - "./scripts/ci/install-deps.sh" | ||
# - "./scripts/ci/end-to-end-tests.sh" | ||
# plugins: | ||
# - docker#v3.0.1: | ||
# image: "matrixdotorg/riotweb-ci-e2etests-env:latest" | ||
# propagate-environment: true | ||
# | ||
# - label: ":karma: Tests" | ||
# agents: | ||
# # We use a medium sized instance instead of the normal small ones because | ||
# # webpack loves to gorge itself on resources. | ||
# queue: "medium" | ||
# command: | ||
# # Install chrome | ||
# - "echo '--- Installing Chrome'" | ||
# - "wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -" | ||
# - "sh -c 'echo \"deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main\" >> /etc/apt/sources.list.d/google.list'" | ||
# - "apt-get update" | ||
# - "apt-get install -y google-chrome-stable" | ||
# # Run tests | ||
# # TODO: Remove hacky chmod for BuildKite | ||
# - "chmod +x ./scripts/ci/*.sh" | ||
# - "chmod +x ./scripts/*" | ||
# - "echo '--- Installing Dependencies'" | ||
# - "./scripts/ci/install-deps.sh" | ||
# - "echo '+++ Running Tests'" | ||
# - "./scripts/ci/unit-tests.sh" | ||
# env: | ||
# CHROME_BIN: "/usr/bin/google-chrome-stable" | ||
# plugins: | ||
# - docker#v3.0.1: | ||
# image: "node:10" | ||
# propagate-environment: true | ||
# | ||
# - label: "🔧 Riot Tests" | ||
# agents: | ||
# # We use a medium sized instance instead of the normal small ones because | ||
# # webpack loves to gorge itself on resources. | ||
# queue: "medium" | ||
# command: | ||
# # Install chrome | ||
# - "echo '--- Installing Chrome'" | ||
# - "wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -" | ||
# - "sh -c 'echo \"deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main\" >> /etc/apt/sources.list.d/google.list'" | ||
# - "apt-get update" | ||
# - "apt-get install -y google-chrome-stable" | ||
# # Run tests | ||
# # TODO: Remove hacky chmod for BuildKite | ||
# - "chmod +x ./scripts/ci/*.sh" | ||
# - "chmod +x ./scripts/*" | ||
# - "echo '--- Installing Dependencies'" | ||
# - "./scripts/ci/install-deps.sh" | ||
# - "echo '+++ Running Tests'" | ||
# - "./scripts/ci/riot-unit-tests.sh" | ||
# env: | ||
# CHROME_BIN: "/usr/bin/google-chrome-stable" | ||
# plugins: | ||
# - docker#v3.0.1: | ||
# image: "node:10" | ||
# propagate-environment: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. when can they end to end tests come back? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They are removed by a different PR. Plan is shortly. |
||
|
||
- label: "🌐 i18n" | ||
command: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ module.exports = { | |
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
legacyDecorators: true, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just to note it looks like this has been removed in babel-eslint v11 so adding it now seems nonideal. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we have to add it now otherwise eslint complaints aggressively :( |
||
} | ||
}, | ||
rules: { | ||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm missing why we need legacy decorators, especially given we're only just writing the code now. Shouldn't we be using the stage 2 version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use legacy decorators elsewhere - it turns out we need this regardless. The modern decorators also aren't compatible with this sort of thing just yet (we need more ES6 code).