Skip to content

Commit

Permalink
merged master and fixed conflict in yarn.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
miketalley committed May 7, 2021
2 parents 53faa4e + 5ce71cc commit 66028cc
Show file tree
Hide file tree
Showing 6 changed files with 153 additions and 574 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"eslint": "^6.5.1",
"husky": "^1.3.1",
"lerna": "^4.0.0",
"lint-staged": "^8.1.4",
"lint-staged": "^10.5.4",
"madge": "^4.0.1",
"prettier": "^1.19.1"
},
Expand Down
1 change: 1 addition & 0 deletions packages/cli-lib/api/appPipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ async function deployApp(accountId, appFolderPath) {
async function deployAppSync(accountId, appFolderPath) {
return http.post(accountId, {
uri: `${APP_PIPELINE_API_PATH}/deploy/sync`,
timeout: 60000,
body: {
appPath: appFolderPath,
},
Expand Down
4 changes: 3 additions & 1 deletion packages/cli-lib/lib/__tests__/uploadFolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ describe('uploadFolder', () => {
'folder/templates/blog.html',
'folder/css/file.css',
'folder/js/file.js',
'folder/fields.json',
'folder/images/image.png',
'folder/images/image.jpg',
'folder/sample.module/module.css',
Expand Down Expand Up @@ -41,11 +42,12 @@ describe('uploadFolder', () => {
'folder/js/file.js',
'folder/templates/blog.html',
'folder/templates/page.html',
'folder/fields.json',
];

await uploadFolder(accountId, src, dest, { mode: 'publish' });

expect(upload).toReturnTimes(10);
expect(upload).toReturnTimes(11);

uploadedFilesInOrder.forEach((file, index) => {
expect(upload).nthCalledWith(index + 1, accountId, file, file, {
Expand Down
5 changes: 4 additions & 1 deletion packages/cli-lib/lib/uploadFolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function getFilesByType(files) {
const cssAndJsFiles = [];
const otherFiles = [];
const templateFiles = [];
const jsonFiles = [];

files.forEach(file => {
const parts = splitLocalPath(file);
Expand All @@ -40,12 +41,14 @@ function getFilesByType(files) {
cssAndJsFiles.push(file);
} else if (extension === 'html') {
templateFiles.push(file);
} else if (extension === 'json') {
jsonFiles.push(file);
} else {
otherFiles.push(file);
}
});

return [otherFiles, moduleFiles, cssAndJsFiles, templateFiles];
return [otherFiles, moduleFiles, cssAndJsFiles, templateFiles, jsonFiles];
}
/**
*
Expand Down
3 changes: 2 additions & 1 deletion packages/webpack-cms-plugins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ module.exports = ({ account, autoupload }) => ({
});
```

3. Run `webpack --watch --env.account 123 --env.autoupload` to compile your project and automatically upload assets.
3. Run `webpack --watch --env.account 123 --env.autoupload` to compile your project and automatically upload assets. Replace `123` with your unique Hub ID.

Loading

0 comments on commit 66028cc

Please sign in to comment.