-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Martin Buchleitner <[email protected]>
- Loading branch information
Showing
13 changed files
with
437 additions
and
2,671 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
.travis.yml | ||
*.md | ||
Dockerfile | ||
Makefile | ||
data | ||
node_modules | ||
.travis.yml | ||
*.md | ||
*.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
node: [10, 12] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- uses: actions/checkout@master | ||
- name: Shell Linter | ||
uses: azohra/[email protected] | ||
- name: Cache node_modules | ||
id: cache-modules | ||
uses: actions/cache@v1 | ||
with: | ||
path: node_modules | ||
key: ${{ runner.OS }}-build-${{ hashFiles('package.json') }} | ||
- name: install check deps | ||
run: npm install npm-check mocha eslint | ||
- name: npm-check | ||
run: ./node_modules/npm-check/bin/cli.js --skip-unused | ||
- name: lint | ||
run: ./scripts/lint.sh | ||
- run: npm ci | ||
- run: npm test | ||
release: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
registry-url: 'https://registry.npmjs.org' | ||
- uses: go-semantic-release/action@v1 | ||
id: semrel | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
update-file: package.json | ||
changelog-generator-opt: "emojis=true" | ||
- run: npm publish | ||
if: steps.semrel.outputs.version != '' | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
FROM nodered/node-red-docker:slim-v10 | ||
|
||
COPY docker-package.json /usr/src/node-red/package.json | ||
COPY ./ /usr/src/alexa-node | ||
FROM nodered/node-red:1.2.6-12-minimal | ||
|
||
USER root | ||
COPY docker-package.json /usr/src/node-red/package-patch.json | ||
RUN awk -F':' '{system("npm install "$1)}' package-patch.json \ | ||
&& rm /usr/src/node-red/package-patch.json | ||
|
||
## install custom deps | ||
RUN npm install | ||
COPY ./ /usr/src/alexa-node | ||
|
||
## link dev code | ||
RUN npm link /usr/src/alexa-node/ | ||
|
||
# USER node-red | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,3 @@ | ||
{ | ||
"name": "node-red-docker", | ||
"version": "1.0.0", | ||
"description": "A visual tool for wiring the Internet of Things", | ||
"homepage": "http://nodered.org", | ||
"license": "Apache-2.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/node-red/node-red-docker.git" | ||
}, | ||
"main": "node_modules/node-red/red/red.js", | ||
"scripts": { | ||
"start": "node $NODE_OPTIONS node_modules/node-red/red.js -v $FLOWS" | ||
}, | ||
"contributors": [{ | ||
"name": "Dave Conway-Jones" | ||
}, | ||
{ | ||
"name": "Nick O'Leary" | ||
}, | ||
{ | ||
"name": "James Thomas" | ||
} | ||
], | ||
"dependencies": { | ||
"node-red": "1.0.0", | ||
"node-red-node-msgpack": "*", | ||
"node-red-node-base64": "*", | ||
"node-red-node-suncalc": "*", | ||
"node-red-node-random": "*", | ||
"node-red-node-feedparser": "*", | ||
"node-red-contrib-loxone": "*", | ||
"node-red-contrib-samsung-tv": "*" | ||
}, | ||
"engines": { | ||
"node": "4.*.*" | ||
} | ||
} | ||
"node-red-contrib-loxone": "*" | ||
"node-red-contrib-samsung-tv": "*" | ||
"node-red-contrib-alexa-remote2": "*" |
Oops, something went wrong.