Move webapp related build files into the webapp directory

This commit is contained in:
eikek
2021-06-22 23:40:42 +02:00
parent 6a4f1c148d
commit 9e552d2ac1
11 changed files with 12 additions and 6 deletions

View File

@ -0,0 +1,9 @@
{
"excludedPaths": [
"modules/webapp/target/elm-src/"
],
"checks" : {
"ImportAll": false,
"SingleFieldRecord": false
}
}

View File

@ -0,0 +1 @@
elm.json

47
modules/webapp/elm.json Normal file
View File

@ -0,0 +1,47 @@
{
"type": "application",
"source-directories": [
"src/main/elm",
"target/elm-src"
],
"elm-version": "0.19.1",
"dependencies": {
"direct": {
"CurrySoftware/elm-datepicker": "4.0.0",
"NoRedInk/elm-json-decode-pipeline": "1.0.0",
"NoRedInk/elm-simple-fuzzy": "1.0.3",
"elm/browser": "1.0.2",
"elm/core": "1.0.5",
"elm/file": "1.0.5",
"elm/html": "1.0.0",
"elm/http": "2.0.0",
"elm/json": "1.1.3",
"elm/time": "1.0.0",
"elm/url": "1.0.0",
"elm-explorations/markdown": "1.0.0",
"justinmimbs/date": "3.1.2",
"norpan/elm-html5-drag-drop": "3.1.4",
"pablohirafuji/elm-qrcode": "3.3.1",
"ryannhg/date-format": "2.3.0",
"truqu/elm-base64": "2.0.4",
"ursi/elm-scroll": "1.0.0",
"ursi/elm-throttle": "1.0.1"
},
"indirect": {
"avh4/elm-color": "1.0.0",
"danfishgold/base64-bytes": "1.0.3",
"elm/bytes": "1.0.8",
"elm/parser": "1.1.0",
"elm/regex": "1.0.0",
"elm/svg": "1.0.1",
"elm/virtual-dom": "1.0.2",
"elm-community/list-extra": "8.2.4",
"folkertdev/elm-flate": "2.0.4",
"justgook/elm-image": "4.0.0"
}
},
"test-dependencies": {
"direct": {},
"indirect": {}
}
}

2045
modules/webapp/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,16 @@
{
"name": "docspell-css",
"version": "1.0.0",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-free": "^5.15.3",
"@tailwindcss/forms": "^0.3.0",
"autoprefixer": "^10.2.5",
"cssnano": "^5.0.0",
"flag-icon-css": "^3.5.0",
"postcss": "^8.2.9",
"postcss-cli": "^8.3.1",
"postcss-import": "^14.0.1",
"tailwindcss": "^2.1.1"
}
}

View File

@ -0,0 +1,31 @@
//postcss.config.js
const tailwindcss = require("tailwindcss");
const devPlugins =
[
require('postcss-import'),
tailwindcss("./tailwind.config.js"),
require("autoprefixer")
];
const prodPlugins =
[
require('postcss-import'),
tailwindcss("./tailwind.config.js"),
require("autoprefixer"),
require("@fullhuman/postcss-purgecss")({
content: [
"./src/main/elm/**/*.elm",
"./src/main/styles/keep.txt",
"../restserver/src/main/templates/*.html"
],
defaultExtractor: content => content.match(/[A-Za-z0-9-_:/\.]+/g) || []
}),
require('cssnano')({
preset: 'default'
})
]
module.exports = (ctx) => ({
plugins: ctx.env === 'production' ? prodPlugins : devPlugins
});

View File

@ -0,0 +1,30 @@
// tailwind.config.js
const colors = require('tailwindcss/colors')
module.exports = {
variants: {
extend: {
backgroundOpacity: ['dark']
}
},
purge: false,
darkMode: 'class', // or 'media' or 'class'
theme: {
extend: {
colors: {
bluegray: colors.blueGray,
warmgray: colors.warmGray,
amber: colors.amber,
orange: colors.orange,
teal: colors.teal,
lime: colors.lime,
lightblue: colors.lightBlue
}
}
},
plugins: [
require('@tailwindcss/forms')
]
// prefix: 'tw-'
}