Skip to content

Commit

Permalink
Create templates genetaing script
Browse files Browse the repository at this point in the history
  • Loading branch information
AshurovG committed Sep 24, 2024
1 parent fe51f70 commit 0c96758
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions handlebarsBuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
handlebars ./public/components/AuthForm/AuthForm.hbs -f ./public/components/AuthForm/AuthForm.precompiled.js
handlebars ./public/components/Card/Card.hbs -f ./public/components/Card/Card.precompiled.js
handlebars ./public/components/CardsList/CardsList.hbs -f ./public/components/CardsList/CardsList.precompiled.js
handlebars ./public/components/GridBlock/GridBlock.hbs -f ./public/components/GridBlock/GridBlock.precompiled.js
handlebars ./public/components/Header/Header.hbs -f ./public/components/Header/Header.precompiled.js
handlebars ./public/components/Loader/Loader.hbs -f ./public/components/Loader/Loader.precompiled.js
handlebars ./public/components/RegForm/RegForm.hbs -f ./public/components/RegForm/RegForm.precompiled.js
handlebars ./public/components/Menu/Menu.hbs -f ./public/components/Menu/Menu.precompiled.js
handlebars ./public/components/Slider/Slider.hbs -f ./public/components/Slider/Slider.precompiled.js

handlebars ./public/pages/AuthPage/AuthPage.hbs -f ./public/pages/AuthPage/AuthPage.precompiled.js
handlebars ./public/pages/CategoryPage/CategoryPage.hbs -f ./public/pages/CategoryPage/CategoryPage.precompiled.js
handlebars ./public/pages/MainPage/MainPage.hbs -f ./public/pages/MainPage/MainPage.precompiled.js
handlebars ./public/pages/RegPage/RegPage.hbs -f ./public/pages/RegPage/RegPage.precompiled.js
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "webpack --mode production",
"prestart": "npm run compile:templates",
"start": "webpack serve --open --mode development",
"compile:templates": "handlebars public/components/RegForm/RegForm.hbs -f public/components/RegForm/RegForm.precompiled.js"
"compile:templates": "bash ./handlebarsBuild.sh"
},
"author": "",
"license": "ISC",
Expand Down

0 comments on commit 0c96758

Please sign in to comment.