cob-cli 2.33.0 → 2.33.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.
@@ -20,18 +20,18 @@ async function customize(filter, args) {
20
20
  if (args.cache && (filter || args.local || args.update)) throw new Error("\nError: ".red + " incompatible options. Use --cache as single argument\n");
21
21
  if (args.update && filter ) throw new Error("\nError: ".red + " incompatible options. Use --update without a <filter> \n");
22
22
 
23
+ if (!args.cache) checkRepoVersion();
24
+ if (!args.cache && !args.force) await checkWorkingCopyCleanliness();
25
+
23
26
  const customizations = await getCustomizationsList(filter, args)
24
27
  if(!args.local) {
25
28
  await downloadCustomizationFiles(customizations,args)
26
- // For --cache argument all work is done, just return
27
29
  if(args.cache) {
28
30
  console.log( colors.green("\nDone"), " - All configuration were downloaded to your local cache and you can now use the --local flag for any customization" );
31
+ // For --cache argument all work is done, just return
29
32
  return
30
33
  }
31
34
  }
32
-
33
- checkRepoVersion();
34
- if (!args.force) await checkWorkingCopyCleanliness();
35
35
  await applyCustomizations(customizations)
36
36
 
37
37
  console.log( colors.green("\nDone"), "\nCheck changes to your git working tree and try:" );
@@ -23,21 +23,12 @@ module.exports = env => {
23
23
  hot:false,
24
24
  port: 8040,
25
25
  host: "0.0.0.0",
26
- devMiddleware: {
27
- stats: {
28
- maxModules: 0 // Set the maximum number of modules to be shown
29
- }
30
- },
31
26
  setupMiddlewares: (middlewares, devServer) => {
32
- middlewares.push({
33
- name: 'hello-world-test-one',
34
- // `path` is optional
35
- path: '*',
27
+ middlewares.unshift({
28
+ name: 'redirect-localhost:8080/-to-localhost:8080/record/',
36
29
  middleware: (req, res, next) => {
37
30
  // Permite usar / ou /DASH_BOARD/ quando acedido directamente
38
- if(req.url != "/") {
39
- return next();
40
- }
31
+ if(req.url != "/") return next();
41
32
  res.redirect(`/recordm/`);
42
33
  },
43
34
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cob-cli",
3
- "version": "2.33.0",
3
+ "version": "2.33.1",
4
4
  "description": "A command line utility to help Cult of Bits partners develop with higher speed and reusing common code and best practices.",
5
5
  "preferGlobal": true,
6
6
  "repository": {