mirror of
https://github.com/urbit/shrub.git
synced 2024-12-24 03:14:30 +03:00
Merge pull request #4772 from urbit/mp/landscape/prod
meta/interface: re-integrate preinstall script with clean install
This commit is contained in:
commit
f2d91fdc98
@ -32,7 +32,7 @@ same (if [developing on a local development ship][local]). Then, from
|
||||
'pkg/interface':
|
||||
|
||||
```
|
||||
npm install
|
||||
npm ci
|
||||
npm run start
|
||||
```
|
||||
|
||||
@ -59,7 +59,7 @@ module.exports = {
|
||||
```
|
||||
|
||||
The dev environment will attempt to match the subdomain against the keys of this
|
||||
object, and if matched will proxy to the corresponding URL. For example, the
|
||||
object, and if matched will proxy to the corresponding URL. For example, the
|
||||
above config will proxy `zod.localhost:9000` to `http://localhost:8080`,
|
||||
`bus.localhost:9000` to `http://localhost:8081` and so on and so forth. If no
|
||||
match is found, then it will fallback to the `URL` property.
|
||||
@ -71,7 +71,7 @@ linter and for usage through the command, do the following:
|
||||
|
||||
```bash
|
||||
$ cd ./pkg/interface
|
||||
$ npm install
|
||||
$ npm ci
|
||||
$ npm run lint
|
||||
```
|
||||
|
||||
|
@ -98,8 +98,9 @@
|
||||
"lint-file": "eslint",
|
||||
"tsc": "tsc",
|
||||
"tsc:watch": "tsc --watch",
|
||||
"preinstall": "./preinstall.sh",
|
||||
"build:dev": "cross-env NODE_ENV=development webpack --config config/webpack.dev.js",
|
||||
"build:prod": "cd ../npm/api && npm i && cd ../../interface && cross-env NODE_ENV=production webpack --config config/webpack.prod.js",
|
||||
"build:prod": "cd ../npm/api && npm ci && cd ../../interface && cross-env NODE_ENV=production webpack --config config/webpack.prod.js",
|
||||
"start": "webpack-dev-server --config config/webpack.dev.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
|
12
pkg/interface/preinstall.sh
Executable file
12
pkg/interface/preinstall.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
cd ../npm
|
||||
|
||||
for i in $(find . -type d -maxdepth 1) ; do
|
||||
packageJson="${i}/package.json"
|
||||
if [ -f "${packageJson}" ]; then
|
||||
echo "installing ${i}..."
|
||||
cd ./${i}
|
||||
npm ci
|
||||
cd ..
|
||||
fi
|
||||
done
|
Loading…
Reference in New Issue
Block a user