Last active
March 8, 2019 19:13
-
-
Save vbulant/cfbe4b109de4de52220c686decf41562 to your computer and use it in GitHub Desktop.
Simple frontend devstack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Browsers that we support | |
# https://github.com/browserslist/browserslist#full-list | |
> 1% in CZ | |
last 2 versions | |
Firefox ESR | |
not dead |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# editorconfig.org | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true | |
[*.md] | |
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"clean": "del dist && make-dir dist/img", | |
"html": "pug src/pug/*.pug --out dist --watch --pretty", | |
"css": "postcss src/css/main.css -o dist/css/main.css -w", | |
"js": "parcel watch src/js/main.js --out-dir dist/js", | |
"js:build": "parcel build src/js/main.js --out-dir dist/js", | |
"svg": "svgo src/img/*.svg -o dist/img --disable removeViewBox && svgstore -o dist/img/sprite.svg --inline dist/img/*.svg && del dist/img/*.svg !dist/img/sprite.svg", | |
"serve": "browser-sync dist -w --no-open", | |
"dev": "npm run clean && npm run svg && concurrently --kill-others \"npm:serve\" \"npm:html\" \"npm:css\" \"npm:js\"", | |
"start": "npm run dev" | |
}, | |
"author": "vojtech@bulant.cz", | |
"devDependencies": { | |
"autoprefixer": "^9.4.7", | |
"browser-sync": "^2.26.3", | |
"concurrently": "^4.1.0", | |
"del-cli": "^1.1.0", | |
"make-dir-cli": "^2.0.0", | |
"parcel-bundler": "^1.11.0", | |
"pesticide": "^1.3.1", | |
"postcss-cli": "^6.1.1", | |
"postcss-custom-properties": "^8.0.9", | |
"postcss-each": "^0.10.0", | |
"postcss-easy-import": "^3.0.0", | |
"postcss-nested": "^4.1.1", | |
"postcss-preset-env": "^6.5.0", | |
"pug-cli": "^1.0.0-alpha6", | |
"svgo": "^1.1.1", | |
"svgstore-cli": "^1.3.1" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
plugins: [ | |
require('postcss-easy-import'), | |
require('postcss-each'), | |
require('postcss-nested'), | |
require('postcss-custom-properties')({ preserve: false }), | |
require('autoprefixer')({ grid: true }), | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment