- Click on Use this template button.
- Download and install the latest WordPress.
- Navigate to
themesfolder. - Download the template to this folder.
- Run
npm installandnpm run build. - Open WordPress Dashboard - Appearance - Themes.
- Activate Gulp-WP theme.
Change project name in package.json file:
- "name": "boilerplate",
+ "name": "project",Start development server:
npm start
Create production build:
npm run build
gulporgulp default– default task: builds assets, starts watching directories for changes and reload browsergulp build– rebuilds all assetsgulp watcher– starts watching directories for changesgulp serve– run browsersync server with live reloadgulp clean– delete build foldergulp styles– styles compilation (includes: concat, minify, sourcemaps, autoprefixer)gulp scripts– scripts compilation (includes: concat, uglify, sourcemaps, babel)gulp lint– lint scripts with eslintgulp svgSprites– create svgSprite (includes: concat, minify)
Basic WordPress templates
Basic styles
Includes: Polyfill for 'forEach', Animated scroll to anchors, mobile burger menu