mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-04-04 10:29:34 +00:00
Move webapp related build files into the webapp directory
This commit is contained in:
parent
6a4f1c148d
commit
9e552d2ac1
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -16,6 +16,8 @@ jobs:
|
||||
with:
|
||||
elm-version: 0.19.1
|
||||
- uses: bahmutov/npm-install@v1
|
||||
with:
|
||||
working-directory: modules/webapp
|
||||
- name: Fetch tags
|
||||
run: git fetch --depth=100 origin +refs/tags/*:refs/tags/*
|
||||
- uses: olafurpg/setup-scala@v12
|
||||
|
2
.github/workflows/release-nightly.yml
vendored
2
.github/workflows/release-nightly.yml
vendored
@ -21,6 +21,8 @@ jobs:
|
||||
with:
|
||||
elm-version: 0.19.1
|
||||
- uses: bahmutov/npm-install@v1
|
||||
with:
|
||||
working-directory: modules/webapp
|
||||
- name: Coursier cache
|
||||
uses: coursier/cache-action@v6
|
||||
- name: Set current version
|
||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -21,6 +21,8 @@ jobs:
|
||||
with:
|
||||
elm-version: 0.19.1
|
||||
- uses: bahmutov/npm-install@v1
|
||||
with:
|
||||
working-directory: modules/webapp
|
||||
- name: Coursier cache
|
||||
uses: coursier/cache-action@v6
|
||||
- name: Set current version
|
||||
|
@ -1,8 +1,8 @@
|
||||
{
|
||||
"type": "application",
|
||||
"source-directories": [
|
||||
"modules/webapp/src/main/elm",
|
||||
"modules/webapp/target/elm-src"
|
||||
"src/main/elm",
|
||||
"target/elm-src"
|
||||
],
|
||||
"elm-version": "0.19.1",
|
||||
"dependencies": {
|
@ -15,9 +15,9 @@ const prodPlugins =
|
||||
require("autoprefixer"),
|
||||
require("@fullhuman/postcss-purgecss")({
|
||||
content: [
|
||||
"./modules/webapp/src/main/elm/**/*.elm",
|
||||
"./modules/webapp/src/main/styles/keep.txt",
|
||||
"./modules/restserver/src/main/templates/*.html"
|
||||
"./src/main/elm/**/*.elm",
|
||||
"./src/main/styles/keep.txt",
|
||||
"../restserver/src/main/templates/*.html"
|
||||
],
|
||||
defaultExtractor: content => content.match(/[A-Za-z0-9-_:/\.]+/g) || []
|
||||
}),
|
@ -50,7 +50,7 @@ object StylesPlugin extends AutoPlugin {
|
||||
val npm = stylesNpmCommand.value
|
||||
val inDir = stylesDirectory.value
|
||||
val outDir = stylesOutputDir.value
|
||||
val wd = (LocalRootProject / baseDirectory).value
|
||||
val wd = (Compile / baseDirectory).value
|
||||
val mode = stylesMode.value
|
||||
npmInstall(npm, wd, logger)
|
||||
val files = postCss(npx, inDir, outDir, wd, mode, logger) ++
|
||||
|
Loading…
x
Reference in New Issue
Block a user