| author | ymh <ymh.work@gmail.com> |
| Fri, 15 Sep 2017 14:11:36 +0200 | |
| changeset 658 | cac26275af31 |
| parent 651 | fd209e3af0c7 |
| permissions | -rw-r--r-- |
|
295
bcac9ea07d04
add simple-persist in grunt connect
ymh <ymh.work@gmail.com>
parents:
294
diff
changeset
|
1 |
var simplePersist = require('./data/simple-persist'); |
|
290
8a6eb26ac87f
move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
2 |
|
|
8a6eb26ac87f
move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
3 |
module.exports = function(grunt) { |
|
8a6eb26ac87f
move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
4 |
|
|
497
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
5 |
'use strict'; |
|
290
8a6eb26ac87f
move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
6 |
|
|
497
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
7 |
var renkan_src = [ |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
8 |
'dist/js/templates.js', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
9 |
'js/main.js', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
10 |
'js/router.js', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
11 |
'js/dataloader.js', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
12 |
'js/models.js', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
13 |
'js/defaults.js', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
14 |
'js/i18n.js', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
15 |
'js/full-json.js', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
16 |
'js/save-once.js', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
17 |
'js/ldtjson-bin.js', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
18 |
'js/list-bin.js', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
19 |
'js/wikipedia-bin.js', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
20 |
'dist/js/paper-renderer.js', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
21 |
]; |
|
290
8a6eb26ac87f
move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
22 |
|
|
497
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
23 |
var renkan_banner = grunt.file.read('js/header.js').toString() + |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
24 |
'\n/*! <%= pkg.name %> - v<%= pkg.version %> - Copyright © IRI ' + |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
25 |
'<%= grunt.template.today("yyyy") %> */\n\n'; |
|
290
8a6eb26ac87f
move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
26 |
|
|
497
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
27 |
// Project configuration. |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
28 |
grunt.initConfig({ |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
29 |
pkg: grunt.file.readJSON('package.json'), |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
30 |
requirejs: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
31 |
renderer: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
32 |
options: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
33 |
baseUrl: "js/", |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
34 |
name: "main-renderer", |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
35 |
out: "dist/js/paper-renderer.js", |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
36 |
optimize: "none", |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
37 |
beautify: true, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
38 |
paths: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
39 |
requtils: "require-utils", |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
40 |
jquery: "empty:", |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
41 |
underscore: "empty:", |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
42 |
filesaver: "empty:", |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
43 |
'ckeditor-core': "empty:", |
|
647
eaaa1efce396
add examples for youtube node types, add a way to open node urls with a single click
ymh <ymh.work@gmail.com>
parents:
600
diff
changeset
|
44 |
screenfull: "empty:" |
|
600
e12243191095
correct jquery dependency in renkan renderer + problem with CKEditor + version
ymh <ymh.work@gmail.com>
parents:
598
diff
changeset
|
45 |
}, |
|
e12243191095
correct jquery dependency in renkan renderer + problem with CKEditor + version
ymh <ymh.work@gmail.com>
parents:
598
diff
changeset
|
46 |
include: [ "jquery-private"], |
|
497
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
47 |
} |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
48 |
} |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
49 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
50 |
jst: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
51 |
compile: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
52 |
options: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
53 |
namespace: 'renkanJST', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
54 |
//amd: true |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
55 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
56 |
files: { |
|
647
eaaa1efce396
add examples for youtube node types, add a way to open node urls with a single click
ymh <ymh.work@gmail.com>
parents:
600
diff
changeset
|
57 |
"dist/js/templates.js": ["templates/**/*.html"], |
|
eaaa1efce396
add examples for youtube node types, add a way to open node urls with a single click
ymh <ymh.work@gmail.com>
parents:
600
diff
changeset
|
58 |
} |
|
eaaa1efce396
add examples for youtube node types, add a way to open node urls with a single click
ymh <ymh.work@gmail.com>
parents:
600
diff
changeset
|
59 |
}, |
|
eaaa1efce396
add examples for youtube node types, add a way to open node urls with a single click
ymh <ymh.work@gmail.com>
parents:
600
diff
changeset
|
60 |
compile_test: { |
|
eaaa1efce396
add examples for youtube node types, add a way to open node urls with a single click
ymh <ymh.work@gmail.com>
parents:
600
diff
changeset
|
61 |
options: { |
|
eaaa1efce396
add examples for youtube node types, add a way to open node urls with a single click
ymh <ymh.work@gmail.com>
parents:
600
diff
changeset
|
62 |
namespace: 'renkanJSTTest', |
|
eaaa1efce396
add examples for youtube node types, add a way to open node urls with a single click
ymh <ymh.work@gmail.com>
parents:
600
diff
changeset
|
63 |
//amd: true |
|
eaaa1efce396
add examples for youtube node types, add a way to open node urls with a single click
ymh <ymh.work@gmail.com>
parents:
600
diff
changeset
|
64 |
}, |
|
eaaa1efce396
add examples for youtube node types, add a way to open node urls with a single click
ymh <ymh.work@gmail.com>
parents:
600
diff
changeset
|
65 |
files: { |
|
eaaa1efce396
add examples for youtube node types, add a way to open node urls with a single click
ymh <ymh.work@gmail.com>
parents:
600
diff
changeset
|
66 |
"data/templates/youtube_template.js": ["test/templates/youtube_template.html"], |
|
eaaa1efce396
add examples for youtube node types, add a way to open node urls with a single click
ymh <ymh.work@gmail.com>
parents:
600
diff
changeset
|
67 |
"data/templates/audio_template.js": ["test/templates/audio_template.html"] |
|
497
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
68 |
} |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
69 |
} |
|
647
eaaa1efce396
add examples for youtube node types, add a way to open node urls with a single click
ymh <ymh.work@gmail.com>
parents:
600
diff
changeset
|
70 |
|
|
497
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
71 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
72 |
uglify: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
73 |
options: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
74 |
banner: renkan_banner, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
75 |
sourceMap: true, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
76 |
sourceMapIncludeSources: true |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
77 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
78 |
renkan: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
79 |
files: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
80 |
'dist/js/renkan.min.js': renkan_src |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
81 |
} |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
82 |
} |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
83 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
84 |
concat: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
85 |
options: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
86 |
banner: renkan_banner |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
87 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
88 |
renkan: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
89 |
files: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
90 |
'dist/js/renkan.js': renkan_src |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
91 |
} |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
92 |
} |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
93 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
94 |
clean: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
95 |
options: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
96 |
force: true |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
97 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
98 |
renderer: ["dist/js/paper-renderer.js"], |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
99 |
jst: ["dist/js/templates.js"], |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
100 |
renkan: ["dist/"], |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
101 |
lib: ["lib/"], |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
102 |
bower: ["bower_components/"] |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
103 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
104 |
cssmin: { |
|
468
364c367df7fc
add rich text editor for description
ymh <ymh.work@gmail.com>
parents:
444
diff
changeset
|
105 |
options: { |
|
497
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
106 |
banner: renkan_banner |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
107 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
108 |
renkan: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
109 |
expand: true, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
110 |
cwd: 'css/', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
111 |
src: ['*.css'], |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
112 |
dest: 'dist/css', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
113 |
ext: '.min.css' |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
114 |
} |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
115 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
116 |
copy: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
117 |
vendors: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
118 |
files: [{ |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
119 |
expand: true, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
120 |
cwd: 'vendors/', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
121 |
src: ['**'], |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
122 |
dest: 'lib/' |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
123 |
}], |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
124 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
125 |
renkan: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
126 |
files: [{ |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
127 |
expand: true, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
128 |
cwd: '', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
129 |
src: ['img/*'], |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
130 |
dest: 'dist/', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
131 |
filter: 'isFile' |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
132 |
}, { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
133 |
expand: true, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
134 |
cwd: '', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
135 |
src: ['data/properties.json'], |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
136 |
dest: 'dist/', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
137 |
filter: 'isFile' |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
138 |
}, { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
139 |
expand: true, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
140 |
cwd: '', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
141 |
src: ['lib/**'], |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
142 |
dest: 'dist/' |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
143 |
}] |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
144 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
145 |
renkan_css: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
146 |
options: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
147 |
process: function(content, srcpath) { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
148 |
return grunt.template.process(renkan_banner) + content; |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
149 |
} |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
150 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
151 |
files: [{ |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
152 |
expand: true, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
153 |
cwd: '', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
154 |
src: ['css/*'], |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
155 |
dest: 'dist/', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
156 |
filter: 'isFile' |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
157 |
}] |
|
468
364c367df7fc
add rich text editor for description
ymh <ymh.work@gmail.com>
parents:
444
diff
changeset
|
158 |
}, |
|
497
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
159 |
renkan_server: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
160 |
files: [{ |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
161 |
expand: true, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
162 |
cwd: 'dist', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
163 |
src: ['**', '!data/*', '!lib/**'], |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
164 |
dest: '../server/python/django/renkanmanager/static/renkanmanager/lib/renkan/', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
165 |
filter: 'isFile' |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
166 |
}, { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
167 |
expand: true, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
168 |
cwd: 'dist/lib', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
169 |
src: ['**'], |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
170 |
dest: '../server/python/django/renkanmanager/static/renkanmanager/lib/', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
171 |
filter: 'isFile' |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
172 |
}, { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
173 |
expand: true, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
174 |
cwd: 'dist', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
175 |
src: ['**', '!data/*', '!lib/**'], |
| 598 | 176 |
dest: '../server/python/django2/renkanmanager/static/renkanmanager/lib/renkan/', |
177 |
filter: 'isFile' |
|
178 |
}, { |
|
179 |
expand: true, |
|
180 |
cwd: 'dist/lib', |
|
181 |
src: ['**'], |
|
182 |
dest: '../server/python/django2/renkanmanager/static/renkanmanager/lib/', |
|
183 |
filter: 'isFile' |
|
184 |
}, { |
|
185 |
expand: true, |
|
186 |
cwd: 'dist', |
|
187 |
src: ['**', '!data/*', '!lib/**'], |
|
|
497
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
188 |
dest: '../server/php/basic/public_html/static/lib/renkan/', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
189 |
filter: 'isFile' |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
190 |
}, { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
191 |
expand: true, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
192 |
cwd: 'dist/lib', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
193 |
src: ['**'], |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
194 |
dest: '../server/php/basic/public_html/static/lib/', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
195 |
filter: 'isFile' |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
196 |
}] |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
197 |
} |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
198 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
199 |
jshint: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
200 |
options: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
201 |
curly: true, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
202 |
eqeqeq: true, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
203 |
eqnull: true, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
204 |
browser: true, |
|
501
a509adc8ac10
small gruntfile correction + version
ymh <ymh.work@gmail.com>
parents:
500
diff
changeset
|
205 |
esnext: true, |
|
497
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
206 |
globals: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
207 |
jQuery: true |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
208 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
209 |
}, |
|
501
a509adc8ac10
small gruntfile correction + version
ymh <ymh.work@gmail.com>
parents:
500
diff
changeset
|
210 |
all: [ |
|
a509adc8ac10
small gruntfile correction + version
ymh <ymh.work@gmail.com>
parents:
500
diff
changeset
|
211 |
'Gruntfile.js', |
|
a509adc8ac10
small gruntfile correction + version
ymh <ymh.work@gmail.com>
parents:
500
diff
changeset
|
212 |
'js/**/*.js', |
|
a509adc8ac10
small gruntfile correction + version
ymh <ymh.work@gmail.com>
parents:
500
diff
changeset
|
213 |
'data/simple-persist.js' |
|
a509adc8ac10
small gruntfile correction + version
ymh <ymh.work@gmail.com>
parents:
500
diff
changeset
|
214 |
] |
|
497
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
215 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
216 |
bower: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
217 |
install: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
218 |
options: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
219 |
targetDir: './lib', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
220 |
layout: 'byComponent', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
221 |
install: true, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
222 |
verbose: false, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
223 |
cleanTargetDir: true, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
224 |
cleanBowerDir: false, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
225 |
bowerOptions: {} |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
226 |
} |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
227 |
} |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
228 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
229 |
watch: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
230 |
css: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
231 |
files: ['css/**/*.css'], |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
232 |
tasks: ['cssmin', 'copy:renkan_css'], |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
233 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
234 |
js: { |
|
647
eaaa1efce396
add examples for youtube node types, add a way to open node urls with a single click
ymh <ymh.work@gmail.com>
parents:
600
diff
changeset
|
235 |
files: ['js/**/*.js', 'templates/**/*.html', 'test/templates/*.html'], |
|
eaaa1efce396
add examples for youtube node types, add a way to open node urls with a single click
ymh <ymh.work@gmail.com>
parents:
600
diff
changeset
|
236 |
tasks: ['jshint', 'requirejs', 'jst:compile', 'jst:compile_test', 'concat', 'uglify', 'copy:renkan', 'clean:renderer'], |
|
497
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
237 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
238 |
lib: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
239 |
files: ['bower.json'], |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
240 |
tasks: ['bower:install', 'copy:vendors', 'copy:renkan'], |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
241 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
242 |
vendors: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
243 |
files: ['vendors/**'], |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
244 |
tasks: ['copy:vendors', 'copy:renkan'], |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
245 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
246 |
options: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
247 |
interrupt: true, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
248 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
249 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
250 |
connect: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
251 |
server: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
252 |
options: { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
253 |
port: 9001, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
254 |
base: '.', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
255 |
useAvailablePort: true, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
256 |
debug: true, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
257 |
middleware: function(connect, options, middlewares) { |
|
600
e12243191095
correct jquery dependency in renkan renderer + problem with CKEditor + version
ymh <ymh.work@gmail.com>
parents:
598
diff
changeset
|
258 |
middlewares.unshift(simplePersist.middleware); |
|
497
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
259 |
return middlewares; |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
260 |
} |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
261 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
262 |
} |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
263 |
}, |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
264 |
umd: { |
| 555 | 265 |
'screenfull': { |
266 |
options: { |
|
|
561
5feabdc61980
correct grunt for correct handling of screenfull in umd. publish new version
ymh <ymh.work@gmail.com>
parents:
555
diff
changeset
|
267 |
src: 'lib/screenfull/screenfull.js', |
| 555 | 268 |
dest: 'lib/screenfull/screenfull-umd.js', |
269 |
objectToExport: 'screenfull', |
|
270 |
amdModuleId: 'screenfull' |
|
271 |
} |
|
272 |
}, |
|
|
651
fd209e3af0c7
Correct renkan edition in java server. reactivate the umd compilation for ckeditor.
ymh <ymh.work@gmail.com>
parents:
647
diff
changeset
|
273 |
'ckeditor-core': { |
|
fd209e3af0c7
Correct renkan edition in java server. reactivate the umd compilation for ckeditor.
ymh <ymh.work@gmail.com>
parents:
647
diff
changeset
|
274 |
options: { |
|
fd209e3af0c7
Correct renkan edition in java server. reactivate the umd compilation for ckeditor.
ymh <ymh.work@gmail.com>
parents:
647
diff
changeset
|
275 |
src: 'dist/lib/ckeditor/ckeditor.js', |
|
fd209e3af0c7
Correct renkan edition in java server. reactivate the umd compilation for ckeditor.
ymh <ymh.work@gmail.com>
parents:
647
diff
changeset
|
276 |
dest: 'dist/lib/ckeditor/ckeditor-umd.js', |
|
fd209e3af0c7
Correct renkan edition in java server. reactivate the umd compilation for ckeditor.
ymh <ymh.work@gmail.com>
parents:
647
diff
changeset
|
277 |
objectToExport: 'CKEDITOR', |
|
fd209e3af0c7
Correct renkan edition in java server. reactivate the umd compilation for ckeditor.
ymh <ymh.work@gmail.com>
parents:
647
diff
changeset
|
278 |
amdModuleId: 'ckeditor-core' |
|
fd209e3af0c7
Correct renkan edition in java server. reactivate the umd compilation for ckeditor.
ymh <ymh.work@gmail.com>
parents:
647
diff
changeset
|
279 |
} |
|
fd209e3af0c7
Correct renkan edition in java server. reactivate the umd compilation for ckeditor.
ymh <ymh.work@gmail.com>
parents:
647
diff
changeset
|
280 |
} |
|
500
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
281 |
}, |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
282 |
replace: { |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
283 |
'version-bower-package': { |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
284 |
src: ['package.json', 'bower.json'], |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
285 |
overwrite: true, |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
286 |
replacements: [{ |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
287 |
from: /^(\s+)\"version\"\:\s*\"([\d\.]+)\"\,[ \t]*$/m, |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
288 |
to: "$1\"version\"\: \"<%= setversion.version %>\",", |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
289 |
}] |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
290 |
}, |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
291 |
'version-gradle': { |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
292 |
src: ['../server/java/build.gradle'], |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
293 |
overwrite: true, |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
294 |
replacements: [{ |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
295 |
from: /^(\s+)version\s*\=\s*\'([\d\.]+)\'[ \t]*$/m, |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
296 |
to: "$1version = \'<%= setversion.version %>\'", |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
297 |
}] |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
298 |
}, |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
299 |
'version-maven': { |
|
574
de0d488a0a1b
add call to grunt to build client before compilation of java server and correct maven spring version problem
ymh <ymh.work@gmail.com>
parents:
561
diff
changeset
|
300 |
src: ['../server/java/pom.xml', '../server/java/renkan-core/pom.xml', '../server/java/renkan-web/pom.xml', '../server/java/renkan-management/pom.xml'], |
|
500
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
301 |
overwrite: true, |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
302 |
replacements: [{ |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
303 |
from: /^(\s+)<version>\s*([\d\.]+)\s*<\/version>[ \t]*$/m, |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
304 |
to: "$1<version><%= setversion.version %></version>", |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
305 |
}] |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
306 |
}, |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
307 |
'version-django': { |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
308 |
src: ['../server/python/django/renkanmanager/__init__.py'], |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
309 |
overwrite: true, |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
310 |
replacements: [{ |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
311 |
from: /^(\s*)VERSION\s*=\s*\([ \t]*\d+[ \t]*,[ \t]*\d+[ \t]*,[ \t]*\d+[ \t]*,[ \t]*\"final\"[ \t]*\,[ \t]*0[ \t]*\)[ \t]*$/m, |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
312 |
to: function(matchedWord, index, fullText, regexMatches) { |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
313 |
var array_version = grunt.config.get('setversion.version').split('.'); |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
314 |
var array_version_length = array_version.length; |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
315 |
for(let i=0;i<3-array_version_length;i++) { |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
316 |
array_version.push('0'); |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
317 |
} |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
318 |
return regexMatches[0]+"VERSION = (" + array_version.join(', ') + ", \"final\", 0)"; |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
319 |
}, |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
320 |
}] |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
321 |
}, |
| 598 | 322 |
'version-django2': { |
323 |
src: ['../server/python/django2/renkanmanager/__init__.py'], |
|
324 |
overwrite: true, |
|
325 |
replacements: [{ |
|
326 |
from: /^(\s*)VERSION\s*=\s*\([ \t]*\d+[ \t]*,[ \t]*\d+[ \t]*,[ \t]*\d+[ \t]*,[ \t]*\"final\"[ \t]*\,[ \t]*0[ \t]*\)[ \t]*$/m, |
|
327 |
to: function(matchedWord, index, fullText, regexMatches) { |
|
328 |
var array_version = grunt.config.get('setversion.version').split('.'); |
|
329 |
var array_version_length = array_version.length; |
|
330 |
for(let i=0;i<3-array_version_length;i++) { |
|
331 |
array_version.push('0'); |
|
332 |
} |
|
333 |
return regexMatches[0]+"VERSION = (" + array_version.join(', ') + ", \"final\", 0)"; |
|
334 |
}, |
|
335 |
}] |
|
336 |
}, |
|
|
500
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
337 |
}, |
|
497
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
338 |
}); |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
339 |
|
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
340 |
// Load the plugins. |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
341 |
grunt.loadNpmTasks('grunt-contrib-requirejs'); |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
342 |
grunt.loadNpmTasks('grunt-contrib-uglify'); |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
343 |
grunt.loadNpmTasks('grunt-contrib-concat'); |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
344 |
grunt.loadNpmTasks('grunt-contrib-clean'); |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
345 |
grunt.loadNpmTasks('grunt-contrib-cssmin'); |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
346 |
grunt.loadNpmTasks('grunt-contrib-copy'); |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
347 |
grunt.loadNpmTasks('grunt-contrib-jshint'); |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
348 |
grunt.loadNpmTasks('grunt-contrib-connect'); |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
349 |
grunt.loadNpmTasks('grunt-bower-task'); |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
350 |
grunt.loadNpmTasks('grunt-contrib-jst'); |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
351 |
grunt.loadNpmTasks('grunt-contrib-watch'); |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
352 |
grunt.loadNpmTasks('grunt-umd'); |
|
500
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
353 |
grunt.loadNpmTasks('grunt-text-replace'); |
|
290
8a6eb26ac87f
move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
354 |
|
|
497
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
355 |
// Default task(s). |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
356 |
grunt.registerTask('base', [ |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
357 |
'jshint', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
358 |
'bower:install', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
359 |
'copy:vendors', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
360 |
'clean:renkan', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
361 |
'requirejs', |
|
647
eaaa1efce396
add examples for youtube node types, add a way to open node urls with a single click
ymh <ymh.work@gmail.com>
parents:
600
diff
changeset
|
362 |
'jst:compile', |
|
eaaa1efce396
add examples for youtube node types, add a way to open node urls with a single click
ymh <ymh.work@gmail.com>
parents:
600
diff
changeset
|
363 |
'jst:compile_test', |
|
497
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
364 |
'concat', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
365 |
'uglify', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
366 |
'cssmin', |
|
561
5feabdc61980
correct grunt for correct handling of screenfull in umd. publish new version
ymh <ymh.work@gmail.com>
parents:
555
diff
changeset
|
367 |
'umd:screenfull', |
|
497
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
368 |
'copy:renkan', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
369 |
'copy:renkan_css', |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
370 |
'clean:renderer', |
|
651
fd209e3af0c7
Correct renkan edition in java server. reactivate the umd compilation for ckeditor.
ymh <ymh.work@gmail.com>
parents:
647
diff
changeset
|
371 |
'umd:ckeditor-core', |
|
497
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
372 |
]); |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
373 |
grunt.registerTask('default', ['base', 'clean:jst']); |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
374 |
grunt.registerTask('copy-server', 'copy files to server part', function() { |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
375 |
grunt.task.run(['copy:renkan_server']); |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
376 |
}); |
|
3ba7920facf4
Correct dependency and loading problem for ckeditor with dojo
ymh <ymh.work@gmail.com>
parents:
490
diff
changeset
|
377 |
grunt.registerTask('dev', ['base', 'connect:server', 'watch']); |
|
500
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
378 |
grunt.registerTask('set-version', function(version) { |
|
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
379 |
grunt.config.set('setversion.version', version); |
| 598 | 380 |
grunt.task.run(['replace:version-bower-package', 'replace:version-gradle', 'replace:version-maven', 'replace:version-django', 'replace:version-django2']); |
|
500
fb3a062bc720
define grunt task to change version numbers in projects files
ymh <ymh.work@gmail.com>
parents:
497
diff
changeset
|
381 |
}); |
|
290
8a6eb26ac87f
move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
382 |
|
|
8a6eb26ac87f
move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
383 |
|
|
8a6eb26ac87f
move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
384 |
}; |