all: do not commit generated JS/CSS to source control (#148)
Closes #125 Closes #40 Among other things, this moves all of the asset generation to run within the context of an npm script. Developer documentation stubs have been added so that people can get started more easily. The top-level Dockerfile (which is no longer used in production) has been removed as its presence has been causing confusion. This changeset will break it anyways. These changes will make for less "repo churn" as the static assets are built and rebuilt, at the cost of making the build step more complicated for downstream packagers. If this becomes a burden, we can explore making a "release tarball" that contains pre-massaged outputs.
This commit is contained in:
parent
bb4f49cfd9
commit
937f1dd330
28 changed files with 223 additions and 77 deletions
2
xess/.gitignore
vendored
2
xess/.gitignore
vendored
|
|
@ -1 +1 @@
|
|||
node_modules
|
||||
xess.min.css
|
||||
|
|
|
|||
6
xess/build.sh
Executable file
6
xess/build.sh
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
postcss ./xess.css -o xess.min.css
|
||||
2411
xess/package-lock.json
generated
2411
xess/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,20 +0,0 @@
|
|||
{
|
||||
"name": "@xeserv/xess",
|
||||
"version": "1.0.0",
|
||||
"description": "Xe's CSS",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"build": "postcss xess.css -o xess.min.css"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"cssnano": "^7.0.6",
|
||||
"cssnano-preset-advanced": "^7.0.6",
|
||||
"postcss-cli": "^11.0.0",
|
||||
"postcss-import": "^16.1.0",
|
||||
"postcss-import-url": "^7.2.0",
|
||||
"postcss-url": "^10.1.3"
|
||||
}
|
||||
}
|
||||
|
|
@ -13,11 +13,10 @@ import (
|
|||
)
|
||||
|
||||
//go:generate go run github.com/a-h/templ/cmd/templ@latest generate
|
||||
//go:generate npm ci
|
||||
//go:generate npm run build
|
||||
|
||||
var (
|
||||
//go:embed xess.min.css xess.css static
|
||||
//go:embed *.css static
|
||||
Static embed.FS
|
||||
|
||||
URL = "/.within.website/x/xess/xess.css"
|
||||
|
|
|
|||
1
xess/xess.min.css
vendored
1
xess/xess.min.css
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue