Skip to content

Commit a26cb10

Browse files
authored
Merge pull request #64 from uicrooks/dev
v2.5.0
2 parents 7f7fc94 + 316b026 commit a26cb10

File tree

12 files changed

+199
-116
lines changed

12 files changed

+199
-116
lines changed

.config/webpack/webpack.common.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ module.exports = {
1414
extensions: ['*', '.js', '.vue', '.json'],
1515
alias: {
1616
'vue$': 'vue/dist/vue.esm.js',
17-
'@': path.resolve(__dirname, '../../src/')
17+
'@': path.resolve(__dirname, '../../src/'),
18+
'@shopify': path.resolve(__dirname, '../../shopify/')
1819
}
1920
},
2021
module: {

.config/webpack/webpack.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = merge(common, {
88
mode: 'development',
99
entry: [
1010
path.resolve(__dirname, '../../src/main.js'),
11-
path.resolve(__dirname, '../../node_modules/shopify-reloadr/client') // add reloadr to the bundle
11+
path.resolve(__dirname, '../../node_modules/shopify-theme-lab-reloader/client.autoload') // add reloader to the bundle
1212
],
1313
module: {
1414
rules: [

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ Shopify Theme Lab is a customizable modular development environment for blazing-
7878
| - | - | - |
7979
| [Shopify Theme Lab](https://github.com/uicrooks/shopify-theme-lab) | <img src="https://img.shields.io/github/package-json/v/uicrooks/shopify-theme-lab?color=%236e78ff"> | Modular development environment for blazing-fast Shopify theming |
8080
| [Shopify Theme Lab CLI](https://github.com/uicrooks/shopify-theme-lab-cli) | <img src="https://img.shields.io/github/package-json/v/uicrooks/shopify-theme-lab-cli?color=%236e78ff"> | Command Line Interface for Shopify Theme Lab |
81+
| [Shopify Theme Lab Plugins](https://github.com/uicrooks/shopify-theme-lab-plugins) | <img src="https://img.shields.io/static/v1?label=version&message=misc&color=%236e78ff"> | Official Shopify Theme Lab plugins |
8182
| [Shopify Settings Control](https://github.com/uicrooks/shopify-settings-control) | <img src="https://img.shields.io/github/package-json/v/uicrooks/shopify-settings-control?color=%236e78ff"> | Automatic Git version control for Shopify `settings_data.json` |
82-
| [Shopify Foundation Theme](https://github.com/uicrooks/shopify-foundation-theme) | <img src="https://img.shields.io/github/package-json/v/uicrooks/shopify-foundation-theme?color=%236e78ff"> | A modern Shopify starter theme built with Vue and Tailwind CSS
83+
| [Shopify Foundation Theme](https://github.com/uicrooks/shopify-foundation-theme) | <img src="https://img.shields.io/github/package-json/v/uicrooks/shopify-foundation-theme?color=%236e78ff"> | A modern Shopify starter theme built with Vue and Tailwind CSS |
8384
<!-- ecosystem (end) -->
8485

8586
<!-- features (start) -->
@@ -111,8 +112,8 @@ Shopify Theme Lab is a customizable modular development environment for blazing-
111112
- [Browserslist](https://github.com/browserslist/browserslist)
112113
- [Autoprefixer](https://github.com/postcss/autoprefixer)
113114
- [PurgeCSS](https://tailwindcss.com/docs/optimizing-for-production#removing-unused-css) integrated in Tailwind CSS
114-
- Shopify remote theme auto-reloading with [shopify-reloadr](https://github.com/uicrooks/shopify-reloadr)
115-
- Auto-loading of Vue `components`, `mixins`, `directives` and `filters` as well as Vuex `modules` with [require.context](https://webpack.js.org/guides/dependency-management/#requirecontext)
115+
- Shopify remote theme auto-reloading with [shopify-theme-lab-reloader](https://github.com/uicrooks/shopify-theme-lab-plugins/tree/master/packages/reloader)
116+
- Auto-loading of Vue `components`, `mixins` and `directives` as well as Vuex `modules` with [require.context](https://webpack.js.org/guides/dependency-management/#requirecontext)
116117
- Clean [config structure](.config/)
117118
- Easily adjustable/extendable configurations
118119
<!-- features (end) -->
@@ -503,10 +504,10 @@ shopify-theme-lab/ 📁 root of your Shopify Theme Lab project
503504

504505
| Task | Description |
505506
| - | - |
506-
| start | run `dev`, `reloadr` and `shopify:watch` tasks simultaneously in parallel |
507+
| start | run `dev`, `reloader` and `shopify:watch` tasks simultaneously in parallel |
507508
| dev | bundle and watch for changes in `src/` files with webpack |
508509
| build | create minified production files for Shopify in `shopify/assets/` directory |
509-
| reloadr | run an HTTP server and WebSocket server for remote auto-reloading |
510+
| reloader | run an HTTP server and WebSocket server for remote auto-reloading |
510511
| lint | run `lint:js` and `lint:css` tasks in sequence |
511512
| lint:js | lint `.js` and `.vue` files inside the `src/` directory |
512513
| lint:css | lint the `<style></style>` section of `.vue` files, `.css`, `.sass` and `.scss` files inside the `src/` directory |
@@ -536,12 +537,12 @@ By running `shopify:init` and entering credentials, the task initializes a new t
536537
### Shopify + webpack
537538
- All webpack configs are inside `.config/webpack/` directory
538539
- [main.js](src/main.js) is webpack's main entry point
539-
- All Vue related files are auto-loaded by webpack with [require.context](https://webpack.js.org/guides/dependency-management/#requirecontext) - Vue components, Vuex modules, as well as mixins, directives and filters with `global` in their filename. Everything is defined in `src/main.js`
540+
- All Vue related files are auto-loaded by webpack with [require.context](https://webpack.js.org/guides/dependency-management/#requirecontext) - Vue components, Vuex modules, as well as mixins and directives with `global` in their filename. Everything is defined in `src/main.js`
540541
- 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 (You can use Liquid templating while hooking in Vue functionality).
541542
- The webpack bundle and all other assets are outputted to `shopify/assets/` directory. This directory is cleaned on every build. If you want to keep certain files add `static` to their filenames: `myfile.static.png`
542543

543544
### Shopify remote auto-reloading
544-
While `npm run start` task is running: 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 (specified in `package.json`) and the [shopify-reloadr](https://github.com/uicrooks/shopify-reloadr) package reloads all connected Shopify store sites. *Open the web console to check if a site is connected.*
545+
While `npm run start` task is running: 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 (specified in `package.json`) and the [shopify-theme-lab-reloader](https://github.com/uicrooks/shopify-theme-lab-plugins/tree/master/packages/reloader) package reloads all connected Shopify store sites. *Open the web console to check if a site is connected.*
545546
<!-- development environment concepts (end) -->
546547

547548
<!-- common pitfalls (start) -->

0 commit comments

Comments
 (0)