Skip to content

Commit

Permalink
Merge branch 'main' of github.com:biw/nuts into jroyleaz/octocatrev
Browse files Browse the repository at this point in the history
  • Loading branch information
biw committed Mar 17, 2021
2 parents 5c3d033 + 5f40180 commit 1b89284
Show file tree
Hide file tree
Showing 9 changed files with 2,180 additions and 11 deletions.
65 changes: 65 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
version: 2.1

commands:
install_and_cache_yarn_linux:
steps:
- checkout
- restore_cache:
name: restore cache ➡ root
keys:
- dependencies-linux-root-{{ checksum "yarn.lock" }}
# fallback to using the latest cache if no exact match is found
- dependencies-linux-root-
- run:
name: yarn ➡ install
command: yarn
- save_cache:
name: save cache
paths:
- ~/repo/node_modules
key: dependencies-linux-root-{{ checksum "yarn.lock" }}
run_all_tests:
steps:
- run:
name: yarn test
command: yarn test
install_and_test:
steps:
- install_and_cache_yarn_linux
- run_all_tests

# based on https://github.com/nodejs/Release schedule
jobs:
node_10:
docker:
- image: circleci/node:10
steps:
- install_and_test
node_12:
docker:
- image: circleci/node:12
steps:
- install_and_test
node_13:
docker:
- image: circleci/node:13
steps:
- install_and_test
node_14:
docker:
- image: circleci/node:14
steps:
- install_and_test
node_15:
docker:
- image: circleci/node:15
steps:
- install_and_test
workflows:
main:
jobs:
- node_10
- node_12
- node_13
- node_14
- node_15
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# https://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space

# 4 space indentation
[*.{js,ts,tsx,jsx,json}]
indent_size = 2

# Tab indentation (no size specified)
[*.yml]
indent_size = 4
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion Procfile

This file was deleted.

4 changes: 2 additions & 2 deletions docs/deploy.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Deployment

Nuts can be easily be deployed to a state-less server or PaaS. It only uses the disk as a cache for assets.
Nuts can easily be deployed to a state-less server or PaaS. It only uses the disk as a cache for assets.

### On Heroku:

Expand All @@ -24,7 +24,7 @@ Install dependencies using:
$ npm install
```

This service requires to be configured using environment variables:
The service requires configuration using environment variables:

```
# Set the port for the service
Expand Down
2 changes: 2 additions & 0 deletions docs/github.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ http://download.myapp.com/refresh

Where download.myapp.com, is the URL of your Nuts server.

Content-type should be `application/json`

It'll refresh versions cache everytime you update a release on GitHub.

### Secret
Expand Down
2 changes: 1 addition & 1 deletion docs/update-osx.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ var autoUpdater = require('auto-updater');
var platform = os.platform() + '_' + os.arch();
var version = app.getVersion();

autoUpdater.setFeedURL('http://download.myapp.com/update/'+platform+'/'+version);
autoUpdater.setFeedURL('https://download.myapp.com/update/'+platform+'/'+version);
```
Loading

0 comments on commit 1b89284

Please sign in to comment.