Skip to content

Commit

Permalink
blueprints,standard: upgrade unpoly and other node deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdanp committed Jan 19, 2024
1 parent 25ae712 commit dee78bc
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 33 deletions.
8 changes: 4 additions & 4 deletions koyo-lib/blueprints/standard/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
module.exports = {
env: {
browser: true,
es2021: true
es2021: true,
},
extends: "eslint:recommended",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module"
sourceType: "module",
},
rules: {
indent: ["error", 2],
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "always"]
}
semi: ["error", "always"],
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,11 @@
(:meta ([:name "viewport"] [:content "width=device-width, initial-scale=1"]))

(:title (if subtitle (~a subtitle " - AppNameHere") "AppNameHere"))
(:link ([:rel "stylesheet"] [:href (static-uri "vendor/unpoly.min.css")]))
(:link ([:rel "stylesheet"] [:href (static-uri "css/screen.css")]))
(:link ([:rel "stylesheet"] [:href (static-uri "vendor/unpoly.min.css")])))

(:script ([:src (static-uri "vendor/unpoly.min.js")] [:defer "defer"]))
(:script ([:src (static-uri "js/app.js")] [:defer "defer"])))
(:body
(when show-nav?
(if (current-user)
Expand All @@ -79,10 +82,7 @@
([:class (format "flash__item flash__item--~a" (car flash))])
(cdr flash))))))))

(.content ,@content)

(:script ([:src (static-uri "vendor/unpoly.min.js")]))
(:script ([:src (static-uri "js/app.js")]))))))
(.content ,@content)))))

(response
200
Expand Down
28 changes: 15 additions & 13 deletions koyo-lib/blueprints/standard/app-name-here/info.rkt
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
#lang info

(define collection "app-name-here")
(define deps '("base"
"component-lib"
"db-lib"
("deta-lib" #:version "0.9")
"forms-lib"
"gregor-lib"
"koyo-lib"
"koyo-north"
"koyo-postmark"
"libargon2"
"threading-lib"
"web-server-lib"))
(define build-deps '())
(define deps
'("base"
"component-lib"
"db-lib"
["deta-lib" #:version "0.9"]
"forms-lib"
"gregor-lib"
"koyo-lib"
"koyo-north"
"koyo-postmark"
"libargon2"
"threading-lib"
"web-server-lib"))
(define build-deps
'())
4 changes: 2 additions & 2 deletions koyo-lib/blueprints/standard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"broccoli-sass-source-maps": "^4.0.0",
"broccoli-uglify-sourcemap": "^4.0.0",
"eslint": "^8.10.0",
"node-sass": "^7.0.1",
"prettier": "^2.5.1"
"node-sass": "^9.0.0",
"prettier": "^3.0.0"
},
"scripts": {
"build": "NODE_ENV=production broccoli b --output-path static",
Expand Down
10 changes: 2 additions & 8 deletions koyo-lib/blueprints/standard/resources/vendor/unpoly.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

0 comments on commit dee78bc

Please sign in to comment.