ΞδΣϯμ
Web Application
A Comparison of JavaScript Framework
Getting Started
DevOps for Front-end
Slide 5
Slide 5 text
Web Application
Slide 6
Slide 6 text
Web αΠτͱҧ͏ʁ
Slide 7
Slide 7 text
Application
Web Site
Slide 8
Slide 8 text
Web ΞϓϦέʔγϣϯͷʑجૅ
Slide 9
Slide 9 text
࠷ݶඞཁͳͷ
CSS
PRESENTATION
JS
BEHAVIOR
HTML
STRUCTURE
Slide 10
Slide 10 text
ඞཁʁ
Slide 11
Slide 11 text
ҋ
CSS
Slide 12
Slide 12 text
͖ʁ
Slide 13
Slide 13 text
ϓϩάϥϜΛॻ͘ͱ͖ؾʹ͢Δ͜ͱ
Մಡੑ
ϦϑΝΫλϦϯά
࠶ར༻ੑ
ςετ
etc.
Slide 14
Slide 14 text
Piece
Slide 15
Slide 15 text
Component
Slide 16
Slide 16 text
Atomic Design
Slide 17
Slide 17 text
Atomic Design
Slide 18
Slide 18 text
σβΠφʔͷࣄ
Slide 19
Slide 19 text
No content
Slide 20
Slide 20 text
No content
Slide 21
Slide 21 text
Web Components
Slide 22
Slide 22 text
Web Components
Custom Elements
HTML Templates
HTML Imports
Shadow DOM
ϐʔεʹ໊લΛ͚Δ
ϐʔεͷ༷
ϐʔεΛύζϧʹΊΔ
ϐʔεͰ͋Δ͜ͱΛओு
Slide 23
Slide 23 text
HTML Imports
HTML Templates
Custom Elements
Shadow DOM
Slide 24
Slide 24 text
Custom Elements
৽͍͠ཁૉΛొ͢Δ
var XFoo =
document.registerElement('x-component');
ΧελϜλάΛΠϯελϯεԽ
Slide 25
Slide 25 text
HTML Templates
Template used
hoge
div {
font-size: 20px;
}
console.log('x-component.html');
Slide 26
Slide 26 text
HTML Imports
Slide 27
Slide 27 text
Shadow DOM
var imports =
document.querySelector('link[rel="import"]').import;
var templates = imports.querySelector('template');
var contents = templates.content;
var xcomponents = document.querySelector('x-component');
xcomponents.createShadowRoot().appendChild(
contents.cloneNode(true)
);
Slide 28
Slide 28 text
No content
Slide 29
Slide 29 text
OOCSS
BEM
SMACSS
Slide 30
Slide 30 text
OOCSS
BEM
SMACSS
Slide 31
Slide 31 text
Scoped CSS
Slide 32
Slide 32 text
JavaScript
Framework
Slide 33
Slide 33 text
JavaScript
Framework
Slide 34
Slide 34 text
Web Application
Framework
Slide 35
Slide 35 text
A Comparison of JavaScript Framework
Slide 36
Slide 36 text
ͲͷϑϨʔϜϫʔΫΛ͏͔ʁ
ֶशίετ
ཁһ֬อ
։ൃͷ༰қੑ
࣮ߦ
ӡ༻ίετ
Slide 37
Slide 37 text
ͲͷϑϨʔϜϫʔΫΛ͏͔ʁ
ֶशίετ
ཁһ֬อ
։ൃͷ༰қੑ
࣮ߦ
ӡ༻ίετ
Slide 38
Slide 38 text
Getting Started
Slide 39
Slide 39 text
γϯϓϧʹ࢝ΊΔ
- QuickStart
Slide 40
Slide 40 text
Angular
$ npm install -g @angular/cli
$ ng new hello-angular
$ cd hello-angular
$ ng serve
Slide 41
Slide 41 text
Angular
$ npm install -g @angular/cli
$ ng new hello-angular
$ cd hello-angular
$ ng serve
Angular CLI
add Add support for a library to your project.
new Creates a new directory and a new Angular app.
generate Generates and/or modifies files based on a schematic.
update Updates your application and its dependencies.
build Builds your app and places it into the output path (dist/ by default).
serve Builds and serves your app, rebuilding on file changes.
test Run unit tests in existing project.
e2e Run e2e tests in existing project.
lint Lints code in existing project.
xi18n Extracts i18n messages from source code.
run Runs Architect targets.
eject Temporarily disabled. Ejects your app and output the proper webpack configuration and scripts.
config Get/set configuration values.
help Help. version Outputs Angular CLI version.
doc Opens the official Angular API documentation for a given keyword.