@bigcommerce/stencil-cli 5.2.5 → 5.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/template-assembler.js +1 -1
- package/package.json +21 -22
- package/server/plugins/router/router.module.js +4 -1
- package/CHANGELOG.md +0 -560
- package/package-lock.json +0 -15659
|
@@ -26,7 +26,7 @@ const applyExternalPath = (templateName, templates) => {
|
|
|
26
26
|
const replacePartialNames = (content, partialRoute) => {
|
|
27
27
|
return content.replace(
|
|
28
28
|
includeRegex,
|
|
29
|
-
(__, partialName) => `{{> ${defineBaseRoute(partialRoute)}/${partialName} }}`,
|
|
29
|
+
(__, partialName) => `{{> '${defineBaseRoute(partialRoute)}/${partialName}' }}`,
|
|
30
30
|
);
|
|
31
31
|
};
|
|
32
32
|
const trimPartial = (partial) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigcommerce/stencil-cli",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.1",
|
|
4
4
|
"description": "CLI tool to run BigCommerce Stores locally for theme development.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"engines": {
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"lint": "eslint . && prettier --check . --ignore-unknown",
|
|
12
12
|
"lint-and-fix": "eslint . --fix && prettier --write . --ignore-unknown",
|
|
13
13
|
"test": "jest",
|
|
14
|
-
"test-with-coverage": "jest --coverage --verbose"
|
|
14
|
+
"test-with-coverage": "jest --coverage --verbose",
|
|
15
|
+
"release": "semantic-release"
|
|
15
16
|
},
|
|
16
17
|
"bin": {
|
|
17
18
|
"stencil": "./bin/stencil.js",
|
|
@@ -46,13 +47,13 @@
|
|
|
46
47
|
"package-lock.json"
|
|
47
48
|
],
|
|
48
49
|
"dependencies": {
|
|
49
|
-
"@bigcommerce/stencil-paper": "4.
|
|
50
|
+
"@bigcommerce/stencil-paper": "4.2.1",
|
|
50
51
|
"@bigcommerce/stencil-styles": "4.0.0",
|
|
51
|
-
"@hapi/boom": "^
|
|
52
|
-
"@hapi/glue": "^
|
|
53
|
-
"@hapi/h2o2": "^
|
|
54
|
-
"@hapi/hapi": "^
|
|
55
|
-
"@hapi/inert": "^
|
|
52
|
+
"@hapi/boom": "^10.0.0",
|
|
53
|
+
"@hapi/glue": "^8.0.0",
|
|
54
|
+
"@hapi/h2o2": "^9.1.0",
|
|
55
|
+
"@hapi/hapi": "^20.2.2",
|
|
56
|
+
"@hapi/inert": "^6.0.5",
|
|
56
57
|
"@octokit/rest": "^18.0.6",
|
|
57
58
|
"ajv": "^6.12.5",
|
|
58
59
|
"archiver": "^5.0.2",
|
|
@@ -67,6 +68,7 @@
|
|
|
67
68
|
"front-matter": "^4.0.2",
|
|
68
69
|
"glob": "^7.1.6",
|
|
69
70
|
"graceful-fs": "^4.2.4",
|
|
71
|
+
"husky": "^8.0.1",
|
|
70
72
|
"image-size": "^0.9.1",
|
|
71
73
|
"inquirer": "^8.1.5",
|
|
72
74
|
"js-yaml": "^4.1.0",
|
|
@@ -86,8 +88,14 @@
|
|
|
86
88
|
"yauzl": "^2.10.0"
|
|
87
89
|
},
|
|
88
90
|
"devDependencies": {
|
|
89
|
-
"@commitlint/cli": "^
|
|
90
|
-
"@commitlint/config-conventional": "^
|
|
91
|
+
"@commitlint/cli": "^17.1.2",
|
|
92
|
+
"@commitlint/config-conventional": "^17.1.0",
|
|
93
|
+
"@semantic-release/changelog": "^6.0.1",
|
|
94
|
+
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
95
|
+
"@semantic-release/git": "^10.0.1",
|
|
96
|
+
"@semantic-release/github": "^8.0.6",
|
|
97
|
+
"@semantic-release/npm": "^9.0.1",
|
|
98
|
+
"@semantic-release/release-notes-generator": "^10.0.3",
|
|
91
99
|
"axios-mock-adapter": "^1.21.2",
|
|
92
100
|
"conventional-changelog-cli": "^2.2.2",
|
|
93
101
|
"eslint": "^7.10.0",
|
|
@@ -97,18 +105,9 @@
|
|
|
97
105
|
"eslint-plugin-jest": "^24.0.2",
|
|
98
106
|
"eslint-plugin-node": "^11.1.0",
|
|
99
107
|
"eslint-plugin-prettier": "^3.1.4",
|
|
100
|
-
"husky": "^4.3.0",
|
|
101
108
|
"jest": "^27.5.1",
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
|
|
105
|
-
"husky": {
|
|
106
|
-
"hooks": {
|
|
107
|
-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
|
108
|
-
"pre-commit": "lint-staged"
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
"lint-staged": {
|
|
112
|
-
"*": "npm run lint-and-fix"
|
|
109
|
+
"prettier": "2.1.2",
|
|
110
|
+
"semantic-release": "^19.0.5",
|
|
111
|
+
"semantic-release-github-pullrequest": "^1.3.0"
|
|
113
112
|
}
|
|
114
113
|
}
|
|
@@ -32,7 +32,10 @@ function register(server, options) {
|
|
|
32
32
|
return h.continue;
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
server.dependency(
|
|
35
|
+
server.dependency(
|
|
36
|
+
['@hapi/inert', '@hapi/h2o2', 'Renderer', 'ThemeAssets'],
|
|
37
|
+
internals.registerRoutes,
|
|
38
|
+
);
|
|
36
39
|
}
|
|
37
40
|
|
|
38
41
|
internals.registerRoutes = (server) => {
|