v2.0.0 Shopify Theme Lab 🧪
Shopify Starterkit is now Shopify Theme Lab
Shopify Theme Lab 2 has a much more customizable modular approach compared to the 1.x version.
By default, it's bundled with Vue.js
and Tailwind CSS
like the previous versions, but it's super easy to remove or replace them with any other framework.
All Changes
Shopify
shopify/
directory contains framework-agnostic.liquid
files- less template code compared to
1.x
versions - all
Vue.js
examples bundled into a single snippet
JavaScript
- Vue components are global across all
.liquid
and.vue
files - global Vue filters
- leaner Vue example-code and file count
- you can now remove Vue entirely and replace it with any other JavaScript framework
CSS
- all new Tailwind CSS 2
- by default, CSS with PostCSS +
PreCss(Removed in 2.1.0 and added postcss-preset-env) is used for styling - preprocessor support: SASS/SCSS, LESS and Stylus
- you can now remove Tailwind CSS entirely and replace it with any other CSS framework
Workflow
- all new webpack 5
- support for npm or yarn
- new Browserlist
.browserslistrc
configuration - new ESLintPlugin and updated
.eslintrc.js
configuration - updated
.config/
directory with a newplugins
directory - reloadr plugin now tries automatically to reconnect to base whenever the connection is lost
- cleaner console output
- git now tracks files with a
static
keyword in their filename inside theshopify/assets/
directory - updated READMEs with much more detailed instructions
Migrating from 1.x
- The easiest way to migrate is to set up a new project with the latest version of Shopify Theme Lab
- Copy your
shopify.dev.yml
and/orshopify.live.yml
to.config/shopify/
- Replace the
shopify/
andsrc/
directories with your code - Run
npm install sass sass-loader --save-dev
- Remove
future
configuration options fromtailwind.config.js
- Check Tailwind CSS 2 Upgrade Guide
- If you get any lint errors, you might need to adjust
.config/.eslintrc.js
or your code 😬
If you didn't add any new packages or didn't adjust the contents of the .config/
directory you're done.
view all changes: Pull request