-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds `lint-staged` to all packages and the root to lint staged changes depending on the package (environment). 1. root: lint lock-file only 2. kuma-gui: lint styles and scripts only 3. config: lint scripts only --- Apart from lint-staged all the shareable make targets and recipes have been moved to our config/tooling package. --------- Signed-off-by: schogges <[email protected]>
- Loading branch information
Showing
13 changed files
with
23 additions
and
10 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"package-lock.json": "make lint/lock" | ||
} |
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,11 +1,18 @@ | ||
SHELL := /usr/bin/env bash | ||
MK := ./packages/kuma-gui/mk | ||
MK := ./packages/config/src/mk | ||
|
||
## make help: if you're aren't sure use `make help` | ||
.DEFAULT_GOAL := help | ||
|
||
include $(MK)/install.mk | ||
include $(MK)/check.mk | ||
include $(MK)/help.mk | ||
|
||
.PHONY: clean | ||
clean: .clean ## Dev: Remove all `node_modules` recursively | ||
|
||
.PHONY: install | ||
install: .install ## Dev: Install all dependencies | ||
|
||
.PHONY: help | ||
help: .help ## Display this help screen |
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,3 +1,3 @@ | ||
{ | ||
"*.{cjs,js,ts}": "make lint" | ||
"*.{cjs,js,ts,vue}": "make lint" | ||
} |
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,6 +1,13 @@ | ||
MK := ../kuma-gui/mk | ||
MK := ./src/mk | ||
|
||
## make help: if you're aren't sure use `make help` | ||
.DEFAULT_GOAL := help | ||
|
||
include $(MK)/check.mk | ||
include $(MK)/help.mk | ||
|
||
.PHONY: help | ||
help: .help ## Display this help screen | ||
|
||
.PHONY: lint | ||
lint: .lint/script ## Dev: Run all lint script checks (js,ts) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,4 @@ | ||
{ | ||
"*.{js,ts,vue}": "make -C ./packages/kuma-gui -j2 lint/script", | ||
"*.{css,scss,vue}": "make -C ./packages/kuma-gui lint/css", | ||
"package-lock.json": "make -C ./packages/kuma-gui lint/lock" | ||
"*.{cjs,js,ts,vue}": "make -j2 .lint/script", | ||
"*.{css,scss,vue}": "make lint/css" | ||
} |
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