babyclara 0.0.5 → 0.0.6

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.
Files changed (2) hide show
  1. package/index.js +7 -7
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -40,9 +40,9 @@ foldersToCopy.forEach(folder => {
40
40
  copyFolder(src, dest);
41
41
  });
42
42
 
43
- // Install gkrane + chokidar-cli locally
43
+ // Install gkrane and cross-env locally
44
44
  console.log("Installing Dependencies...");
45
- execSync("npm install gkrane chokidar-cli --save-dev", { cwd: targetDir, stdio: "inherit" });
45
+ execSync("npm install gkrane cross-env --save", { cwd: targetDir, stdio: "inherit" });
46
46
 
47
47
  // Modify package.json
48
48
  const pkgPath = path.join(targetDir, "package.json");
@@ -52,12 +52,12 @@ if (fs.existsSync(pkgPath)) {
52
52
 
53
53
  pkg.scripts = pkg.scripts || {};
54
54
 
55
- // Use local chokidar-cli binary
56
- pkg.scripts.start =
57
- "./node_modules/.bin/chokidar \"**/*\" \"!apps/**\" \"!games/**\" -c \"node ./node_modules/gkrane/core/index.js\"";
55
+ // Start script (normal run)
56
+ pkg.scripts.start = "node ./node_modules/gkrane/core/index.js";
58
57
 
59
- pkg.scripts.dev =
60
- "node ./node_modules/gkrane/core/dev.js";
58
+ // Build script (with ENV: BUILD=true)
59
+ pkg.scripts.build =
60
+ "cross-env BUILD=true node ./node_modules/gkrane/core/index.js";
61
61
 
62
62
  fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2));
63
63
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babyclara",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "A Vue.Js Work Station",
5
5
  "main": "index.js",
6
6
  "author": "Augment Chinedu",