generated from o/repo-template
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
3 months ago | |
---|---|---|
dot_js.lzjb | 3 months ago | |
gulptasks | 3 months ago | |
src | 3 months ago | |
.browserslistrc | 3 months ago | |
.editorconfig | 3 months ago | |
.eslintignore | 3 months ago | |
.eslintrc.json | 3 months ago | |
.gitignore | 3 months ago | |
.prettierrc | 3 months ago | |
README.md | 3 months ago | |
gulpfile.js | 3 months ago | |
mit.LICENSE.txt | 3 months ago | |
package.json | 3 months ago | |
pnpm-lock.yaml | 3 months ago | |
tsconfig.json | 3 months ago | |
webpack.config.js | 3 months ago | |
webpack.config.prod.js | 3 months ago |
README.md
Website blueprint
Blueprint to build a simple website
Features
HTML
Basic index.html file
CSS
./css/scss
style.scss // imports of all styles
/base // general styles, font-face, helpers
/layout // styles defining the layout of the page
/modules // independent modules, that can be re-used
JavaScript
- TypeScript support
- Modular JS (imports & exports)
./js
script.ts // imports all necessary TS files
/modules // re-usable modules as classes
Tools
Taskrunner
gulp, different tasks are defined within the gulptasks
folder.
Available tasks:
gulp // default task for development (build dist and watch src)
build // production ready build in dist
assets // copy assets folder
clean // clean dist folder
html // move .html files to dist
styles // compile SASS
webpack // compile TypeScript
watch // watch src and handle changed files
Webpack
Typescript is compiled and bundled with webpack. Config: webpack.config.js
Linter & formatter
eslint to find and fix problems within JavaScript and prettier to format code.
configs:
.eslintignore
.eslintrc.json
.prettierrc
npm scripts:
lint
lint:fix
Installation
Prerequisite: Have node.js and npm installed.
- Clone or download this repository
- Install dependencies
npm install
Usage
- Start watcher
npm run dev
- Make changes within the
src
folder - Generated files will be in
dist
Deploy for production
npm run build