Skip to content

Commit fb8c5e4

Browse files
committed
chore(build): no longer css nor js to build
1 parent 979b1a8 commit fb8c5e4

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

RoboFile.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function archiveBuild($release = 'release') {
153153
// update version in package.json
154154
$this->sourceUpdatePackageJson($version);
155155
if ($release == 'release') {
156-
$this->updateChangelog();
156+
// $this->updateChangelog();
157157
}
158158

159159
$diff = $this->gitDiff(['package.json']);
@@ -197,12 +197,12 @@ public function archiveBuild($release = 'release') {
197197
$this->_exec("git archive --prefix=$pluginName/ $rev $filesToArchive | tar x -C '$archiveWorkdir'");
198198

199199
// Copy SCSS
200-
$srcFile = __DIR__ . '/css_compiled/styles.min.css';
201-
$dstFile = "$archiveWorkdir/$pluginName/css_compiled/styles.min.css";
202-
$success = copy($srcFile, $dstFile);
203-
if (!$success) {
204-
throw new RuntimeException("failed to generate CSS resources");
205-
}
200+
// $srcFile = __DIR__ . '/css_compiled/styles.min.css';
201+
// $dstFile = "$archiveWorkdir/$pluginName/css_compiled/styles.min.css";
202+
// $success = copy($srcFile, $dstFile);
203+
// if (!$success) {
204+
// throw new RuntimeException("failed to generate CSS resources");
205+
// }
206206

207207
// Add composer dependencies
208208
$success = $this->taskExec('composer')
@@ -215,15 +215,15 @@ public function archiveBuild($release = 'release') {
215215
}
216216

217217
// Add JS dependencies
218-
$success = $this->taskExec('yarn')
219-
->arg('--cwd')
220-
->arg("$archiveWorkdir/$pluginName")
221-
->arg('install')
222-
->arg('--prod')
223-
->run();
224-
if ($success->getExitCode() != 0) {
225-
throw new RuntimeException("failed to generate JS resources");
226-
}
218+
// $success = $this->taskExec('yarn')
219+
// ->arg('--cwd')
220+
// ->arg("$archiveWorkdir/$pluginName")
221+
// ->arg('install')
222+
// ->arg('--prod')
223+
// ->run();
224+
// if ($success->getExitCode() != 0) {
225+
// throw new RuntimeException("failed to generate JS resources");
226+
// }
227227

228228
// Create the final archive
229229
$this->taskPack($archiveFile)

0 commit comments

Comments
 (0)