mirror of
https://github.com/offen/website.git
synced 2024-11-22 01:00:26 +01:00
scaffold script app
This commit is contained in:
parent
d38b9a970d
commit
cb03bebf03
@ -57,9 +57,30 @@ jobs:
|
||||
name: Run tests
|
||||
command: npm test
|
||||
|
||||
script:
|
||||
docker:
|
||||
- image: circleci/node:10-browsers
|
||||
working_directory: ~/offen/script
|
||||
steps:
|
||||
- checkout:
|
||||
path: ~/offen
|
||||
- restore_cache:
|
||||
key: offen-script-{{ checksum "package.json" }}
|
||||
- run:
|
||||
name: Install dependencies
|
||||
command: npm install
|
||||
- save_cache:
|
||||
paths:
|
||||
- ~/offen/script/node_modules
|
||||
key: offen-script-{{ checksum "package.json" }}
|
||||
- run:
|
||||
name: Run tests
|
||||
command: npm test
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
build_and_test:
|
||||
jobs:
|
||||
- server
|
||||
- vault
|
||||
- script
|
||||
|
24
README.md
24
README.md
@ -90,6 +90,30 @@ cd vault
|
||||
npm test
|
||||
```
|
||||
|
||||
#### `script`
|
||||
|
||||
To work on the `script` you will need to install `docker-compose`.
|
||||
|
||||
First, install the project's dependencies:
|
||||
|
||||
```
|
||||
cd script
|
||||
npm install
|
||||
```
|
||||
|
||||
Run the server:
|
||||
|
||||
```
|
||||
docker-compose up
|
||||
```
|
||||
|
||||
Run the tests:
|
||||
|
||||
```
|
||||
cd script
|
||||
npm test
|
||||
```
|
||||
|
||||
|
||||
### License
|
||||
|
||||
|
@ -32,3 +32,16 @@ vault:
|
||||
- 9977:9977
|
||||
environment:
|
||||
- SERVER_HOST=https://local.offen.dev:8080
|
||||
|
||||
script:
|
||||
image: timbru31/node-chrome:slim
|
||||
working_dir: /script
|
||||
volumes:
|
||||
- ./script:/script
|
||||
- ./local.offen.dev.pem:/script/local.offen.dev.pem
|
||||
- ./local.offen.dev-key.pem:/script/local.offen.dev-key.pem
|
||||
command: npm start -- --port 9966
|
||||
ports:
|
||||
- 9966:9966
|
||||
environment:
|
||||
- VAULT_HOST=https://local.offen.dev:9977
|
||||
|
Loading…
Reference in New Issue
Block a user