Skip to content

Commit

Permalink
Merge pull request #3 from sergejcodes/dev
Browse files Browse the repository at this point in the history
cosmetics and readme update
  • Loading branch information
sergejcodes authored Sep 15, 2020
2 parents e808d5c + 6c06422 commit 4c3e3c2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .config/shopify/shopify.init.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ const initTheme = async () => {
})

// write shopify config file
try{
try {
await fs.outputFile(configPath, yamlConfig)
} catch (e) {
console.error(chalk.red(e))
process.exit(1)
}

// write settings_data.json to shopify/config
try{
try {
const settingsData = {
current: 'Default',
presets: {
Expand All @@ -91,7 +91,7 @@ const initTheme = async () => {
}

// upload shopify theme to remote
try{
try {
await themeKit.command('deploy', {
config: configPath,
env: options.env
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ The kit provides an easy way to build a custom Shopify theme from scratch. It co
- Webpack
- ESLint
- Auto-Reload
- Easily expandable

## System requirements
- Node.js
Expand Down Expand Up @@ -60,6 +61,7 @@ $ yarn deploy:live
| dev | bundle and watch for changes in `src/` files with webpack |
| build | create dist files for Shopify in `shopify/assets/` directory with webpack |
| reloadr | run a http server and websocket server for remote auto reloading |
| lint | lint `js` and `vue` files inside the`src/` directory |
| shopify:watch | watch for changes in the `shopify/` directory and upload to the dev store |
| shopify:init | initializes theme on remote shopware store and creates a shopify config file for specified environment |
| deploy:dev | upload the `shopify/` directory to the dev store |
Expand All @@ -68,4 +70,7 @@ $ yarn deploy:live
| settings:live | download `settings_data.json` from live store |
| open:dev | open the url of the dev store |
| open:live | open the url of the live store |
| lint | lint `js` and `vue` files inside the`src/` directory |

## Limitations
- Vue components can only be used in `<kebab-case />`
- `<style></style>` will be removed on mount inside vue components (basically everything inside #app), use `<component is="style"><componet>` instead
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "shopify-starterkit",
"description": "Environment for rapid Shopify theme development with Vue and Tailwind CSS",
"author": "Sergej Samsonenko",
"version": "1.1.0",
"version": "1.1.1",
"license": "MIT",
"repository": {
"type": "git",
Expand Down

0 comments on commit 4c3e3c2

Please sign in to comment.