Code Monkey home page Code Monkey logo

dctx-v2's Introduction

DCTx Version 2

Repository for the DCTx project.

Project Details

Local SSL is required!

Getting Started

Prerequisites

  • 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).

Development

  1. Once you've set up your local, run composer install inside wp-content, this will install all needed plugins by the website.
  2. If you need to add a plugin, search in WordPress Packagist and add to composer.json in the required part, and run composer install again. Do not do composer update instead in the wp-content folder run rm composer.lock before you run composer install.
	"require": {
		"wpackagist-plugin/gutenberg": "7.8.1",
		"wpackagist-plugin/name-of-plugin-here: "Version"
	},
  1. Activate the DCTx-V2 theme in the dashboard. Then setup Gulp.
  2. From the command line, change directories to dctx-v2
cd themes/dctx-v2
  1. Install theme dependencies (use either Yarn or NPM)

Yarn

yarn install && bower install

NPM

npm install && bower install

Branching and Dev Flow

  1. When adding your own changes\features, create a branch from master using either hotfix or feature like so: git checkout -b feature\jc-feature-name
  2. Once you're done adding your changes, create a PR and request a review.

Gulp Tasks

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.