for #172: make npm and Docker use minifcation
This commit is contained in:
Родитель
e236fefd51
Коммит
9fb6342ae8
|
@ -8,4 +8,3 @@ breach_hashsets
|
|||
version.json
|
||||
loadtests/__pycache__
|
||||
loadtests/venv
|
||||
public/dist
|
||||
|
|
|
@ -15,6 +15,9 @@ RUN npm install && rm -rf ~app/.npm /tmp/*
|
|||
COPY . /app
|
||||
|
||||
USER root
|
||||
|
||||
RUN npm run build:all
|
||||
|
||||
RUN chown app:app /app
|
||||
|
||||
USER app
|
||||
|
|
11
README.md
11
README.md
|
@ -47,15 +47,12 @@ the "what" and "why" of data breach alerts.
|
|||
npm start
|
||||
```
|
||||
|
||||
Note: `npm start` uses `onchange` and `nodemon` to automatically detect file
|
||||
changes, re-compile static assets, and restart the express process. If you want
|
||||
more control, see the `scripts` section of `package.json` for more commands.
|
||||
|
||||
2. Navigate to [localhost:6060/](http://localhost:6060/)
|
||||
|
||||
Note: In development, you may want to use `nodemon` to run the server; it will
|
||||
automatically refresh the `server.js` process when files are changed:
|
||||
|
||||
```sh
|
||||
nodemon server.js
|
||||
```
|
||||
|
||||
#### Database
|
||||
|
||||
To create the database tables ...
|
||||
|
|
|
@ -101,7 +101,8 @@
|
|||
"lint:audit": "npm audit",
|
||||
"pretest": "npm run lint",
|
||||
"get-hashsets": "node scripts/get-hashsets",
|
||||
"start": "node server.js",
|
||||
"server": "nodemon server.js",
|
||||
"start": "run-p build:all watch:all server",
|
||||
"test:db:migrate": "knex migrate:latest --knexfile db/knexfile.js --env tests",
|
||||
"test:db:seed": "knex seed:run --knexfile db/knexfile.js --env tests",
|
||||
"test:tests": "NODE_ENV=tests HIBP_THROTTLE_DELAY=1000 HIBP_THROTTLE_MAX_TRIES=3 jest --runInBand --coverage tests/",
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Загрузка…
Ссылка в новой задаче