@omnia/tooling-vue 8.0.256-dev → 8.0.257-dev

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.
@@ -84,10 +84,30 @@ function getCert() {
84
84
  }
85
85
  });
86
86
  }
87
+ function generateCert() {
88
+ return new Promise((resolve, reject) => {
89
+ const spawn = require('child_process').spawn;
90
+ spawn('dotnet', [
91
+ 'dev-certs',
92
+ 'https',
93
+ '--clean'
94
+ ], { stdio: 'inherit', })
95
+ .on('exit', (code) => {
96
+ spawn('dotnet', [
97
+ 'dev-certs',
98
+ 'https',
99
+ '--trust'
100
+ ], { stdio: 'inherit', })
101
+ .on('exit', (code) => {
102
+ resolve();
103
+ });
104
+ });
105
+ });
106
+ }
87
107
  tooling_1.core.registerCleanTask({
88
108
  order: 2,
89
109
  task: function () {
90
- return new Promise(function (resolve, reject) {
110
+ return new Promise(async function (resolve, reject) {
91
111
  let appPath = (0, appdata_path_1.default)();
92
112
  let certFolderPath = path_1.default.join(appPath, "omnia", "https");
93
113
  const certName = "devcert";
@@ -103,6 +123,7 @@ tooling_1.core.registerCleanTask({
103
123
  force: true
104
124
  });
105
125
  }
126
+ // await generateCert();
106
127
  resolve();
107
128
  });
108
129
  }
@@ -140,7 +140,8 @@ async function preBundleIfNeeded(entries) {
140
140
  if (Object.keys(preBundleEntries).length == 0) {
141
141
  return Promise.resolve();
142
142
  }
143
- $.tooling.log("Pre-Bundling...");
143
+ const startTime = new Date().getTime();
144
+ $.tooling.logTime("Pre-Bundling...", startTime);
144
145
  return new Promise(function (resolve, reject) {
145
146
  const configs = utils_1.webpackUtils.createWebpackConfig(preBundleEntries, 'prebundle');
146
147
  const compiler = (0, webpack_1.webpack)(configs);
@@ -150,7 +151,7 @@ async function preBundleIfNeeded(entries) {
150
151
  reject();
151
152
  return;
152
153
  }
153
- $.tooling.log("Pre-Bundle done");
154
+ $.tooling.logTime("Pre-Bundle done", startTime);
154
155
  resolve(entries);
155
156
  });
156
157
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/tooling-vue",
3
3
  "license": "MIT",
4
- "version": "8.0.256-dev",
4
+ "version": "8.0.257-dev",
5
5
  "description": "Used to bundle and serve manifests web component that build on Vue framework.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -19,8 +19,8 @@
19
19
  ],
20
20
  "author": "Precio Fishbone",
21
21
  "dependencies": {
22
- "@omnia/fx-models": "8.0.256-dev",
23
- "@omnia/tooling-composers": "8.0.256-dev",
22
+ "@omnia/fx-models": "8.0.257-dev",
23
+ "@omnia/tooling-composers": "8.0.257-dev",
24
24
  "@types/mousetrap": "1.5.34",
25
25
  "@types/quill": "1.3.6",
26
26
  "@types/zepto": "1.0.29",