summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2024-11-02 17:33:02 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2024-11-02 17:33:02 +0000
commit76cbb26981cc4f8f018a97b9107076b6a8a76ef8 (patch)
tree546578711e0fd5647dbc8a041014e68937df3c79
parent2cd21412bbf2cd97ce60219eeec3c466967252e5 (diff)
downloadthrow_simulation-main.tar
throw_simulation-main.tar.gz
throw_simulation-main.zip
Add MIT license, improve CI processHEADv1.0.0main
-rw-r--r--.github/workflows/check.yml4
-rw-r--r--Justfile13
-rw-r--r--LICENSE.txt21
3 files changed, 31 insertions, 7 deletions
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
index 04e8f16..52a8282 100644
--- a/.github/workflows/check.yml
+++ b/.github/workflows/check.yml
@@ -7,5 +7,5 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: "22"
- - run: npm ci --include=dev
- - run: npx prettier . --check
+ - uses: taiki-e/install-action@just
+ - run: just check
diff --git a/Justfile b/Justfile
index 8a53c98..3b0c34a 100644
--- a/Justfile
+++ b/Justfile
@@ -1,4 +1,4 @@
-build: get_dependencies
+build: get_deps
mkdir -p dist
cp src/index.html dist/index.html
cp src/index.js dist/index.js
@@ -7,11 +7,14 @@ build: get_dependencies
run: build
npx http-server dist/
-get_dependencies:
- npm install --include=dev --fund=false
-
-format: get_dependencies
+format: get_deps
npx prettier . --write
+check: get_deps
+ npx prettier . --check
+
+get_deps:
+ npm ci --include=dev --fund=false
+
clean:
rm -rf dist node_modules
diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100644
index 0000000..eb67150
--- /dev/null
+++ b/LICENSE.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2024 Arjun Satarkar
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE. \ No newline at end of file