lucid-package 0.0.106 → 0.0.108

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-package",
3
- "version": "0.0.106",
3
+ "version": "0.0.108",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -28,21 +28,27 @@ module.exports = {
28
28
  },
29
29
  plugins: [
30
30
  new WebpackShellPluginNext({
31
- //When doing a watch build, run "ng serve" and update the html file to prefix http://localhost:4200/ to all the resource URLs
31
+ // Run during execution of `npx lucid-package@latest test-editor-extension`.
32
+ // When doing a watch build, the user must manually first run "ng serve".
33
+ // Then, this script will update the html file to prefix http://localhost:4200/ to all the resource URLs
32
34
  onWatchRun: {
33
35
  scripts: angularTargets.map(
34
36
  (target) =>
35
- `mkdir -p ../../public/${target.name} &&` +
37
+ // Executed by WebpackShellPluginNext, from within the package's root level directory.
38
+ `mkdir -p public/${target.name} &&` +
36
39
  `curl http://localhost:${target.port} | ` +
37
- `sed -E "s/(src|href)=\\"/\\\\1=\\"http:\\/\\/localhost:${target.port}\\//gi" > ` +
38
- `../../public/${target.name}/index.html`,
40
+ `sed -E "s/(src|href)=\\"\\//\\1=\\"http:\\/\\/localhost:${target.port}\\//gi" > ` +
41
+ `public/${target.name}/index.html`,
39
42
  ),
40
43
  blocking: true,
41
44
  },
42
- //When doing a full build, run "ng build" and then copy all the assets to the root level public folder
45
+ // Run during execution of `npx lucid-package@latest bundle`.
46
+ // When doing a full build, this script will automatically run "ng build"
47
+ // and then copy all the assets to the root level public folder
43
48
  onBeforeNormalRun: {
44
49
  scripts: angularTargets.map(
45
50
  (target) =>
51
+ // Executed by WebpackShellPluginNext from within each _extension's_ directory.
46
52
  `mkdir -p ../../public/${target.name} &&` +
47
53
  `cd ${target.name} && ` +
48
54
  // `npx ng build` usually works, but this is more reliable when used with build tools such as bazel
@@ -28,21 +28,27 @@ module.exports = {
28
28
  },
29
29
  plugins: [
30
30
  new WebpackShellPluginNext({
31
- //When doing a watch build, run "npm start" and update the html file to prefix http://localhost:3000/ to all the resource URLs
31
+ // Run during execution of `npx lucid-package@latest test-editor-extension`.
32
+ // When doing a watch build, the user must manually first run "npm start".
33
+ // Then, this script will update the html file to prefix http://localhost:3000/ to all the resource URLs
32
34
  onWatchRun: {
33
35
  scripts: reactTargets.map(
34
36
  (target) =>
35
- `mkdir -p ../../public/${target.name} &&` +
37
+ // Executed by WebpackShellPluginNext, from within the package's root level directory.
38
+ `mkdir -p public/${target.name} &&` +
36
39
  `curl http://localhost:${target.port} | ` +
37
- `sed -E "s/(src|href)=\\"/\\\\1=\\"http:\\/\\/localhost:${target.port}\/gi" > ` +
38
- `../../public/${target.name}/index.html`,
40
+ `sed -E "s/(src|href)=\\"\\//\\1=\\"http:\\/\\/localhost:${target.port}\/gi" > ` +
41
+ `public/${target.name}/index.html`,
39
42
  ),
40
43
  blocking: true,
41
44
  },
42
- // When doing a full build, run "npm run build" and then copy all the assets to the root level public folder
45
+ // Run during execution of `npx lucid-package@latest bundle`.
46
+ // When doing a full build, this script will automatically run "npm run build"
47
+ // and then copy all the assets to the root level public folder
43
48
  onBeforeNormalRun: {
44
49
  scripts: reactTargets.map(
45
50
  (target) =>
51
+ // Executed by WebpackShellPluginNext from within each _extension's_ directory.
46
52
  `mkdir -p ../../public/${target.name} &&` +
47
53
  `cd ${target.name} && ` +
48
54
  `npm run build && ` +