Skip to content

Commit

Permalink
Merge pull request #5 from sergejcodes/dev
Browse files Browse the repository at this point in the history
dev
  • Loading branch information
sergejcodes authored Oct 13, 2020
2 parents 53c7ffa + dc0af87 commit 90db425
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .config/webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = {
plugins: [
new ProgressBarPlugin(),
/**
* dont clean files with 'static' keyword in them
* don't clean files with 'static' keyword in their filename
* docs: https://github.com/johnagan/clean-webpack-plugin
*/
new CleanWebpackPlugin({
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Shopify Starterkit

Shopify Starterkit is a development environment for rapid Shopify theme development with Vue and Tailwind CSS 🔥
Shopify Starterkit is a development environment for fast Shopify theme development with Liquid, Vue and Tailwind CSS 🔥
The kit provides an easy way to build a custom Shopify theme from scratch. It contains a minimal styled boilerplate as a starting point. Everything is pre-configured and should work out of the box.

## Features
Expand Down Expand Up @@ -58,13 +58,13 @@ $ yarn deploy:live
## Tasks
| Task | Description |
| - | - |
| start | run `dev`, `reloadr` and `shopify:watch` tasks in parallel |
| start | run `dev`, `reloadr` and `shopify:watch` tasks simultaneously in parallel |
| dev | bundle and watch for changes in `src/` files with webpack |
| build | create dist files for Shopify in `shopify/assets/` directory with webpack |
| build | create minified production files for Shopify in `shopify/assets/` directory |
| 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 | initialize theme on remote shopware store and create a shopify config file for specified environment |
| shopify:init | initialize theme on remote shopify store and create a shopify config file for specified environment |
| deploy:dev | upload the `shopify/` directory to the dev store |
| deploy:live | upload the `shopify/` directory to the live store |
| settings:dev | download `settings_data.json` from dev store |
Expand All @@ -78,7 +78,7 @@ $ yarn deploy:live
- Inside the `src/` directory are: a tailwind config, scss files and vue related files.
- All vue related files are auto-loaded by webpack with [require.context](https://webpack.js.org/guides/dependency-management/#requirecontext) - vue components, vuex modules, mixins with `global` in their filename and directives with `global` in their filename.
- Vue components can be either used as regular single-file-components or as [renderless components](https://css-tricks.com/building-renderless-vue-components) without `<template></template>` tags.
- The webpack bundle and all other assets are outputted to `shopify/assets` directory.
- The webpack bundle and all other assets are outputted to `shopify/assets/` directory.
- The `shopify/` directory is being watched for changes and all changed files are uploaded to the Shopify remote server. After the upload is finished, a request is sent to a localhost:port address and the [reloadr script](.config/reloadr/) reloads the remote store (if it's open in the browser).

<img width="100%" src=".config/.readme/auto-reload-demo.gif" alt="Shopify Starterkit auto reload demo">
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "shopify-starterkit",
"description": "Environment for rapid Shopify theme development with Vue and Tailwind CSS",
"description": "Modern stack for Shopify theme development with Liquid, Vue and Tailwind CSS.",
"author": "Sergej Samsonenko",
"version": "1.2.0",
"version": "1.2.1",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion shopify/layout/theme.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</head>

<body
class="template-{{ request.page_type | handle }} min-min-h-screen overflow-x-hidden overflow-y-scroll"
class="template-{{ request.page_type | handle }} min-h-screen overflow-x-hidden overflow-y-scroll"
style="background: {{ settings.theme_background_color }};"
>
<div id="app" class="min-h-screen flex flex-col">
Expand Down
6 changes: 6 additions & 0 deletions src/vue/components/render/system-info.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@

<script>
export default {
/**
* if a name is defined, you can use the component as <system-info></system-info> in .liquid files,
* otherwise the component will be named after the file path starting from components/ directory
* for this file it is: <render-system-info></render-system-info>
*/
// name: 'systemInfo',
props: {
shopifyData: {
type: Object,
Expand Down

0 comments on commit 90db425

Please sign in to comment.