Skip to content

Commit

Permalink
Modified Slate tools to use modified Packages
Browse files Browse the repository at this point in the history
Added Snippet options
  • Loading branch information
gonzacaminos committed Feb 20, 2024
1 parent 22d1792 commit b7e8626
Showing 2 changed files with 21 additions and 6 deletions.
19 changes: 13 additions & 6 deletions packages/slate-tools/package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
{
"name": "@shopify/slate-tools",
"version": "1.0.0-beta.19",
"name": "@gbonini-eureka/slate-tools",
"version": "1.0.0-beta.20",
"description": "A modern development toolkit for Shopify themes",
"repository": "https://github.com/Shopify/slate/tree/1.x/packages/slate-tools",
"repository": {
"type": "git",
"url": "https://github.com/Shopify/slate/tree/1.x/packages/slate-tools"
},
"license": "MIT",
"author": "Shopify",
"bugs": {
"url": "https://github.com/Shopify/slate/issues"
},
"bin": {
"slate-tools": "./cli/index.js"
"slate-tools": "cli/index.js"
},
"engine": ">=8.9.4",
"dependencies": {
"@shopify/html-webpack-liquid-asset-tags-plugin": "1.0.0-beta.11",
"@shopify/slate-analytics": "1.0.0-beta.16",
"@gbonini-eureka/slate-analytics": "1.0.0-beta.17",
"@shopify/slate-config": "1.0.0-beta.14",
"@shopify/slate-cssvar-loader": "1.0.0-beta.16",
"@shopify/slate-env": "1.0.0-beta.16",
"@shopify/slate-liquid-asset-loader": "1.0.0-beta.11",
"@shopify/slate-sections-plugin": "1.0.0-beta.19",
"@shopify/slate-sync": "1.0.0-beta.16",
"@gbonini-eureka/slate-sync": "1.0.0-beta.17",
"@shopify/slate-tag-webpack-plugin": "1.0.0-beta.14",
"@shopify/slate-translations": "1.0.0-beta.19",
"@shopify/theme-lint": "^2.0.0",
@@ -90,5 +93,9 @@
"publishConfig": {
"access": "public",
"@shopify:registry": "https://registry.npmjs.org"
},
"main": "slate-tools.schema.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
}
}
8 changes: 8 additions & 0 deletions packages/slate-tools/tools/dev-server/index.js
Original file line number Diff line number Diff line change
@@ -35,6 +35,14 @@ class DevServer {
delete proxyRes.headers['strict-transport-security'];
},
],
},
snippetOptions: {
rule: {
match: /<head[^>]*>/i,
fn: function(snippet, match) {
return match + snippet;
}
}
},
https: {key: getSSLKeyPath(), cert: getSSLCertPath()},
logLevel: 'silent',

0 comments on commit b7e8626

Please sign in to comment.