• This repository has been archived on 11/Jan/2020
  • Stars
    star
    143
  • Rank 255,657 (Top 6 %)
  • Language
    PHP
  • License
    MIT License
  • Created almost 5 years ago
  • Updated almost 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Rebuild WordPress theme Sakura. Demo on https://dev.2heng.xin

Sakura v2

Demo Build Status webpack wordpress typescript php

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

More Repositories

1

sakura

A Wonderful WordPress Theme: ๆจฑ่Šฑๅบ„็š„็™ฝ็Œซๅšๅฎขไธป้ข˜
PHP
3,541
star
2

Pixiv-Nginx

P็ซ™๏ผˆPixiv๏ผ‰็š„ๆญฃ็กฎๆ‰“ๅผ€ๆ–นๅผ
Vim Script
1,740
star
3

arknights-ui

H5 ๅคๅˆป็‰ˆๆ˜Žๆ—ฅๆ–น่ˆŸๆธธๆˆไธป็•Œ้ข
CSS
344
star
4

alice-player

A beautiful H5 music player built with Vue3. ๐Ÿ‰
Vue
54
star
5

deemo

Deemo๏ผˆๅคๆ ‘ๆ—‹ๅพ‹๏ผ‰ๆ›ฒ็ป˜้›†ๅคๅˆป
JavaScript
36
star
6

weibo2toot

ไธ€ไธชๅฐ†ๅพฎๅšๆฌ่ฟๅˆฐ้•ฟๆฏ›่ฑก็š„่„šๆœฌ Demo:
Python
21
star
7

tweet2toot

ไธ€ไธชๅฐ†ๆŽจ็‰นๆฌ่ฟๅˆฐ้•ฟๆฏ›่ฑก็š„่„šๆœฌ Demo: https://hello.2heng.xin/@SpokespersonCHN
Python
20
star
8

feditool

TypeScript
10
star
9

bili2toot

b็ซ™ๅŠจๆ€ๆฌ่ฟๅˆฐ้•ฟๆฏ›่ฑก็š„่„šๆœฌ Demo๏ผš
Python
10
star
10

hello_robots_txt

ๅฐๆฃฎๆž— robots.txt
SCSS
6
star
11

Awesome-Deck

A simple Hearthstone card deck API that you can easily embed in your site with iframe.
Python
5
star
12

bilibili_emojis

HTML
5
star
13

strix-monitor

ๅŸบไบŽ AIDA64 ๅ’Œ็Žฐไปฃ web ๆŠ€ๆœฏ็š„็”ต่„‘ๆ€ง่ƒฝ็›‘ๆŽง้กต
TypeScript
5
star
14

elasticsearch-cnplugin

ๅŸบไบŽๅฎ˜ๆ–น้•œๅƒๅฎ‰่ฃ…ไธญๆ–‡ๅˆ†่ฏๆ’ไปถ
Dockerfile
3
star
15

mastodon-s3-sync-tool

A tool for syncing Mastodon S3 objects
Python
2
star
16

github.io

HTML
2
star
17

clash-rule-custom

1
star
18

STATA_C2018

2018 Spring Semester
Stata
1
star
19

wp-gorgeous

WordPress ไธป้ข˜ Gorgeous
PHP
1
star
20

flutter_todo_app

Dart
1
star