minor fuckup with static files
This commit is contained in:
parent
8f8b33517a
commit
648e84ff9b
5 changed files with 3 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
dist-newstyle
|
dist-newstyle
|
||||||
|
.shake
|
||||||
|
|
Binary file not shown.
|
@ -4,7 +4,7 @@ outputDir :: String
|
||||||
outputDir = "publish"
|
outputDir = "publish"
|
||||||
|
|
||||||
assetGlobs :: [String]
|
assetGlobs :: [String]
|
||||||
assetGlobs = ["static/*"]
|
assetGlobs = ["static//*"]
|
||||||
|
|
||||||
pagePaths :: [String]
|
pagePaths :: [String]
|
||||||
pagePaths = ["links.typ"]
|
pagePaths = ["links.typ"]
|
||||||
|
|
|
@ -60,7 +60,7 @@ buildRules = do
|
||||||
-- make a rule of the pattern outputDir/asset_name which copes from outputDir/../pages
|
-- make a rule of the pattern outputDir/asset_name which copes from outputDir/../pages
|
||||||
assets :: Rules ()
|
assets :: Rules ()
|
||||||
assets = map (outputDir </>) assetGlobs |%> \target -> do
|
assets = map (outputDir </>) assetGlobs |%> \target -> do
|
||||||
let src = Shake.dropDirectory1 target </> "pages"
|
let src = Shake.dropDirectory1 target
|
||||||
Shake.copyFileChanged src target
|
Shake.copyFileChanged src target
|
||||||
Shake.putInfo $ "Copied " <> target <> " from " <> src
|
Shake.putInfo $ "Copied " <> target <> " from " <> src
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue