フロントエンドを楽にするために
Qiitaを支えたい技術 at 時雨祭
- HN: mizchi
- Qiitaの方からきました(入社半年たったらしい)
- Reactオジサンはそろそろ飽きてきた
- Angularに興味が無いのでこっちにきた
var gulp = require('gulp'); | |
var autoprefixer = require('gulp-autoprefixer'); | |
var babelify = require('babelify'); | |
var browserify = require('browserify'); | |
var concat = require('gulp-concat'); | |
var eslint = require('gulp-eslint'); | |
var less = require('gulp-less'); | |
var minifyCSS = require('gulp-minify-css'); | |
var source = require("vinyl-source-stream"); | |
var uglify = require('gulp-uglify'); |
require_relative 'sprockets/env_directive_processor' | |
class Assets | |
def self.get(root) | |
assets = Sprockets::Environment.new(root) | |
assets.append_path File.join(root, 'assets', 'stylesheets') | |
assets.append_path File.join(root, 'assets', 'javascripts') | |
assets.append_path File.join(root, 'assets', 'images') |
<!DOCTYPE html> | |
<html> | |
<meta charset="UTF-8"> | |
<head> | |
<style> | |
body { | |
margin : 0; | |
padding : 0; | |
background-color: #eee; | |
font-size: 25px; |
Note that this validation runs both after the file is uploaded and after CarrierWave has processed the image. If your base uploader includes a filter to resize the image then the validation will be run against the resized image, not the original one that was uploaded. If this causes a problem for you, then you should avoid using a resizing filter on the base uploader and put any specific size requirements in a version instead.
So instead of this:
require 'carrierwave/processing/mini_magick'
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |