Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2a00234

Browse files
piq9117Gitea
piq9117
authored and
Gitea
committed
renamed html directory (#13)
- renamed html directory to assets
1 parent c733f74 commit 2a00234

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

‎src/UmuReactBasic/Capability/ManageCommand.hs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ generateProj
2727
-> m ()
2828
generateProj mLoc = do
2929
writeSrcDir mLoc
30-
writeHtmlDir mLoc
30+
writeAssetsDir mLoc
3131
writeIndexHtml mLoc
3232
writeSrcMainFile mLoc
3333
writeComponentDir mLoc
@@ -49,26 +49,26 @@ writeSrcDir mLoc = do
4949
( const $ logInfo "Generating src..." )
5050
res
5151

52-
writeHtmlDir :: ( MonadIO m, LogMessage m ) => Maybe Text -> m ()
53-
writeHtmlDir mLoc = do
52+
writeAssetsDir :: ( MonadIO m, LogMessage m ) => Maybe Text -> m ()
53+
writeAssetsDir mLoc = do
5454
res <- liftIO
5555
$ tryJust ( guard . isAlreadyExistsError )
56-
$ TP.mkdir ( Turtle.fromText $ mkPathName mLoc "html" )
56+
$ TP.mkdir ( Turtle.fromText $ mkPathName mLoc "assets" )
5757
either
5858
( const $ logError "html directory already exists!" )
59-
( const $ logInfo "Generating html..." )
59+
( const $ logInfo "Generating assets..." )
6060
res
6161

6262
writeIndexHtml :: ( MonadIO m, LogMessage m ) => Maybe Text -> m ()
6363
writeIndexHtml mLoc = do
64-
isExists <- TP.testfile $ Turtle.fromText $ mkPathName mLoc "html/index.html"
64+
isExists <- TP.testfile $ Turtle.fromText $ mkPathName mLoc "assets/index.html"
6565
if isExists
66-
then logError "html/index.html already exists!"
66+
then logError "assets/index.html already exists!"
6767
else do
6868
liftIO $ TP.writeTextFile
69-
( Turtle.fromText $ mkPathName mLoc "html/index.html" )
69+
( Turtle.fromText $ mkPathName mLoc "assets/index.html" )
7070
indexHtmlFile
71-
logInfo "Generating html/index.html..."
71+
logInfo "Generating assets/index.html..."
7272

7373
writeSrcMainFile :: ( MonadIO m, LogMessage m ) => Maybe Text -> m ()
7474
writeSrcMainFile mLoc = do

‎templates/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build:
55
spago build
66

77
bundle:
8-
spago bundle-app --main Main --to dist/app.js && ./node_modules/.bin/parcel build html/index.html
8+
spago bundle-app --main Main --to dist/app.js && ./node_modules/.bin/parcel build assets/index.html
99

1010
bundle-watch:
1111
spago bundle-app --main Main --to dist/app.js --watch

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /