/
package.json
39 lines (39 loc) · 2.57 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
"name": "umbrella",
"description": "An umbrella repo that hosts all the LUME projects as git submodules in order to centralize management of all the projects.",
"private": true,
"// NOTE": "Any field starting with `//` is intended as a comment.",
"engines": {
"node": ">=13 <15"
},
"scripts": {
"clean": "lerna run clean",
"install": "npm run update-modules && npm run bootstrap && npm run build && npm run docs:build",
"update": "git pull && npm install",
"update-modules": "git submodule update --init --recursive",
"bootstrap": "lerna bootstrap --no-ci --ignore '{,readem,glas}' --ignore-scripts --loglevel notice -- --loglevel notice && lerna bootstrap --no-ci --scope '{,readem,glas}'",
"// ^ bootstrap": "Bootstrap everything except readem, and then readem by itself, to avoid a circular link. (lume->readem->lume).",
"// ^ bootstrap 2": "TODO bootstrap readem along with cli, so that cli is linked into it. Maybe the scope would be {readem,cli}",
"// ^ bootstrap 3": "We use --ignore-scripts so that the bootstrap doesn't run prepare scripts. We want it to only put dependencies in place. A subsequent lerna build step builds everything in correct order. Otherwise some packages will try to build themselves before dependencies are in place.",
"unbootstrap": "lerna clean --yes",
"purge": "(lerna run clean || true) && npm run unbootstrap",
"// ^ purge": "'lerna clean --yes' removes all node_modules while 'lerna run clean' runs each project's particular 'clean' script.",
"reset": "npm run purge && npm run bootstrap && npm run build",
"docs:build": "lerna run docs:build",
"docs:serve": "lerna run docs:serve",
"website:publish": "git push && ssh infamous@trusktr.io \"bash --login -c 'cd ~/lume+lume && npm run update' && echo 'Enter root password to restart web server:' && su -c 'systemctl restart lume-website.service'\"",
"website:landing": "cd apps/website && meteor",
"website": "(npm run docs:serve & p1=$!; npm run website:landing & p2=$!; wait $p1 $p2)",
"build": "npm run clean && lerna run build",
"test": "lerna run test --scope '{element,element-behaviors,lume,james-bond,lowclass,readem,variable,glas,eventful,custom-attributes}'",
"test:ci": "npm run test -- --concurrency 1",
"// ^ test:ci": "Concurrency needs to be 1 in CI for some reason, but I forgot to comment why.",
"dev": "echo ' --- TODO: dev script for running everything in dev mode. For now, cd into each packages and run dev manually.'",
"prettier": "prettier . --write",
"prettier:check": "prettier . --check"
},
"devDependencies": {
"lerna": "^3.20.2",
"prettier": "^2.0.0"
}
}