Skip to content

Commit

Permalink
[CHORE] (history): starting from scratch
Browse files Browse the repository at this point in the history
  • Loading branch information
mraveloarinjaka committed Nov 21, 2024
0 parents commit 68a0cee
Show file tree
Hide file tree
Showing 13 changed files with 19,463 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/clj-watson.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# clj-watson scans dependencies in a clojure deps.edn
# seeking for vulnerable direct/transitive dependencies and
# build a report with all the information needed to help you
# understand how the vulnerability manifest in your software.
# More details at https://github.com/clj-holmes/clj-watson

name: clj-watson

on:
push:
branches: [ "master" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
schedule:
- cron: '16 21 * * 6'

permissions:
contents: read

jobs:
clj-holmes:
name: Run clj-watson scanning
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Dependency scan
uses: clj-holmes/clj-watson-action@b4c3623c4d603932e60e6012a3a1db7bc60058c2
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
clj-watson-sha: "65d928c"
clj-watson-tag: "v4.0.1"
database-strategy: github-advisory
aliases: clojure-lsp,test
deps-edn-path: deps.edn
suggest-fix: true
output-type: sarif
output-file: clj-watson-results.sarif
fail-on-result: false

- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: clj-watson-results.sarif
wait-for-processing: true
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
merge_group:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v1
with:
java-version: '11'

- uses: DeLaGuardo/setup-clojure@master
with:
cli: 'latest'

- name: install dependencies
run: npm install

- name: build release
run: clojure -M:cljs-cli release app

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./resources/public
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.nrepl-port
/.shadow-cljs/*
/node_modules/*
/resources/public/js/*
/resources/public/mx-nostro-nfr/js/*
.vim-bookmarks
.cpcache
.clj-kondo
.lsp
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Hoplon and shadow-cljs

Basic example showing how to use [hoplon](https://github.com/hoplon/hoplon) when building with [shadow-cljs](https://github.com/thheller/shadow-cljs)

Development mode
```
clj -M:dev:cljs-cli watch app
```

Package
```
clj -M:cljs-cli release app
```


## Generated page
[https://mraveloarinjaka.github.io/hello-world-hoplon-shadow-cljs](https://mraveloarinjaka.github.io/hello-world-hoplon-shadow-cljs/)
17 changes: 17 additions & 0 deletions deps.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{:paths ["src/main"]
:deps {applied-science/js-interop {:mvn/version "0.4.2"}
cljs-http/cljs-http {:mvn/version "0.1.46"}
funcool/promesa {:mvn/version "11.0.678"}
hoplon/hoplon {:git/url "https://github.com/hoplon/hoplon"
:git/sha "1fb6352a2b403e0a8d99e4cb772dae32f6c96425"}
lambdaisland/glogi {:mvn/version "1.3.169"}
macchiato/core {:mvn/version "0.2.24"}}
:mvn/repos {"central" {:url "https://repo1.maven.org/maven2/"}
"clojars" {:url "https://clojars.org/repo/"}}
:aliases {:dev {:jvm-opts ["-Dlogback.configurationFile=logback.xml" "--illegal-access=deny"]}
:cljs {:extra-deps {binaryage/devtools {:mvn/version "1.0.7"}
cider/cider-nrepl {:mvn/version "0.38.1"}
refactor-nrepl/refactor-nrepl {:mvn/version "3.10.0"}
thheller/shadow-cljs {:mvn/version "2.28.19"}}}
:cljs-cli {:extra-deps {thheller/shadow-cljs {:mvn/version "2.28.19"}}
:main-opts ["-m" "shadow.cljs.devtools.cli"]}}}
Loading

0 comments on commit 68a0cee

Please sign in to comment.