Compare commits

...

7 commits

Author SHA1 Message Date
Josh Larson c3ca6a4953 chore: Merge branch 'jl-stackblitz-publish' into stackblitz 2021-11-10 10:44:59 -06:00
Josh Larson c473939c07 chore: include .stackblitzrc file to ensure dev server starts 2021-11-10 10:44:37 -06:00
Josh Larson 67aae4ff1d feat: Test stackblitz 2021-11-10 10:40:55 -06:00
Josh Larson 4bba5ef106 chore: use correct path 2021-11-10 10:39:55 -06:00
Josh Larson 1b2757b968 chore: rename gitignore for stackblitz 2021-11-10 10:34:09 -06:00
Josh Larson bcdf91bdc0 chore: publish to stackblitz branch with new release 2021-11-10 10:18:53 -06:00
Josh Larson 959573f24a chore: hoist local flag to root project 2021-11-10 10:08:24 -06:00
6 changed files with 28 additions and 3 deletions

View file

@ -0,0 +1,21 @@
name: Publish to Stackblitz
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
name: Publish latest release to Stackblitz
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Rename gitignore
run: |
mv packages/dev/_gitignore packages/dev/.gitignore
- name: Push to stackblitz branch
uses: EndBug/add-and-commit@v7.4.0
with:
push: 'origin stackblitz --force'

View file

@ -12,7 +12,7 @@
},
"scripts": {
"dev-lib": "yarn workspace @shopify/hydrogen dev",
"dev-server": "VITE_INSPECT=1 yarn workspace dev dev",
"dev-server": "LOCAL_DEV=true VITE_INSPECT=1 yarn workspace dev dev",
"build": "run-s build-lib build-dev build-cli",
"build-lib": "yarn workspace @shopify/hydrogen build",
"build-cli": "yarn workspace @shopify/hydrogen-cli build",

View file

@ -12,7 +12,7 @@ const {copy} = require('./utils');
const devPath = path.resolve(__dirname, '..', '..', 'dev');
const templatePath = path.resolve(__dirname, '..', './template-hydrogen');
const skipFiles = ['node_modules', 'dist'];
const skipFiles = ['node_modules', 'dist', '.stackblitzrc'];
// Remove the symlink and replace it with a folder
fs.unlinkSync(templatePath);

View file

@ -0,0 +1,4 @@
{
"installDependencies": true,
"startCommand": "npm run dev"
}

View file

@ -5,7 +5,7 @@
"license": "MIT",
"private": true,
"scripts": {
"dev": "LOCAL_DEV=true vite",
"dev": "vite",
"lint": "npm-run-all lint:*",
"lint:js": "eslint --no-error-on-unmatched-pattern --ext .js,.ts,.jsx,.tsx src",
"lint:css": "stylelint ./src/**/*.{css,sass,scss}",