Skip to content

Commit

Permalink
Add AlloyEditor template
Browse files Browse the repository at this point in the history
Fixes #327
  • Loading branch information
ipeychev committed Aug 21, 2015
1 parent b523d66 commit b94567a
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 6 deletions.
10 changes: 10 additions & 0 deletions dist/alloy-editor/alloy-editor-all-min.js

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

10 changes: 10 additions & 0 deletions dist/alloy-editor/alloy-editor-all.js

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

10 changes: 10 additions & 0 deletions dist/alloy-editor/alloy-editor-no-ckeditor-min.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* AlloyEditor v0.5.0
*
* Copyright 2014-present, Liferay, Inc.
* All rights reserved.
*
* This source code is licensed under the GNU LGPL-style license found in the
* LICENSE file in the root directory of this source tree.
*/

(function() {
function deployCKEditor() {

Expand Down
10 changes: 10 additions & 0 deletions dist/alloy-editor/alloy-editor-no-ckeditor.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* AlloyEditor v0.5.0
*
* Copyright 2014-present, Liferay, Inc.
* All rights reserved.
*
* This source code is licensed under the GNU LGPL-style license found in the
* LICENSE file in the root directory of this source tree.
*/

(function() {
function deployCKEditor() {

Expand Down
10 changes: 10 additions & 0 deletions dist/alloy-editor/alloy-editor-no-react-min.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* AlloyEditor v0.5.0
*
* Copyright 2014-present, Liferay, Inc.
* All rights reserved.
*
* This source code is licensed under the GNU LGPL-style license found in the
* LICENSE file in the root directory of this source tree.
*/

(function() {
function deployCKEditor() {
/*
Expand Down
10 changes: 10 additions & 0 deletions dist/alloy-editor/alloy-editor-no-react.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* AlloyEditor v0.5.0
*
* Copyright 2014-present, Liferay, Inc.
* All rights reserved.
*
* This source code is licensed under the GNU LGPL-style license found in the
* LICENSE file in the root directory of this source tree.
*/

(function() {
function deployCKEditor() {
/*
Expand Down
18 changes: 12 additions & 6 deletions src/ui/react/gulp-tasks/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ gulp.task('create-alloy-editor-all', function() {
alloyeditorMain: fs.readFileSync(path.join(editorDistFolder, 'alloy-editor-main.js')),
alloyeditorUI: fs.readFileSync(path.join(editorDistFolder, 'alloy-editor-ui.js')),
ckeditor: fs.readFileSync(path.join(editorDistFolder, 'ckeditor.js')),
react: fs.readFileSync(path.join(reactDir, 'vendor', 'react.js'))
react: fs.readFileSync(path.join(reactDir, 'vendor', 'react.js')),
version: pkg.version
}))
.pipe(replace(regexCKEditor, 'alloy-editor-all$1.js'))
.pipe(rename('alloy-editor-all.js'))
Expand All @@ -181,7 +182,8 @@ gulp.task('create-alloy-editor-no-ckeditor', function() {
alloyeditorMain: fs.readFileSync(path.join(editorDistFolder, 'alloy-editor-main.js')),
alloyeditorUI: fs.readFileSync(path.join(editorDistFolder, 'alloy-editor-ui.js')),
ckeditor: '',
react: fs.readFileSync(path.join(reactDir, 'vendor', 'react.js'))
react: fs.readFileSync(path.join(reactDir, 'vendor', 'react.js')),
version: pkg.version
}))
.pipe(rename('alloy-editor-no-ckeditor.js'))
.pipe(gulp.dest(editorDistFolder));
Expand All @@ -193,7 +195,8 @@ gulp.task('create-alloy-editor-no-react', function() {
alloyeditorMain: fs.readFileSync(path.join(editorDistFolder, 'alloy-editor-main.js')),
alloyeditorUI: fs.readFileSync(path.join(editorDistFolder, 'alloy-editor-ui.js')),
ckeditor: fs.readFileSync(path.join(editorDistFolder, 'ckeditor.js')),
react: ''
react: '',
version: pkg.version
}))
.pipe(replace(regexCKEditor, 'alloy-editor-no-react$1.js'))
.pipe(rename('alloy-editor-no-react.js'))
Expand All @@ -206,7 +209,8 @@ gulp.task('create-alloy-editor-all-min', function() {
alloyeditorMain: fs.readFileSync(path.join(editorDistFolder, 'alloy-editor-main.js')),
alloyeditorUI: fs.readFileSync(path.join(editorDistFolder, 'alloy-editor-ui.js')),
ckeditor: fs.readFileSync(path.join(editorDistFolder, 'ckeditor.js')),
react: fs.readFileSync(path.join(reactDir, 'vendor', 'react-min.js'))
react: fs.readFileSync(path.join(reactDir, 'vendor', 'react-min.js')),
version: pkg.version
}))
.pipe(replace(regexCKEditor, 'alloy-editor-all-min$1.js'))
.pipe(rename('alloy-editor-all-min.js'))
Expand All @@ -219,7 +223,8 @@ gulp.task('create-alloy-editor-no-ckeditor-min', function() {
alloyeditorMain: fs.readFileSync(path.join(editorDistFolder, 'alloy-editor-main.js')),
alloyeditorUI: fs.readFileSync(path.join(editorDistFolder, 'alloy-editor-ui.js')),
ckeditor: '',
react: fs.readFileSync(path.join(reactDir, 'vendor', 'react-min.js'))
react: fs.readFileSync(path.join(reactDir, 'vendor', 'react-min.js')),
version: pkg.version
}))
.pipe(rename('alloy-editor-no-ckeditor-min.js'))
.pipe(gulp.dest(editorDistFolder));
Expand All @@ -231,7 +236,8 @@ gulp.task('create-alloy-editor-no-react-min', function() {
alloyeditorMain: fs.readFileSync(path.join(editorDistFolder, 'alloy-editor-main.js')),
alloyeditorUI: fs.readFileSync(path.join(editorDistFolder, 'alloy-editor-ui.js')),
ckeditor: fs.readFileSync(path.join(editorDistFolder, 'ckeditor.js')),
react: ''
react: '',
version: pkg.version
}))
.pipe(replace(regexCKEditor, 'alloy-editor-no-react-min$1.js'))
.pipe(rename('alloy-editor-no-react-min.js'))
Expand Down
10 changes: 10 additions & 0 deletions src/ui/react/template/alloy-editor.template
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* AlloyEditor v<%= version %>
*
* Copyright 2014-present, Liferay, Inc.
* All rights reserved.
*
* This source code is licensed under the GNU LGPL-style license found in the
* LICENSE file in the root directory of this source tree.
*/

(function() {
function deployCKEditor() {
<%= ckeditor %>
Expand Down

0 comments on commit b94567a

Please sign in to comment.