Skip to content

Commit

Permalink
Merge pull request #1 from City-of-Helsinki/UHF-5_base_theme
Browse files Browse the repository at this point in the history
UHF-5 Base theme
  • Loading branch information
khalima authored Nov 6, 2020
2 parents 8ad0b1b + 335595b commit 73b75df
Show file tree
Hide file tree
Showing 21 changed files with 1,670 additions and 2,345 deletions.
38 changes: 0 additions & 38 deletions .csscomb.json

This file was deleted.

8 changes: 7 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# Editor configuration normalization
# Editor configuration.

root = true

[*]
end_of_line = LF
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[composer.{json,lock}]
indent_size = 4
28 changes: 28 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2015
},
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
}
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
node_modules
npm-debug.log

# Dist folder
dist

# HDS icons
src/icons/hds

Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.18.1
14.15.0
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,23 @@ Requirements for developing:

## Commands

| Command | Description |
| ------------- | ------------------------------------------------------------------- |
| npm i | Install dependencies and link local packages. |
| npm run dev | Compile styles for development environment. and watch file changes. |
| npm run build | Build packages for production. Minify CSS/JS. |
| Command | Description |
| ------------- | --------------------------------------------------------------------------------- |
| npm i | Install dependencies and link local packages. |
| npm ci | Install a project with a clean slate. Use especially in travis like environments. |
| npm run dev | Compile styles for development environment. and watch file changes. |
| npm run build | Build packages for production. Minify CSS/JS. |

Setup the developing environment by running

nvm use
npm i
npx husky i

Explanations for commands.
- `nvm use` : Install and use the correct version of Node.
- `npm i` : As stated above; Install dependencies and link local packages.
- `npx husky i` : Execute husky package binary; Install git-hooks for the project.

## Structure for files and folders

Expand Down
16 changes: 7 additions & 9 deletions dist/css/styles.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/icons/sprite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 73b75df

Please sign in to comment.