diff --git a/.gitignore b/.gitignore index 75ec3f0..028282a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.vscode/* \ No newline at end of file +.vscode/* +node_modules \ No newline at end of file diff --git a/.husky/.gitignore b/.husky/.gitignore new file mode 100644 index 0000000..31354ec --- /dev/null +++ b/.husky/.gitignore @@ -0,0 +1 @@ +_ diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 0000000..5cdacc4 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +yarn --cwd ./Dashboard run lint diff --git a/package.json b/package.json new file mode 100644 index 0000000..d068bd3 --- /dev/null +++ b/package.json @@ -0,0 +1,24 @@ +{ + "name": "smart-lamp-control", + "version": "1.0.0", + "description": "[![Dashboard Build](https://github.com/GHOSCHT/light-control/workflows/Dashboard%20Build/badge.svg)](https://github.com/GHOSCHT/light-control/actions?query=workflow%3A%22Dashboard+Build%22)\r [![Arduino Build](https://github.com/GHOSCHT/light-control/workflows/Arduino%20Build/badge.svg)](https://github.com/GHOSCHT/light-control/actions?query=workflow%3A%22Arduino+Build%22)\r [![Dashboard Lint](https://github.com/GHOSCHT/light-control/workflows/Dashboard%20Lint/badge.svg)](https://github.com/GHOSCHT/light-control/actions?query=workflow%3A%22Dashboard+Lint%22)\r [![Codacy Badge](https://app.codacy.com/project/badge/Grade/a9b402f8172d416db53b7dd282133094)](https://www.codacy.com/manual/GHOSCHT/light-control?utm_source=github.com&utm_medium=referral&utm_content=GHOSCHT/light-control&utm_campaign=Badge_Grade)", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "prepare": "husky install" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/GHOSCHT/light-control.git" + }, + "keywords": [], + "author": "", + "license": "ISC", + "bugs": { + "url": "https://github.com/GHOSCHT/light-control/issues" + }, + "homepage": "https://github.com/GHOSCHT/light-control#readme", + "devDependencies": { + "husky": "^6.0.0" + } +} diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..f4208fb --- /dev/null +++ b/yarn.lock @@ -0,0 +1,8 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +husky@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/husky/-/husky-6.0.0.tgz#810f11869adf51604c32ea577edbc377d7f9319e" + integrity sha512-SQS2gDTB7tBN486QSoKPKQItZw97BMOd+Kdb6ghfpBc0yXyzrddI0oDV5MkDAbuB4X2mO3/nj60TRMcYxwzZeQ==