https://github.com/codeandwander/chrispress
A Wordpress Boilerplate built with Webpack, Sass and Custom Fields
https://github.com/codeandwander/chrispress
Last synced: 2 months ago
JSON representation
A Wordpress Boilerplate built with Webpack, Sass and Custom Fields
- Host: GitHub
- URL: https://github.com/codeandwander/chrispress
- Owner: codeandwander
- License: gpl-2.0
- Created: 2017-07-24T11:46:24.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-24T11:46:56.000Z (almost 8 years ago)
- Last Synced: 2025-01-24T12:45:40.477Z (4 months ago)
- Language: PHP
- Size: 2.19 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chrispress
### Installation
Clone the repo into your Wordpress themes directory and activate it via the admin dashboard.
```
cd wordpress/wp-content/themes
git clone https://github.com/codeandwander/chrispress.git
```Install dependencies
```
npm install
```You may need to install Webpack globally `npm install webpack -g`
#### Development
Webpack bundles all JavaScript files saved in the `/js/_chrispress` directory. Use `import` in `index.js` to include new JS files. i.e `import './_chrispress/modal.js'`.
Bundled JS file is `index.min.js`
Webpack also bundles Sass (SCSS) into CSS from the same `index.js` file.
```
npm run dev
```#### Production
This command minifies and mangles JS and CSS for the moment.
```
npm run prod
```
P.S Generated a skeleton theme from [Underscores](https://underscores.me/) , so there's still a lot of 💩 laying around...