@magento/create-pwa 2.2.0-alpha.1 → 2.3.0-alpha.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.
|
@@ -48,11 +48,13 @@ Array [
|
|
|
48
48
|
},
|
|
49
49
|
Object {
|
|
50
50
|
"choices": Array [
|
|
51
|
+
"AC",
|
|
51
52
|
"EE",
|
|
53
|
+
"MOS",
|
|
52
54
|
"CE",
|
|
53
55
|
],
|
|
54
|
-
"default": "
|
|
55
|
-
"message": "Edition of the magento store (
|
|
56
|
+
"default": "AC",
|
|
57
|
+
"message": "Edition of the magento store (Adobe Commerce or Magento Open Source)",
|
|
56
58
|
"name": "backendEdition",
|
|
57
59
|
"type": "list",
|
|
58
60
|
},
|
|
@@ -90,9 +92,9 @@ Array [
|
|
|
90
92
|
],
|
|
91
93
|
Array [
|
|
92
94
|
"
|
|
93
|
-
Running command:
|
|
95
|
+
Running command:
|
|
94
96
|
|
|
95
|
-
[97mbuildpack create-project test --name \\"test\\" --author \\"Gooston <gooston@goosemail.com>\\" --template \\"@magento/venia-concept@8.0.0\\" --backend-url \\"https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/\\" --backend-edition \\"
|
|
97
|
+
[97mbuildpack create-project test --name \\"test\\" --author \\"Gooston <gooston@goosemail.com>\\" --template \\"@magento/venia-concept@8.0.0\\" --backend-url \\"https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/\\" --backend-edition \\"AC\\" --braintree-token \\"sandbox_8yrzsvtm_s2bg8fs563crhqzk\\" --npm-client \\"yarn\\" --no-install[39m
|
|
96
98
|
[97m[39m
|
|
97
99
|
[97m[39m",
|
|
98
100
|
],
|
|
@@ -29,7 +29,7 @@ jest.mock('inquirer', () => ({
|
|
|
29
29
|
template: '@magento/venia-concept@8.0.0',
|
|
30
30
|
backendUrl:
|
|
31
31
|
'https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/',
|
|
32
|
-
backendEdition: '
|
|
32
|
+
backendEdition: 'AC',
|
|
33
33
|
braintreeToken: 'sandbox_8yrzsvtm_s2bg8fs563crhqzk',
|
|
34
34
|
npmClient: 'yarn',
|
|
35
35
|
install: false
|
|
@@ -169,7 +169,7 @@ describe('Testing questions', () => {
|
|
|
169
169
|
question => question.name === 'backendEdition'
|
|
170
170
|
);
|
|
171
171
|
|
|
172
|
-
expect(backendEditionQuestion.default).toBe('
|
|
172
|
+
expect(backendEditionQuestion.default).toBe('AC');
|
|
173
173
|
});
|
|
174
174
|
|
|
175
175
|
test('validating npmClient default if process.env.npm_config_user_agent includes yarn', async () => {
|
|
@@ -221,7 +221,7 @@ test('should execute buildpack with answers provided', async () => {
|
|
|
221
221
|
await createPWA();
|
|
222
222
|
|
|
223
223
|
expect(execa.shell.mock.calls[0][0]).toMatchInlineSnapshot(
|
|
224
|
-
`"BUILDPACK_LOCATION create-project test --name \\"test\\" --author \\"Gooston <gooston@goosemail.com>\\" --template \\"@magento/venia-concept@8.0.0\\" --backend-url \\"https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/\\" --backend-edition \\"
|
|
224
|
+
`"BUILDPACK_LOCATION create-project test --name \\"test\\" --author \\"Gooston <gooston@goosemail.com>\\" --template \\"@magento/venia-concept@8.0.0\\" --backend-url \\"https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/\\" --backend-edition \\"AC\\" --braintree-token \\"sandbox_8yrzsvtm_s2bg8fs563crhqzk\\" --npm-client \\"yarn\\" --no-install"`
|
|
225
225
|
);
|
|
226
226
|
});
|
|
227
227
|
|
|
@@ -242,7 +242,7 @@ test('should not include customBackendUrl in shell script', async () => {
|
|
|
242
242
|
await createPWA();
|
|
243
243
|
|
|
244
244
|
expect(execa.shell.mock.calls[0][0]).toMatchInlineSnapshot(
|
|
245
|
-
`"BUILDPACK_LOCATION create-project test --name \\"test\\" --author \\"Gooston <gooston@goosemail.com>\\" --template \\"@magento/venia-concept@8.0.0\\" --backend-url \\"https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/\\" --backend-edition \\"
|
|
245
|
+
`"BUILDPACK_LOCATION create-project test --name \\"test\\" --author \\"Gooston <gooston@goosemail.com>\\" --template \\"@magento/venia-concept@8.0.0\\" --backend-url \\"https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/\\" --backend-edition \\"AC\\" --braintree-token \\"sandbox_8yrzsvtm_s2bg8fs563crhqzk\\" --npm-client \\"yarn\\" --no-install"`
|
|
246
246
|
);
|
|
247
247
|
});
|
|
248
248
|
|
package/lib/index.js
CHANGED
|
@@ -133,9 +133,9 @@ module.exports = async () => {
|
|
|
133
133
|
name: 'backendEdition',
|
|
134
134
|
type: 'list',
|
|
135
135
|
message:
|
|
136
|
-
'Edition of the magento store (
|
|
137
|
-
choices: ['EE', 'CE'],
|
|
138
|
-
default: '
|
|
136
|
+
'Edition of the magento store (Adobe Commerce or Magento Open Source)',
|
|
137
|
+
choices: ['AC', 'EE', 'MOS', 'CE'],
|
|
138
|
+
default: 'AC'
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
name: 'braintreeToken',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magento/create-pwa",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0-alpha.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"create-pwa-app",
|
|
23
23
|
"pwa-studio"
|
|
24
24
|
],
|
|
25
|
-
"author": "
|
|
25
|
+
"author": "Adobe Commerce",
|
|
26
26
|
"license": "(OSL-3.0 OR AFL-3.0)",
|
|
27
27
|
"bugs": {
|
|
28
28
|
"url": "https://github.com/magento/pwa-studio/issues"
|
|
29
29
|
},
|
|
30
30
|
"homepage": "https://github.com/magento/pwa-studio/tree/main/packages/create-pwa#readme",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@magento/pwa-buildpack": "11.
|
|
33
|
-
"@magento/venia-concept": "12.
|
|
32
|
+
"@magento/pwa-buildpack": "11.3.0-alpha.1",
|
|
33
|
+
"@magento/venia-concept": "12.4.0-alpha.1",
|
|
34
34
|
"chalk": "^2.4.2",
|
|
35
35
|
"change-case": "^3.1.0",
|
|
36
36
|
"compression": "~1.7.4",
|