Skip to content

Commit

Permalink
chore: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
azasypkin committed Dec 8, 2023
1 parent 6e293ee commit 5e32992
Show file tree
Hide file tree
Showing 16 changed files with 19,225 additions and 2 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Secutils Sandbox Deploy

on:
push:
branches: [ main ]
paths-ignore:
- 'LICENSE'
- '*.md'
- '.husky/**'

jobs:
build:
name: Build (Linux)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Checkout

- name: Set Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
cache: 'npm'

- name: Install dependencies
run: npm ci --workspace=kibana-security-health-check

- name: Build
run: npm run build --workspace=kibana-security-health-check

deploy:
name: Deploy (Linux)
runs-on: ubuntu-latest

needs: build

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: 'kibana-security-health-check/dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
.idea
dist
.parcel-cache
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit ${1}
11 changes: 11 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

set -eu

if ! npm run build --workspace=kibana-security-health-check
then
echo "Cannot build project."
exit 1
fi

exit 0
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# sandbox
A compilation of diverse examples showcasing Secutils.dev usage
# Secutils.dev Sandbox
A compilation of diverse examples showcasing Secutils.dev usage.
1 change: 1 addition & 0 deletions kibana-security-health-check/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/dist
65 changes: 65 additions & 0 deletions kibana-security-health-check/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/recommended",
"plugin:import/typescript"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/consistent-type-exports": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-unused-vars": "error",
"object-curly-spacing": ["error", "always"],
"max-len": ["error", { "code": 120, "ignoreStrings": true }],
"eol-last": ["error", "always"],
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 0 }],
"import/order": [
"error", {
"groups": [
"builtin",
"external",
"internal",
["parent", "sibling", "index"]
],
"pathGroups": [
{
"pattern": "react*",
"group": "external",
"position": "before"
},
{
"pattern": "react-dom/*",
"group": "external",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": ["react*"],
"alphabetize": { "order": "asc", "caseInsensitive": true },
"newlines-between": "always"
}
],
"import/no-duplicates": ["error"],
"sort-imports": ["error", {
"ignoreCase": true,
"ignoreDeclarationSort": true
}]
},
"settings": {
"import/resolver": {
"typescript": true
},
"import/parsers": {
"@typescript-eslint/parser": [".ts"]
}
}
}
9 changes: 9 additions & 0 deletions kibana-security-health-check/.parcelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "@parcel/config-default",
"transformers": {
"*.ts": ["@parcel/transformer-typescript-tsc"]
},
"validators": {
"*.ts": ["@parcel/validator-typescript"]
}
}
7 changes: 7 additions & 0 deletions kibana-security-health-check/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"trailingComma": "all",
"singleQuote": true,
"printWidth": 120,
"tabWidth": 2
}
Loading

0 comments on commit 5e32992

Please sign in to comment.