Skip to content
Rebuild WP theme Sakura
PHP CSS TypeScript HTML JavaScript Hack Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
dist bash: Sat Nov 9 21:35:10 CST 2019 Nov 9, 2019
src bash: Sat Nov 9 21:35:10 CST 2019 Nov 9, 2019
.gitignore
LICENSE
NOTES.md
README.md
azure-pipelines.yml
package-lock.json
package.json
push.sample.sh
tsconfig.json
webpack.config.js

README.md

Sakura v2

Build Status

Demo

This is a developing repo, do not install in production environment!

Install

Clone/download/upload into ./wp-content/themes/, then active theme in WordPress dashboard.

Compile

npm i -g webpack-cli
npm install
# Dynamic comiple (--watch file changes)
npm run dev
# Build
npm run build

Commands only tested on Linux, but should also work on other platforms.

Develop

DO NOT MODIFY OR SAVE IN ./dist/, all your changes in 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.less   // Wordpress theme info (header of style.css)
├── package.json       // npm configuration
├── tsconfig.json      // TypeScript configuration
└── webpack.config.js  // Webpack configuration

Contribute

Pull requests welcomed.

Git commit guidelines: the Angular guidelines

Code comment guidelines: the TypeScript guidelines

Author

Mashiro https://2heng.xin

License

MIT

You can’t perform that action at this time.