commit 96bae63e38b24613a0ca90b7ab2440e420c351c4 Author: Orion Kindel Date: Sun Dec 1 11:57:24 2024 -0600 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c470536 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ + +bower_components/ +node_modules/ +.pulp-cache/ +output/ +output-es/ +generated-docs/ +.psc-package/ +.psc* +.purs* +.psa* +.spago diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 0000000..4567f8f --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "types": ["bun-types"], + "lib": ["esnext"], + "target": "esnext", + "module": "esnext", + "moduleResolution": "bundler", + "moduleDetection": "force", + "jsx": "react", + "allowJs": true, + "checkJs": true, + "noEmit": true, + "strict": true + }, + "include": [ + "./scripts/*.js", + "ui-serve/**/*.js", + "api/**/*.js", + "ui/**/*.js", + "aws/**/*.js", + "logging/**/*.js" + ] +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..3ea4eb8 --- /dev/null +++ b/package.json @@ -0,0 +1,19 @@ +{ + "name": "purescript-tower", + "private": true, + "module": "index.js", + "type": "module", + "scripts": { + "postinstall": "spago install", + "make": "spago build --pure", + "test": "spago test --pure", + "lint": "spago build --pure --strict --pedantic-packages && bun run scripts/fmt.js --check", + "lint:fix": "bun run scripts/fmt.js" + }, + "devDependencies": { + "bun-types": "1.1.4", + "purs-tidy": "^0.10.0", + "typescript": "^5.0.0" + }, + "dependencies": {} +} diff --git a/spago.yaml b/spago.yaml new file mode 100644 index 0000000..e50fb89 --- /dev/null +++ b/spago.yaml @@ -0,0 +1,13 @@ +package: + name: tower + dependencies: + - console + - effect + - prelude + test: + main: Test.Main + dependencies: [] +workspace: + packageSet: + registry: 61.2.0 + extraPackages: {} diff --git a/src/Main.purs b/src/Main.purs new file mode 100644 index 0000000..5c18dca --- /dev/null +++ b/src/Main.purs @@ -0,0 +1,10 @@ +module Main where + +import Prelude + +import Effect (Effect) +import Effect.Console (log) + +main :: Effect Unit +main = do + log "🍝" diff --git a/test/Test/Main.purs b/test/Test/Main.purs new file mode 100644 index 0000000..e616930 --- /dev/null +++ b/test/Test/Main.purs @@ -0,0 +1,12 @@ +module Test.Main where + +import Prelude + +import Effect (Effect) +import Effect.Class.Console (log) + +main :: Effect Unit +main = do + log "🍕" + log "You should add some tests." +