Skip to content

Commit ab74213

Browse files
committed
Become a monorepo with yarn workspaces and lerna
Make room to have multiple javascript projects in this repository, using yarn workspaces and lerna as project manager. Add a separata package.json for the plugin frontend. Because of the way Kolibri plugins work, this workspace can't go to the packages/ folder. Add a lerna configuration file and adapt the package.json with the same workspaces listed. Also, require yarn in the package.json engine because that's what we are using. https://phabricator.endlessm.com/T31931
1 parent 2abf4f4 commit ab74213

File tree

4 files changed

+5300
-1188
lines changed

4 files changed

+5300
-1188
lines changed
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "discovery-page",
3+
"description": "A replacement for kolibri's Learn tab.",
4+
"private": true,
5+
"version": "1.0.0",
6+
"dependencies": {
7+
"kolibri-design-system": "https://github.com/learningequality/kolibri-design-system"
8+
},
9+
"devDependencies": {
10+
"kolibri-tools": "0.14.5-dev.4"
11+
}
12+
}

lerna.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"packages": [
3+
"kolibri_explore_plugin/assets",
4+
"packages/*"
5+
],
6+
"version": "independent",
7+
"npmClient": "yarn",
8+
"useWorkspaces": true
9+
}

package.json

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
{
2+
"name": "eos-discovery",
3+
"description": "Monorepo with kolibri's Discovery page and custom channel presentations.",
4+
"private": true,
25
"scripts": {
36
"build": "kolibri-tools build prod --plugins kolibri_explore_plugin",
47
"clean": "kolibri-tools build clean --plugins kolibri_explore_plugin",
58
"dev": "kolibri-tools build dev --plugins kolibri_explore_plugin --port 4000",
69
"lint-frontend": "kolibri-tools lint -p 'kolibri_explore_plugin/assets/**/*.{js,vue,scss,less,css}'",
710
"lint-frontend:format": "yarn run lint-frontend --write"
811
},
9-
"name": "kolibri-explore-render-plugin",
10-
"description": "Explore Plugin for Kolibri",
11-
"private": true,
12-
"dependencies": {
13-
"kolibri-design-system": "https://github.com/learningequality/kolibri-design-system"
14-
},
12+
"workspaces": [
13+
"kolibri_explore_plugin/assets",
14+
"packages/*"
15+
],
1516
"devDependencies": {
16-
"kolibri-tools": "0.14.5-dev.4"
17+
"lerna": "^4.0.0"
1718
},
1819
"engines": {
1920
"node": "10.x",
20-
"npm": ">= 3"
21+
"yarn": "1.x"
2122
}
2223
}

0 commit comments

Comments
 (0)