GithubHelp home page GithubHelp logo

matslom / oasis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eric-jackson/oasis

0.0 1.0 1.0 255 KB

Modern MyBB Theme Framework

License: MIT License

JavaScript 25.90% HTML 0.14% CSS 73.96%

oasis's Introduction

Clement

Modern MyBB theme that uses a modern workflow, with ES6, SCSS, and many more possibilities with npm.

Usage Example

Templates

Download the zip and extract it in your root/themes folder.

Run npm install inside the directory.

Edit ./tasks/templates/config.json with the appropriate information.

Initialize

Run npm run templates:file to download all templates from the database to your local installation.

Save to Database

Run npm run templates:db to save all local files to the database.

Delete

Run npm run templates:delete to delete all local files. BE CAREFUL.

Watch for Changes

Run npm run templates:watch to save template files to the database as they change.

CSS/JS/Images

Include the files ./dist/themes/oasis/css/main.min.css and ./dist/themes/oasis/js/main.min.js in your headerinclude somewhere after {$stylesheets}. (Optionally you can remove it entirely) For example:

<link rel="stylesheet" type="text/css" href="themes/oasis/dist/themes/oasis/css/main.min.css" />
<script type="text/javascript" src="themes/oasis/dist/themes/oasis/js/main.min.js"></script>

Set your image directory to themes/oasis/dist/themes/oasis/images and your logo directory to themes/oasis/dist/themes/oasis/images/logo.png

JS

Run gulp js to transpile your Javascript into ES5 and compress it. Make edits to the files in ./src/js.

CSS

Run gulp sass to transpile your Sass into CSS and compress it. Make edits to the files in ./src/sass.

Images

Run gulp img to compress your images. This compresses images in ./src/images and places them in ./dist/images.

Watch

Run gulp watch to automate both JS and CSS transpiling while you edit.

To Do

  • Use webpack
  • Convert theme files to files
  • Build theme file from local files
  • Database CSS to files
  • Add gulp build task

oasis's People

Contributors

eric-jackson avatar

Watchers

 avatar

Forkers

mycreedo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.