Skip to content

Commit 7e740ec

Browse files
authored
Merge pull request #6 from sergejcodes/dev
update
2 parents 90db425 + 80df266 commit 7e740ec

File tree

5 files changed

+82
-18
lines changed

5 files changed

+82
-18
lines changed

.config/reloadr/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ Settings and ports for the script can be adjusted in the `packages.json`.
1212
| Option | Description |
1313
| - | - |
1414
| serverPort | the localhost port `shopify:watch` task and `reloadr.server.js` use to communicate |
15-
| websoketPort | the localhost port `reloadr.server.js` and `reloader.client.js` use to communicate |
15+
| websocketPort | the localhost port `reloadr.server.js` and `reloader.client.js` use to communicate |
1616
| delay | auto reload needs a slight delay before reloading the remote site, so all newly uploaded files will be loaded. Values between `1500`ms and `2000`ms seem to work well |

.config/webpack/webpack.prod.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ module.exports = merge(common, {
1313
loader: 'babel-loader',
1414
exclude: /node_modules/,
1515
options: {
16-
presets: [ '@babel/preset-env' ]
16+
presets: [ '@babel/preset-env' ],
17+
plugins: [ '@babel/plugin-transform-runtime' ]
1718
}
1819
},
1920
{

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ $ yarn deploy:live
5252
| Directory | Description |
5353
| - | - |
5454
| .config | contains multiple configurations for the development environment |
55-
| shopify | contains Shopify theme templates and config files |
55+
| shopify | contains Shopify `.liquid` and config files |
5656
| src | contains `tailwind`, `vue` and `scss` files |
5757

5858
## Tasks
@@ -79,7 +79,7 @@ $ yarn deploy:live
7979
- 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.
8080
- 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.
8181
- The webpack bundle and all other assets are outputted to `shopify/assets/` directory.
82-
- 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).
82+
- 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 and connected via websockets).
8383

8484
<img width="100%" src=".config/.readme/auto-reload-demo.gif" alt="Shopify Starterkit auto reload demo">
8585

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "shopify-starterkit",
33
"description": "Modern stack for Shopify theme development with Liquid, Vue and Tailwind CSS.",
44
"author": "Sergej Samsonenko",
5-
"version": "1.2.1",
5+
"version": "1.2.2",
66
"license": "MIT",
77
"repository": {
88
"type": "git",
@@ -15,7 +15,7 @@
1515
"config": {
1616
"reloadr": {
1717
"serverPort": 5000,
18-
"websoketPort": 5050,
18+
"websocketPort": 5050,
1919
"delay": 2000
2020
}
2121
},
@@ -36,12 +36,13 @@
3636
},
3737
"dependencies": {
3838
"axios": "^0.20.0",
39-
"tailwindcss": "^1.8.10",
39+
"tailwindcss": "^1.9.6",
4040
"vue": "^2.6.12",
4141
"vuex": "^3.5.1"
4242
},
4343
"devDependencies": {
4444
"@babel/core": "^7.11.6",
45+
"@babel/plugin-transform-runtime": "^7.12.1",
4546
"@babel/preset-env": "^7.11.5",
4647
"@shopify/themekit": "^1.1.6",
4748
"babel-loader": "^8.1.0",

yarn.lock

Lines changed: 73 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,13 @@
149149
dependencies:
150150
"@babel/types" "^7.10.4"
151151

152+
"@babel/helper-module-imports@^7.12.1":
153+
version "7.12.1"
154+
resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.12.1.tgz#1644c01591a15a2f084dd6d092d9430eb1d1216c"
155+
integrity sha512-ZeC1TlMSvikvJNy1v/wPIazCu3NdOwgYZLIkmIyAsGhqkNpiDoQQRmaCK8YP4Pq3GPTLPV9WXaPCJKvx06JxKA==
156+
dependencies:
157+
"@babel/types" "^7.12.1"
158+
152159
"@babel/helper-module-transforms@^7.10.4", "@babel/helper-module-transforms@^7.10.5", "@babel/helper-module-transforms@^7.11.0":
153160
version "7.11.0"
154161
resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.11.0.tgz#b16f250229e47211abdd84b34b64737c2ab2d359"
@@ -650,6 +657,16 @@
650657
dependencies:
651658
"@babel/helper-plugin-utils" "^7.10.4"
652659

660+
"@babel/plugin-transform-runtime@^7.12.1":
661+
version "7.12.1"
662+
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.12.1.tgz#04b792057eb460389ff6a4198e377614ea1e7ba5"
663+
integrity sha512-Ac/H6G9FEIkS2tXsZjL4RAdS3L3WHxci0usAnz7laPWUmFiGtj7tIASChqKZMHTSQTQY6xDbOq+V1/vIq3QrWg==
664+
dependencies:
665+
"@babel/helper-module-imports" "^7.12.1"
666+
"@babel/helper-plugin-utils" "^7.10.4"
667+
resolve "^1.8.1"
668+
semver "^5.5.1"
669+
653670
"@babel/plugin-transform-shorthand-properties@^7.10.4":
654671
version "7.10.4"
655672
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.10.4.tgz#9fd25ec5cdd555bb7f473e5e6ee1c971eede4dd6"
@@ -828,6 +845,15 @@
828845
lodash "^4.17.19"
829846
to-fast-properties "^2.0.0"
830847

848+
"@babel/types@^7.12.1":
849+
version "7.12.1"
850+
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.12.1.tgz#e109d9ab99a8de735be287ee3d6a9947a190c4ae"
851+
integrity sha512-BzSY3NJBKM4kyatSOWh3D/JJ2O3CVzBybHWxtgxnggaxEuaSTTDqeiSb/xk9lrkw2Tbqyivw5ZU4rT+EfznQsA==
852+
dependencies:
853+
"@babel/helper-validator-identifier" "^7.10.4"
854+
lodash "^4.17.19"
855+
to-fast-properties "^2.0.0"
856+
831857
"@eslint/eslintrc@^0.1.3":
832858
version "0.1.3"
833859
resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.1.3.tgz#7d1a2b2358552cc04834c0979bd4275362e37085"
@@ -1147,7 +1173,12 @@ acorn@^6.4.1:
11471173
resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.4.1.tgz#531e58ba3f51b9dacb9a6646ca4debf5b14ca474"
11481174
integrity sha512-ZVA9k326Nwrj3Cj9jlh3wGFutC2ZornPNARZwsNYqQYgN0EsV2d53w5RN/co65Ohn4sUAUtb1rSUAOD6XN9idA==
11491175

1150-
acorn@^7.0.0, acorn@^7.1.1, acorn@^7.4.0:
1176+
acorn@^7.0.0:
1177+
version "7.4.1"
1178+
resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa"
1179+
integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==
1180+
1181+
acorn@^7.1.1, acorn@^7.4.0:
11511182
version "7.4.0"
11521183
resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.0.tgz#e1ad486e6c54501634c6c397c5c121daa383607c"
11531184
integrity sha512-+G7P8jJmCHr+S+cLfQxygbWhXy+8YTVGzAkpEbcLo2mLoL7tij/VG41QSHACSf5QgYRhMZYHuNc6drJaO0Da+w==
@@ -2522,9 +2553,9 @@ caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001125:
25222553
integrity sha512-9f+r7BW8Qli917mU3j0fUaTweT3f3vnX/Lcs+1C73V+RADmFme+Ih0Br8vONQi3X0lseOe6ZHfsZLCA8MSjxUA==
25232554

25242555
caniuse-lite@^1.0.30001109:
2525-
version "1.0.30001143"
2526-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001143.tgz#560f2cfb9f313d1d7e52eb8dac0e4e36c8821c0d"
2527-
integrity sha512-p/PO5YbwmCpBJPxjOiKBvAlUPgF8dExhfEpnsH+ys4N/791WHrYrGg0cyHiAURl5hSbx5vIcjKmQAP6sHDYH3w==
2556+
version "1.0.30001154"
2557+
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001154.tgz#f3bbc245ce55e4c1cd20fa731b097880181a7f17"
2558+
integrity sha512-y9DvdSti8NnYB9Be92ddMZQrcOe04kcQtcxtBx4NkB04+qZ+JUWotnXBJTmxlKudhxNTQ3RRknMwNU2YQl/Org==
25282559

25292560
caseless@~0.12.0:
25302561
version "0.12.0"
@@ -2728,14 +2759,30 @@ color-string@^1.5.2:
27282759
color-name "^1.0.0"
27292760
simple-swizzle "^0.2.2"
27302761

2731-
color@^3.0.0, color@^3.1.2:
2762+
color-string@^1.5.4:
2763+
version "1.5.4"
2764+
resolved "https://registry.yarnpkg.com/color-string/-/color-string-1.5.4.tgz#dd51cd25cfee953d138fe4002372cc3d0e504cb6"
2765+
integrity sha512-57yF5yt8Xa3czSEW1jfQDE79Idk0+AkN/4KWad6tbdxUmAs3MvjxlWSWD4deYytcRfoZ9nhKyFl1kj5tBvidbw==
2766+
dependencies:
2767+
color-name "^1.0.0"
2768+
simple-swizzle "^0.2.2"
2769+
2770+
color@^3.0.0:
27322771
version "3.1.2"
27332772
resolved "https://registry.yarnpkg.com/color/-/color-3.1.2.tgz#68148e7f85d41ad7649c5fa8c8106f098d229e10"
27342773
integrity sha512-vXTJhHebByxZn3lDvDJYw4lR5+uB3vuoHsuYA5AKuxRVn5wzzIfQKGLBmgdVRHKTJYeK5rvJcHnrd0Li49CFpg==
27352774
dependencies:
27362775
color-convert "^1.9.1"
27372776
color-string "^1.5.2"
27382777

2778+
color@^3.1.2:
2779+
version "3.1.3"
2780+
resolved "https://registry.yarnpkg.com/color/-/color-3.1.3.tgz#ca67fb4e7b97d611dcde39eceed422067d91596e"
2781+
integrity sha512-xgXAcTHa2HeFCGLE9Xs/R82hujGtu9Jd9x4NW3T34+OMs7VoPsjwzRczKHvTAHeJwWFwX5j15+MgAppE8ztObQ==
2782+
dependencies:
2783+
color-convert "^1.9.1"
2784+
color-string "^1.5.4"
2785+
27392786
colorette@^1.2.1:
27402787
version "1.2.1"
27412788
resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.2.1.tgz#4d0b921325c14faf92633086a536db6e89564b1b"
@@ -4706,6 +4753,13 @@ is-color-stop@^1.0.0:
47064753
rgb-regex "^1.0.1"
47074754
rgba-regex "^1.0.0"
47084755

4756+
is-core-module@^2.0.0:
4757+
version "2.0.0"
4758+
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.0.0.tgz#58531b70aed1db7c0e8d4eb1a0a2d1ddd64bd12d"
4759+
integrity sha512-jq1AH6C8MuteOoBPwkxHafmByhL9j5q4OaPGdbuD+ZtQJVzH+i6E3BJDQcBA09k57i2Hh2yQbEG8yObZ0jdlWw==
4760+
dependencies:
4761+
has "^1.0.3"
4762+
47094763
is-data-descriptor@^0.1.4:
47104764
version "0.1.4"
47114765
resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56"
@@ -6969,13 +7023,21 @@ resolve-url@^0.2.1:
69697023
resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a"
69707024
integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=
69717025

6972-
resolve@^1.10.0, resolve@^1.14.2, resolve@^1.3.2:
7026+
resolve@^1.10.0, resolve@^1.3.2:
69737027
version "1.17.0"
69747028
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.17.0.tgz#b25941b54968231cc2d1bb76a79cb7f2c0bf8444"
69757029
integrity sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==
69767030
dependencies:
69777031
path-parse "^1.0.6"
69787032

7033+
resolve@^1.14.2, resolve@^1.8.1:
7034+
version "1.18.1"
7035+
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.18.1.tgz#018fcb2c5b207d2a6424aee361c5a266da8f4130"
7036+
integrity sha512-lDfCPaMKfOJXjy0dPayzPdF1phampNWr3qFCjAu+rw/qbQmr5jWH5xN2hwh9QKfw9E5v4hwV7A+jrCmL8yjjqA==
7037+
dependencies:
7038+
is-core-module "^2.0.0"
7039+
path-parse "^1.0.6"
7040+
69797041
responselike@1.0.2:
69807042
version "1.0.2"
69817043
resolved "https://registry.yarnpkg.com/responselike/-/responselike-1.0.2.tgz#918720ef3b631c5642be068f15ade5a46f4ba1e7"
@@ -7120,7 +7182,7 @@ semver-truncate@^1.1.2:
71207182
dependencies:
71217183
semver "^5.3.0"
71227184

7123-
"semver@2 || 3 || 4 || 5", semver@^5.3.0, semver@^5.4.1, semver@^5.5.0, semver@^5.6.0:
7185+
"semver@2 || 3 || 4 || 5", semver@^5.3.0, semver@^5.4.1, semver@^5.5.0, semver@^5.5.1, semver@^5.6.0:
71247186
version "5.7.1"
71257187
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"
71267188
integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==
@@ -7682,10 +7744,10 @@ table@^5.2.3:
76827744
slice-ansi "^2.1.0"
76837745
string-width "^3.0.0"
76847746

7685-
tailwindcss@^1.8.10:
7686-
version "1.8.10"
7687-
resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-1.8.10.tgz#945ef151c401c04a1c95e6a6bc747387a8d1b9dc"
7688-
integrity sha512-7QkERG/cWCzsuMqHMwjOaLMVixOGLNBiXsrkssxlE1aWfkxVbGqiuMokR2162xRyaH2mBIHKxmlf1qb3DvIPqw==
7747+
tailwindcss@^1.9.6:
7748+
version "1.9.6"
7749+
resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-1.9.6.tgz#0c5089911d24e1e98e592a31bfdb3d8f34ecf1a0"
7750+
integrity sha512-nY8WYM/RLPqGsPEGEV2z63riyQPcHYZUJpAwdyBzVpxQHOHqHE+F/fvbCeXhdF1+TA5l72vSkZrtYCB9hRcwkQ==
76897751
dependencies:
76907752
"@fullhuman/postcss-purgecss" "^2.1.2"
76917753
autoprefixer "^9.4.5"

0 commit comments

Comments
 (0)