A console tool for interacting with Bizweb Theme Assets
- Node.js 0.10.22+ (check and upgrade Node.js here)
- Bizweb Theme Tool
├── 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/
Navigate to your theme root in Terminal.
npm install -g grunt-cli
You may have to use sudo
for this.
{
"name": "BwTheme",
"devDependencies": {
"grunt":"~1.0.0",
"glob":"~7.0.6",
"growl":"~1.9.2",
"grunt-contrib-watch":"~1.0.0",
"grunt-bizweb":"*"
}
}
grunt.initConfig({
bizweb: {
options: {
api_key: "5ed23438423448e7bbe16cb7d641eb31",
password: "c27928e47ddf4876865bba964c7fb4c2",
url: "only-one3.bizwebvietnam.net",
base: 'theme',
theme: '44467',
sync: '44467'
}
}
npm install
grunt
That’s it. Gruntfile.js will run both grunt watch
to upload new theme files to your store.
Navigate to your theme root in Terminal.
Live sync.
grunt watch
Download theme.
grunt bizweb:download
grunt bizweb:sync
Get all themes.
grunt bizweb:themes
Upload theme.
grunt bizweb:upload
Delete theme.
grunt bizweb:delete
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
Copyright (c) 2016 Bizweb. Released under the MIT-LICENSE.
</div>