Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Front-end tooling and DX for WordPress Developm...
Search
Ahmedabad WordPress Meetup
December 01, 2018
Technology
150
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Front-end tooling and DX for WordPress Development - WCAhmedabad 2018
Ahmedabad WordPress Meetup
December 01, 2018
Transcript
24 slides
@swashata | wca.wpack.io
front-end tooling for WordPress Themes and Plugins DEVELOPER EXPERIENCE
MODERN FRONT- END TERRAIN frontend web === JS, CSS, HTML.
new language features. development tooling. large scale web application.
ES6 ECMAScript2015 ECMAScript === JavaScript released in 2015, 4 years
after ES5 easier large-scale software development. exploringjs.com
SASS CSS with superpowers super-set of CSS. sweet features to
make CSS scale. battle tested and industry approved. sasslang.com
NPM PACKAGES install npm i lodash axios main.js import _
from 'lodash'; import axios from 'axios'; const peopleWhoLoveWP = axios .get('/users') .then(users => _.filter(users, user => user.loveWP)); npmjs.com
AWESOME DX developer experience you deserve
DX...WHAT? experience we get while developing. Language features. Tooling. Build
and Deploy. how modern tooling helps?
TOOLING for js, css and bundling
#1. BABEL Use next generation JavaScript, today. compile ES6+ code.
target your browsers.
#2. SASS LibSass or Dart Sass compile SASS to CSS.
incredible speed. automation.
#3. WEBPACK static module bundler for modern JavaScript applications. modular
JS/CSS code and imports. fonts, images and other les. can use babel and sass compiler.
SETUP APP Write an entry-point javascript le. Tell webpack to
use the entry-point. use different loaders. HMR with webpack-dev-server.
Todo Application with react & webpack URL Demo Webpack Dev
Server Watch later Share
can we do that with WordPress? YES
so we have to con gure babel? webpack? node-sass? ipity
op? uppity oop? and we have to do that everytime? how do we tell WP to use stuff from webpack? how do we have webpack-dev-server for HMR? LET US SEE
wpack.io webpack and browser-sync based front-end tooling for WordPress (OSS
- MIT Licensed) develop modern large-scale front-end heavy WordPress plugins and themes out of the box babel, sass and more. works with any local wp dev server. integrate with any project you have. dev server with live reload and HMR.
INTEGRATE Install nodejs. Add - npx @wpackio/cli Bootstrap - npm
run bootstrap PHP - composer require wpackio/enqueue Server - npm start Build - npm run build Pack - npm run archive
developing with wpackio-scripts URL Demo wpack.io Features Watch later Share
so let me ask you!! WAS IT FUN??
RECAP front-end tooling provides awesome DX. is easier to setup
today. is essential to create modern apps. can be integrated with WP development.
THANK YOU! to everyone, and WCA for giving me the
opportunity
NOTES Slide https://wca.wpack.io Docs https://wpack.io Webpack demo https://git.io/fpcEo wordpress demo
https://git.io/fpcEK slides https://git.io/fpEex
Q/A ☕
More Decks by Ahmedabad WordPress Meetup
See All by Ahmedabad WordPress Meetup
Contributing to WPTV: A guide for WordPress TV Enthusiasts
ahmedabadwordpress
0
160
Beyond the Dashboard: Exploring the WordPress REST API
ahmedabadwordpress
0
170
Smart Solutions Ensuring the Accessibility without breaking the bank
ahmedabadwordpress
0
130
What you do need to know to select the right webhost
ahmedabadwordpress
0
160
Unleash Generative AI: Supercharge Your Productivity with ChatGPT
ahmedabadwordpress
0
260
Tips & Tricks for the Effective Communication with or without AI Tools
ahmedabadwordpress
0
180
WWH of WordPress Plugin Testing
ahmedabadwordpress
0
170
Block theme - Full Site Editing Theme
ahmedabadwordpress
0
240
Why Woocommerce is Good Choice for creating Marketplace
ahmedabadwordpress
0
200
Other Decks in Technology
See All in Technology
そのイメージ、どのCIが作った? Artifact Attestationsで来歴を固定する / Which CI system created that image? Pinning provenance with Artifact Attestations
chmikata
0
290
認知の質も文化醸成も。数年取り組んで見えてきた技術広報のKPI設計 / Tech PR KPIs: Lessons on Awareness Quality and Culture After Several Years
bitkey
PRO
0
260
Test Impact Analysis を武器に立ち向かう、AI 時代のテスト増加に対するヌーラボのアプローチ / getting-started-datadog-test-impact-analysis
k6s4i53rx
3
900
現地速報! Microsoft Ignite アップデートレポート
kasada
1
720
Web Performance Is a Journey [PerfNow 2026]
tammyeverts
3
180
AWS re:Invent 2026 FSI Pre-Event Networking Night
junjikoide
0
320
一口馬主の募集馬をAIで診断してみた
yoshimura_datam
0
110
【Oracle AI SPOTLIGHT ウェビナー】AI時代、狙われるデータと止められない業務をどう守るか?
oracle4engineer
PRO
1
160
デザインシステムのフィードバックループをほぼ自動化した話
tongari07
0
1.1k
ポケモンバトルのAIエージェント
koji_kawamura
0
310
LLMごとの文章力を測ってみた話
yoshimura_datam
0
120
メディアアートを〈拡張〉する——器官学と個体化論を手がかりに
_kotobuki_
1
380
Featured
See All Featured
Mind Mapping
helmedeiros
1
460
We Have a Design System, Now What?
morganepeng
55
8.4k
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
290
Embracing the Ebb and Flow
colly
88
5.2k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.5k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
610
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
4
4.4k
Thoughts on Productivity
jonyablonski
76
5.5k
The Invisible Side of Design
smashingmag
301
52k
Rails Girls Zürich Keynote
gr2m
96
14k
KATA
mclloyd
PRO
35
16k
Optimizing for Happiness
mojombo
378
72k