modify template structure

- add editorconfig & pug config
- add watch command
- update gitignore with local envs
This commit is contained in:
bdeshi 2022-05-20 19:47:36 +06:00
parent 8bb9311b99
commit 824c7777a9
Signed by: bdeshi
GPG Key ID: 410D03DA9A3468E0
9 changed files with 26 additions and 3 deletions

9
.editorconfig Normal file
View File

@ -0,0 +1,9 @@
root = true
[*]
tab_width = 4
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
end_of_line = lf

4
.gitignore vendored
View File

@ -78,6 +78,7 @@ web_modules/
.env.test.local .env.test.local
.env.production.local .env.production.local
.env.local .env.local
.envrc
# parcel-bundler cache (https://parceljs.org/) # parcel-bundler cache (https://parceljs.org/)
.cache .cache
@ -129,5 +130,8 @@ dist
.yarn/install-state.gz .yarn/install-state.gz
.pnp.* .pnp.*
# ignore local variables
/vars.*.pug
# ignore local research stash # ignore local research stash
_stash/ _stash/

4
.pugrc Normal file
View File

@ -0,0 +1,4 @@
{
"pretty": true,
"basedir": "./"
}

0
includes/body.pug Normal file
View File

0
includes/head.pug Normal file
View File

0
includes/tail.pug Normal file
View File

View File

@ -1,5 +1,7 @@
include vars
doctype html doctype html
head head
include includes/head
body body
include includes/body
include includes/tail

View File

@ -9,6 +9,7 @@
}, },
"scripts": { "scripts": {
"build": "parcel build index.pug", "build": "parcel build index.pug",
"serve": "parcel watch index.pug" "serve": "parcel serve index.pug",
"watch": "parcel watch index.pug"
} }
} }

3
vars.pug Normal file
View File

@ -0,0 +1,3 @@
-
var variable = 'value'
include vars.local