Skip to content

Commit

Permalink
Merge pull request #18988 from seamuslee001/dev_core_2197
Browse files Browse the repository at this point in the history
dev/core#2197 Deploy monaco-editor using composer.json / composer dow…
  • Loading branch information
totten authored Nov 19, 2020
2 parents 56db180 + e1cb865 commit 07340f3
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 137 deletions.
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@
"url": "https://github.com/markedjs/marked/archive/v0.8.0.zip",
"ignore": [".*", "*.json", "*.md", "Makefile", "*/*"]
},
"monaco-editor": {
"url": "https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.16.2.tgz",
"path": "ext/afform/html/bower_components/monaco-editor"
},
"google-code-prettify": {
"url": "https://github.com/tcollard/google-code-prettify/archive/v1.0.5.zip",
"ignore": ["closure-compiler", "js-modules", "tests", "yui-compressor", "Makefile", "examples", "*.html", "run_prettify*js"]
Expand Down
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ext/afform/html/afform_html.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use CRM_AfformHtml_ExtensionUtil as E;

if (!defined('AFFORM_HTML_MONACO')) {
define('AFFORM_HTML_MONACO', 'node_modules/monaco-editor/min/vs');
define('AFFORM_HTML_MONACO', 'bower_components/monaco-editor/min/vs');
}

/**
Expand Down Expand Up @@ -153,7 +153,7 @@ function afform_html_civicrm_check(&$messages) {
if (!file_exists($dir)) {
$messages[] = new CRM_Utils_Check_Message(
'afform_html_monaco',
ts('Afform HTML is missing its "node_modules" folder. Please consult the README.md for current installation instructions.'),
ts('Afform HTML is missing its "bower_components" folder. Please consult the README.md for current installation instructions.'),
ts('Afform HTML: Packages are missing'),
\Psr\Log\LogLevel::CRITICAL,
'fa-chain-broken'
Expand Down
105 changes: 0 additions & 105 deletions ext/afform/html/bin/setup.sh

This file was deleted.

13 changes: 0 additions & 13 deletions ext/afform/html/package-lock.json

This file was deleted.

15 changes: 0 additions & 15 deletions ext/afform/html/package.json

This file was deleted.

0 comments on commit 07340f3

Please sign in to comment.