@cocreate/cli
Advanced tools
Comparing version 1.39.2 to 1.39.3
{ | ||
"name": "@cocreate/cli", | ||
"version": "1.39.2", | ||
"version": "1.39.3", | ||
"description": "Polyrepo management bash CLI tool. Run all git commands and yarn commands on multiple repositories. Also includes a few custom macros for cloning, installing, etc.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
let glob = require("glob"); | ||
let fs = require('fs'); | ||
const path = require("path") | ||
@@ -11,3 +10,3 @@ function globUpdater(er, files) { | ||
files.forEach(filename => { | ||
update(filename + '/automated.yml') | ||
update(filename + 'automated.yml') | ||
}) | ||
@@ -18,2 +17,9 @@ console.log('Completed') | ||
function update(YmlPath) { | ||
let build = `- name: Build | ||
run: yarn build` | ||
let webpackPath = YmlPath.replace('.github/workflows/automated.yml', 'webpack.config.js') | ||
if (!fs.existsSync(webpackPath)) | ||
build = '' | ||
let fileContent = `name: Automated Workflow | ||
@@ -79,4 +85,3 @@ on: | ||
run: yarn install | ||
- name: Build | ||
run: yarn build | ||
${build} | ||
- name: Set Environment Variables | ||
@@ -91,3 +96,2 @@ run: | | ||
`; | ||
// process.exit() | ||
if (fs.existsSync(YmlPath)) | ||
@@ -103,8 +107,8 @@ fs.unlinkSync(YmlPath) | ||
glob("/home/cocreate/CoCreate/CoCreate-components/*/.github/workflows/", globUpdater) | ||
glob("/home/cocreate/CoCreate/CoCreate-apps/*/.github/workflows/", globUpdater) | ||
glob("/home/cocreate/CoCreate/CoCreate-plugins/*/.github/workflows/", globUpdater) | ||
// glob("/home/cocreate/CoCreate/CoCreate-apps/*/.github/workflows/", globUpdater) | ||
// glob("/home/cocreate/CoCreate/CoCreate-plugins/*/.github/workflows/", globUpdater) | ||
glob("/home/cocreate/CoCreate/CoCreate-admin/.github/workflows/", globUpdater) | ||
glob("/home/cocreate/CoCreate/CoCreateCSS/.github/workflows/", globUpdater) | ||
glob("/home/cocreate/CoCreate/CoCreateJS/.github/workflows/", globUpdater) | ||
glob("/home/cocreate/CoCreate/CoCreate-wesite/.github/workflows/", globUpdater) | ||
// glob("/home/cocreate/CoCreate/CoCreate-admin/.github/workflows/", globUpdater) | ||
// glob("/home/cocreate/CoCreate/CoCreateCSS/.github/workflows/", globUpdater) | ||
// glob("/home/cocreate/CoCreate/CoCreateJS/.github/workflows/", globUpdater) | ||
// glob("/home/cocreate/CoCreate/CoCreate-wesite/.github/workflows/", globUpdater) |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
174997
2141