Sakura v2
This repo is under developement, do not active in production environment!
Install
Clone/download into ./wp-content/themes/
, install the depended plugins WPGraphQL (for GraphQL API support) and Redux Framework (for options framework support), then active the theme in WordPress dashboard after compiling.
Compile
# Install dependencies
npm i -g webpack-cli
npm install
curl -sS https://getcomposer.org/installer | php
php composer.phar install
# Dynamical compile (--watch file changes)
npm run dev
# Build
npm run build
Commands tested on Linux, should also work on other platforms.
Develop
DO NOT MODIFY OR SAVE IN ./dist/
, all your changes inside this folder will be replaced after npm run build
. Develop by changing files in ./src/
.
.
โโโ dist // Compiled files (*DO NOT SAVE HERE*)
โ โโโ css // Stylesheets (compiled)
โ โโโ js // JavaScript (compiled)
โ โโโ images // Images (compiled)
โ โโโ *.php // PHP files (compiled)
โ โโโ manifest.json // Webpack manifest resources list
โ โโโ style.css // Wordpress theme info
โโโ src // Source code (develop inside this folder)
โ โโโ scss // CSS source code (SASS)
โ โโโ ts // JavaScript source code (TypeScript)
โ โโโ images // Images resources
โ โโโ php // PHP source code
โ โโโ package.scss // Wordpress theme info (header of style.css)
โโโ package.json // Node.js configuration
โโโ tsconfig.json // TypeScript configuration
โโโ webpack.config.js // Webpack configuration
Contribute
Pull requests welcomed. Code comments and commit tags in English, please.
Git commit guidelines: the Angular guidelines
Code comment guidelines: the TypeScript guidelines
Author
Mashiro https://2heng.xin
License
MIT