Repository for the DCTx project.
- Final Site URL - https://dctx.ph/
- Staging
- Figma
- Local Export - Choose the most recent export.
Local SSL is required!
- Install Local by Flywheel for local development.
- Download and Install Composer
- Because theme is bundled with Gulp, basic knowledge of the command line and the following dependencies are required: either Yarn or Node (recommended version
10.x
), Gulp CLI (npm install -g gulp-cli
), and Bower (npm install -g bower
).
- Once you've set up your local, run
composer install
insidewp-content
, this will install all needed plugins by the website. - If you need to add a plugin, search in WordPress Packagist and add to
composer.json
in therequired
part, and runcomposer install
again. Do not docomposer update
instead in thewp-content
folder runrm composer.lock
before you runcomposer install
.
"require": {
"wpackagist-plugin/gutenberg": "7.8.1",
"wpackagist-plugin/name-of-plugin-here: "Version"
},
- Activate the DCTx-V2 theme in the dashboard. Then setup Gulp.
- From the command line, change directories to
dctx-v2
cd themes/dctx-v2
- Install theme dependencies (use either Yarn or NPM)
Yarn
yarn install && bower install
NPM
npm install && bower install
- When adding your own changes\features, create a branch from
master
using eitherhotfix
orfeature
like so:git checkout -b feature\jc-feature-name
- Once you're done adding your changes, create a PR and request a review.
From the command line, type any of the following to perform an action (make sure you are inside of the theme folder):
gulp watch
- Automatically handle changes to CSS, JS, SVGs, and image sprites. Also kicks off BrowserSync.
gulp icons
- Minify, concatenate, and clean SVG icons.
gulp i18n
- Scan the theme and create a POT file.
gulp sass:lint
- Run Sass against WordPress code standards.
gulp js:lint
- Run Javascript against WordPress code standards.
gulp scripts
- Concatenate and minify javascript files.
gulp sprites
- Generate an image sprite and the associated Sass (sprite.png).
gulp styles
- Compile, prefix, combine media queries, and minify CSS files.
gulp
- Runs the following tasks at the same time: i18n, icons, scripts, styles, sprites.