You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
mashiro 91fb4795a8 bash: Mon Dec 9 03:02:37 CST 2019 4 years ago
.github/workflows bash: Thu Nov 7 23:37:18 CST 2019 5 years ago
src bash: Mon Dec 9 03:02:37 CST 2019 4 years ago
webpack bash: Fri Dec 6 02:46:54 CST 2019 4 years ago
.gitignore bash: Thu Dec 5 04:56:35 CST 2019 4 years ago
LICENSE bash: Thu Nov 7 23:37:18 CST 2019 5 years ago
NOTES.md bash: Thu Nov 7 23:37:18 CST 2019 5 years ago
README.md bash: Sun Dec 8 21:47:04 CST 2019 4 years ago
azure-pipelines.yml bash: Thu Nov 7 23:37:18 CST 2019 5 years ago
composer.json bash: Thu Dec 5 04:55:11 CST 2019 4 years ago
composer.lock bash: Thu Dec 5 04:55:11 CST 2019 4 years ago
package-lock.json bash: Fri Dec 6 02:46:54 CST 2019 4 years ago
package.json bash: Sun Dec 8 21:47:04 CST 2019 4 years ago
push.sample.sh bash: Sat Nov 9 21:37:16 CST 2019 5 years ago
tsconfig.json bash: Thu Nov 7 23:37:18 CST 2019 5 years ago
webpack.common.js bash: Sun Dec 8 21:47:04 CST 2019 4 years ago
webpack.config.js bash: Fri Dec 6 02:46:54 CST 2019 4 years ago
webpack.dev.js bash: Fri Dec 6 02:46:54 CST 2019 4 years ago
webpack.prod.js bash: Fri Dec 6 02:46:54 CST 2019 4 years ago

README.md

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 plugin WPGraphQL (for GraphQL API support), then active the theme in WordPress dashboard after compiling.

Compile

npm i -g webpack-cli
npm 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