Format assets
This commit is contained in:
		
							
								
								
									
										4
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								Makefile
									
									
									
									
									
								
							| @@ -13,6 +13,10 @@ build-prod: | ||||
| 	./tools/sculpin generate --clean --env=prod --no-interaction | ||||
| 	./tools/npm run build-prod | ||||
|  | ||||
| format: | ||||
| 	./tools/npm run format-js | ||||
| 	./tools/npm run format-style | ||||
|  | ||||
| watch: build-assets | ||||
| 	./tools/sculpin generate \ | ||||
| 		--env=dev \ | ||||
|   | ||||
| @@ -19,7 +19,9 @@ | ||||
|   "scripts": { | ||||
|     "watch": "", | ||||
|     "build": "webpack --config webpack.config.js --progress", | ||||
|     "build-prod": "webpack --config webpack.config.js --env.production" | ||||
|     "build-prod": "webpack --config webpack.config.js --env.production", | ||||
|     "format-js": "prettier --single-quote --trailing-comma es5 --write \"./source/_assets/**/*.js\"", | ||||
|     "format-style": "prettier --single-quote --write \"source/_assets/**/*.scss\"" | ||||
|   }, | ||||
|   "dependencies": {} | ||||
| } | ||||
|   | ||||
| @@ -2,11 +2,9 @@ import $ from 'jquery'; | ||||
| import _ from 'underscore'; | ||||
| import Backbone from 'backbone'; | ||||
| import Metrika from '../common/metrika'; | ||||
| import './style.scss' | ||||
|  | ||||
| import './style.scss'; | ||||
|  | ||||
| const PageView = Backbone.View.extend({ | ||||
|  | ||||
|     notes: [ | ||||
|         'Люблю фильм "Три идиота".', | ||||
|         'Люблю кататься на велосипеде.', | ||||
| @@ -60,4 +58,4 @@ const PageView = Backbone.View.extend({ | ||||
|     }, | ||||
| }); | ||||
|  | ||||
| new PageView({ el: $('.js-about-me')}); | ||||
| new PageView({ el: $('.js-about-me') }); | ||||
|   | ||||
| @@ -1,4 +1,5 @@ | ||||
| html, body { | ||||
| html, | ||||
| body { | ||||
|     font-size: 18px; | ||||
|     font-family: 'PT Serif', serif; | ||||
|     padding: 0; | ||||
| @@ -13,7 +14,7 @@ html, body { | ||||
|             left: 15px; | ||||
|             right: 15px; | ||||
|         } | ||||
|     }     | ||||
|     } | ||||
| } | ||||
|  | ||||
| .content { | ||||
| @@ -34,7 +35,7 @@ html, body { | ||||
| .hello { | ||||
|     margin-top: 1em; | ||||
|     font-size: 3.4em; | ||||
|     margin-bottom: 0.30em; | ||||
|     margin-bottom: 0.3em; | ||||
|     font-weight: normal; | ||||
|  | ||||
|     @media (max-width: 839px) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user