Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

egany/bizweb-theme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

2 Commits

Repository files navigation

bizweb_theme

A console tool for interacting with Bizweb Theme Assets

Requirements

Basic theme structure

├── assets/
├── layout/
├── snippets/
├── templates/
│
├── // Non-theme files/folders (Theme Tool, Grunt, Gulp, etc.)
├── config.yml
├── css/
├── Gemfile
├── Gruntfile.js
├── package.json
├── gulpfile.js
└── node_modules/

Grunt.js

Navigate to your theme root in Terminal.

1. Install grunt globally

npm install -g grunt-cli

You may have to use sudo for this.

2. Create this package.json file in your theme’s root

{
 "name": "BwTheme",
 "devDependencies": {
 "grunt":"~1.0.0",
 "glob":"~7.0.6",
 "growl":"~1.9.2",
 "grunt-contrib-watch":"~1.0.0",
 "grunt-bizweb":"*"
 }
}

3. grunt config

grunt.initConfig({
 bizweb: {
 options: {
 api_key: "5ed23438423448e7bbe16cb7d641eb31",
 password: "c27928e47ddf4876865bba964c7fb4c2",
 url: "only-one3.bizwebvietnam.net",
 base: 'theme',
 theme: '44467',
 sync: '44467'
 }
 }

4. Install required packages

npm install

5. Run grunt

grunt

That’s it. Gruntfile.js will run both grunt watch to upload new theme files to your store.

Gruntfile.js

Navigate to your theme root in Terminal.

1. Run Grunt watch

Live sync.

grunt watch

2. Run Grunt bizweb:download

Download theme.

grunt bizweb:download

3. Run Grunt bizweb:sync

grunt bizweb:sync

4. Run Grunt bizweb:themes

Get all themes.

grunt bizweb:themes

5. Run Grunt bizweb:upload

Upload theme.

grunt bizweb:upload

6. Run Grunt bizweb:delete

Delete theme.

grunt bizweb:delete

7. Run Bizweb theme tool

Make sure your package.json file is setup properly. Docs here. In a separate them Terminal window that is still in your theme’s root, run:

grunt watch

License

Copyright (c) 2016 Bizweb. Released under the MIT-LICENSE.

</div>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

  • JavaScript 100.0%

AltStyle によって変換されたページ (->オリジナル) /