4 files modified
5 files added
| | |
| | | # https://editorconfig.org |
| | | |
| | | # this file is the top-most editorconfig file |
| | | root = true |
| | | |
| | | # all files |
| | | [*] |
| | | charset = utf-8 |
| | | end_of_line = lf |
| | | indent_style = space |
| | | indent_size = 4 |
| | | insert_final_newline = true |
| | | indent_style = space |
| | | indent_size = 2 |
| | | trim_trailing_whitespace = true |
| | | |
| | | # markdown files |
| | | [*.md] |
| | | insert_final_newline = false |
| | | trim_trailing_whitespace = false |
| | | |
| | | # configuration files |
| | | [*.toml] |
| | | indent_size = 2 |
| | | |
| | | # web files |
| | | [*.{html,css,scss}] |
| | | indent_size = 2 |
| | | |
| | | [Makefile] |
| | | indent_style = tab |
| | | |
| | | [*.md] |
| | | trim_trailing_whitespace = false |
| | | |
| | | [*.scss] |
| | | indent_size = 2 |
| | | |
| | | [*.js] |
| | | indent_size = 2 |
| | | |
| | | [*.html] |
| | | indent_size = 2 |
| | |
| | | |
| | | #### Resources |
| | | |
| | | - [ ] If you changed templates or styles, run `make format` |
| | | - [ ] If you have changed any SCSS code, run `make release` to regenerate all CSS files |
| | | |
| | | #### Contributors |
| | |
| | | exampleSite/public/ |
| | | exampleSite/resources/ |
| | | *.lock |
| | | package-lock.json |
| | | node_modules |
| | | public |
| New file |
| | |
| | | repos: |
| | | - repo: local |
| | | hooks: |
| | | - id: lint |
| | | name: npm run lint |
| | | entry: npm run lint |
| | | language: system |
| | | pass_filenames: false |
| | | always_run: true |
| New file |
| | |
| | | node_modules/ |
| | | resources/ |
| | | exampleSite/resources/ |
| | | assets/scss/font-awesome/ |
| | | layouts/_markup/render-heading.html |
| | |
| | | HUGO_BIN=hugo |
| | | |
| | | .PHONY: build demo release |
| | | .PHONY: build demo release lint format setup |
| | | |
| | | build: |
| | | $(HUGO_BIN) --themesDir=../.. --source=exampleSite |
| | |
| | | |
| | | release: build |
| | | rm -rf ./resources && cp -r ./exampleSite/resources ./resources |
| | | |
| | | setup: |
| | | npm install |
| | | prek install |
| | | |
| | | lint: |
| | | npm run lint |
| | | |
| | | format: |
| | | npm run format |
| New file |
| | |
| | | { |
| | | "name": "hugo-coder", |
| | | "private": true, |
| | | "scripts": { |
| | | "lint:html": "prettier --check \"layouts/**/*.html\" \"exampleSite/**/*.html\"", |
| | | "lint:scss": "stylelint \"assets/scss/**/*.scss\"", |
| | | "lint": "npm run lint:html && npm run lint:scss", |
| | | "format:html": "prettier --write \"layouts/**/*.html\" \"exampleSite/**/*.html\"", |
| | | "format:scss": "stylelint --fix \"assets/scss/**/*.scss\"", |
| | | "format": "npm run format:html && npm run format:scss" |
| | | }, |
| | | "devDependencies": { |
| | | "postcss-scss": "^4.0.9", |
| | | "prettier": "^3.3.3", |
| | | "prettier-plugin-go-template": "^0.0.15", |
| | | "stylelint": "^16.5.0", |
| | | "stylelint-config-standard-scss": "^13.0.0", |
| | | "stylelint-scss": "^6.5.0" |
| | | } |
| | | } |
| New file |
| | |
| | | module.exports = { |
| | | plugins: ["prettier-plugin-go-template"], |
| | | printWidth: 100, |
| | | tabWidth: 2, |
| | | useTabs: false, |
| | | overrides: [ |
| | | { |
| | | files: ["*.html"], |
| | | options: { |
| | | parser: "go-template" |
| | | } |
| | | } |
| | | ] |
| | | }; |
| New file |
| | |
| | | module.exports = { |
| | | extends: ["stylelint-config-standard-scss"], |
| | | customSyntax: "postcss-scss", |
| | | ignoreFiles: [ |
| | | "assets/scss/font-awesome/**/*.scss", |
| | | "resources/**/*.scss", |
| | | "exampleSite/resources/**/*.scss" |
| | | ] |
| | | }; |