Skip to content

Commit d9b4c48

Browse files
authored
Merge pull request #1 from learningequality/release-v0.16.x
kolibri
2 parents a25fc0a + af2ab3d commit d9b4c48

5 files changed

Lines changed: 31 additions & 17 deletions

File tree

kolibri/plugins/learn/assets/src/views/LibraryPage/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22

3-
<div>
3+
<div :style="{ maxWidth: '1700px' }">
44
<transition name="delay-entry">
55
<PostSetupModalGroup
66
v-if="!(rootNodesLoading || searchLoading)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"app-devserver": "concurrently --passthrough-arguments --kill-others \"yarn:watch --watchonly {1}\" yarn:app-python-devserver yarn:hashi-dev --",
2727
"devserver": "concurrently --passthrough-arguments --kill-others \"yarn:watch --watchonly {1}\" yarn:python-devserver yarn:hashi-dev --",
2828
"devserver-hot": "concurrently --passthrough-arguments --kill-others \"yarn:watch-hot --watchonly {1}\" yarn:python-devserver yarn:hashi-dev --",
29-
"devserver-with-kds": "concurrently --passthrough-arguments --kill-others \"yarn:watch --watchonly --kds-path={1}\" yarn:python-devserver yarn:hashi-dev --",
29+
"devserver-with-kds": "concurrently --passthrough-arguments --kill-others \"yarn:watch --watchonly={2} --require-kds-path --kds-path={1}\" yarn:python-devserver yarn:hashi-dev --",
3030
"bundle-stats": "kolibri-tools build stats --file ./build_tools/build_plugins.txt --transpile",
3131
"clean": "kolibri-tools build clean --file ./build_tools/build_plugins.txt",
3232
"preinstall": "node ./packages/kolibri-tools/lib/npm_deprecation_warning.js",

packages/kolibri-tools/lib/cli.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ function runWebpackBuild(mode, bundleData, devServer, options, cb = null) {
8181
cache: options.cache,
8282
transpile: options.transpile,
8383
devServer,
84+
requireKdsPath: options.requireKdsPath,
8485
kdsPath: options.kdsPath,
8586
};
8687

@@ -226,8 +227,21 @@ program
226227
list,
227228
[]
228229
)
230+
.option(
231+
'--require-kds-path',
232+
'Flag to check if yarn command is run using devserver-with-kds',
233+
false
234+
)
229235
.option('--kds-path <kdsPath>', 'Full path to local kds directory', String, '')
230236
.action(function(mode, options) {
237+
if (options.requireKdsPath) {
238+
if (!options.kdsPath) {
239+
cliLogging.error(
240+
'The --require-kds-path flag was specified, but no --kds-path value was provided. Please include the path to the local KDS directory.'
241+
);
242+
process.exit(1);
243+
}
244+
}
231245
if (typeof mode !== 'string') {
232246
cliLogging.error('Build mode must be specified');
233247
process.exit(1);

packages/kolibri-tools/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"dependencies": {
1717
"@babel/core": "^7.23.6",
1818
"@babel/plugin-syntax-import-assertions": "^7.22.5",
19-
"@babel/plugin-transform-runtime": "^7.23.4",
19+
"@babel/plugin-transform-runtime": "^7.23.6",
2020
"@babel/preset-env": "^7.23.6",
2121
"@testing-library/jest-dom": "^6.1.5",
2222
"@vue/test-utils": "^1.3.6",
@@ -41,7 +41,7 @@
4141
"eslint": "^6.8.0",
4242
"eslint-config-prettier": "^6.15.0",
4343
"eslint-config-vue": "^2.0.2",
44-
"eslint-plugin-import": "^2.29.0",
44+
"eslint-plugin-import": "^2.29.1",
4545
"eslint-plugin-jest": "^23.3.0",
4646
"eslint-plugin-kolibri": "0.16.0-dev.6",
4747
"eslint-plugin-vue": "^7.3.0",

yarn.lock

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -835,10 +835,10 @@
835835
dependencies:
836836
"@babel/helper-plugin-utils" "^7.22.5"
837837

838-
"@babel/plugin-transform-runtime@^7.23.4":
839-
version "7.23.4"
840-
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.23.4.tgz#5132b388580002fc5cb7c84eccfb968acdc231cb"
841-
integrity sha512-ITwqpb6V4btwUG0YJR82o2QvmWrLgDnx/p2A3CTPYGaRgULkDiC0DRA2C4jlRB9uXGUEfaSS/IGHfVW+ohzYDw==
838+
"@babel/plugin-transform-runtime@^7.23.6":
839+
version "7.23.6"
840+
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.23.6.tgz#bf853cd0a675c16ee33e6ba2a63b536e75e5d754"
841+
integrity sha512-kF1Zg62aPseQ11orDhFRw+aPG/eynNQtI+TyY+m33qJa2cJ5EEvza2P2BNTIA9E5MyqFABHEyY6CPHwgdy9aNg==
842842
dependencies:
843843
"@babel/helper-module-imports" "^7.22.15"
844844
"@babel/helper-plugin-utils" "^7.22.5"
@@ -5010,10 +5010,10 @@ eslint-plugin-compat@^4.2.0:
50105010
lodash.memoize "^4.1.2"
50115011
semver "^7.5.4"
50125012

5013-
eslint-plugin-import@^2.29.0:
5014-
version "2.29.0"
5015-
resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.29.0.tgz#8133232e4329ee344f2f612885ac3073b0b7e155"
5016-
integrity sha512-QPOO5NO6Odv5lpoTkddtutccQjysJuFxoPS7fAHO+9m9udNHvTCPSAMW9zGAYj8lAIdr40I8yPCdUYrncXtrwg==
5013+
eslint-plugin-import@^2.29.1:
5014+
version "2.29.1"
5015+
resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz#d45b37b5ef5901d639c15270d74d46d161150643"
5016+
integrity sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==
50175017
dependencies:
50185018
array-includes "^3.1.7"
50195019
array.prototype.findlastindex "^1.2.3"
@@ -5031,7 +5031,7 @@ eslint-plugin-import@^2.29.0:
50315031
object.groupby "^1.0.1"
50325032
object.values "^1.1.7"
50335033
semver "^6.3.1"
5034-
tsconfig-paths "^3.14.2"
5034+
tsconfig-paths "^3.15.0"
50355035

50365036
eslint-plugin-jest@^23.3.0:
50375037
version "23.13.2"
@@ -11128,10 +11128,10 @@ truncate-utf8-bytes@^1.0.2:
1112811128
dependencies:
1112911129
utf8-byte-length "^1.0.1"
1113011130

11131-
tsconfig-paths@^3.14.2:
11132-
version "3.14.2"
11133-
resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz#6e32f1f79412decd261f92d633a9dc1cfa99f088"
11134-
integrity sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==
11131+
tsconfig-paths@^3.15.0:
11132+
version "3.15.0"
11133+
resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz#5299ec605e55b1abb23ec939ef15edaf483070d4"
11134+
integrity sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==
1113511135
dependencies:
1113611136
"@types/json5" "^0.0.29"
1113711137
json5 "^1.0.2"

0 commit comments

Comments
 (0)