1- /*
2- * monoco
3- * A Model and a NoSQL Database for Components
4- * http://monoco.io/
1+ /*
2+ * SyrupJS
3+ * The System Runtime Platform
4+ * http://syrupjs.systemdesigner.io
55 * @ecarriou
6- *
7- * Copyright (C) 2015 - Erwan Carriou
8- *
9- * This program is free software: you can redistribute it and/or modify
10- * it under the terms of the GNU General Public License as published by
11- * the Free Software Foundation, either version 3 of the License, or
12- * (at your option) any later version.
13- *
14- * This program is distributed in the hope that it will be useful,
15- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17- * GNU General Public License for more details.
18- *
19- * You should have received a copy of the GNU General Public License
20- * along with this program. If not, see <http://www.gnu.org/licenses/>.
6+ *
7+ * Copyright (c) 2016 Erwan Carriou
8+ *
9+ * Permission is hereby granted, free of charge, to any person obtaining a copy
10+ * of this software and associated documentation files (the "Software"), to deal
11+ * in the Software without restriction, including without limitation the rights
12+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13+ * copies of the Software, and to permit persons to whom the Software is
14+ * furnished to do so, subject to the following conditions:
15+ *
16+ * The above copyright notice and this permission notice shall be included in all
17+ * copies or substantial portions of the Software.
18+ *
19+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25+ * SOFTWARE.
2126 */
2227
23-
2428module . exports = function ( grunt ) {
2529 grunt . initConfig ( {
2630 pkg : grunt . file . readJSON ( 'package.json' ) ,
@@ -48,7 +52,7 @@ module.exports = function (grunt) {
4852 files : [ 'build/system/*.js' , 'build/system/*.json' ]
4953 } ,
5054 yuidoc : {
51- monoco : {
55+ syrup : {
5256 name : '<%= pkg.name %>' ,
5357 description : '<%= pkg.description %>' ,
5458 version : '<%= pkg.version %>' ,
@@ -79,43 +83,43 @@ module.exports = function (grunt) {
7983 } ,
8084 customReporters : [ ]
8185 } ,
82- monoco : {
86+ syrup : {
8387 specs : [
8488 "test/module/**" ,
85- "test/monoco /**"
89+ "test/syrup /**"
8690 ]
8791 }
8892 } ,
8993 karma : {
90- monoco : {
94+ syrup : {
9195 configFile : 'karma.conf.js'
9296 }
9397 } ,
9498 browserify : {
95- monocoDebug : {
96- src : [ 'src/monoco .js' ] ,
97- dest : 'build/monoco .js' ,
99+ syrupDebug : {
100+ src : [ 'src/syrup .js' ] ,
101+ dest : 'build/system-runtime .js' ,
98102 options : {
99103 browserifyOptions : {
100- standalone : 'monoco ' ,
104+ standalone : 'syrup ' ,
101105 debug : true
102106 }
103107 }
104108 } ,
105- monoco : {
106- src : [ 'src/monoco .js' ] ,
107- dest : 'build/monoco .min.js' ,
109+ syrup : {
110+ src : [ 'src/syrup .js' ] ,
111+ dest : 'build/system-runtime .min.js' ,
108112 options : {
109113 browserifyOptions : {
110- standalone : 'monoco '
114+ standalone : 'syrup '
111115 }
112116 }
113117 }
114118 } ,
115119 uglify : {
116120 dist : {
117121 files : {
118- 'build/<%= pkg.name %>.min.js' : [ '<%= browserify.monoco .dest %>' ]
122+ 'build/<%= pkg.name %>.min.js' : [ '<%= browserify.syrup .dest %>' ]
119123 }
120124 }
121125 } ,
@@ -140,7 +144,7 @@ module.exports = function (grunt) {
140144 }
141145 } ,
142146 files : {
143- 'build/monoco .json' : [ 'src/template/banner/system.txt' ]
147+ 'build/syrup .json' : [ 'src/template/banner/system.txt' ]
144148 }
145149 } ,
146150 systemBehaviors : {
@@ -173,7 +177,7 @@ module.exports = function (grunt) {
173177 }
174178 } ,
175179 files : {
176- 'build/monoco .json' : [ 'build/monoco .json' , 'src/system/behaviors/*/*.json' ]
180+ 'build/syrup .json' : [ 'build/syrup .json' , 'src/system/behaviors/*/*.json' ]
177181 }
178182 } ,
179183 systemSchemas : {
@@ -195,7 +199,7 @@ module.exports = function (grunt) {
195199 }
196200 } ,
197201 files : {
198- 'build/monoco .json' : [ 'build/monoco .json' , 'src/system/schemas/*.json' ]
202+ 'build/syrup .json' : [ 'build/syrup .json' , 'src/system/schemas/*.json' ]
199203 }
200204 } ,
201205 systemTypes : {
@@ -217,7 +221,7 @@ module.exports = function (grunt) {
217221 }
218222 } ,
219223 files : {
220- 'build/monoco .json' : [ 'build/monoco .json' , 'src/system/types/*.json' ]
224+ 'build/syrup .json' : [ 'build/syrup .json' , 'src/system/types/*.json' ]
221225 }
222226 } ,
223227 systemComponents : {
@@ -251,7 +255,7 @@ module.exports = function (grunt) {
251255 }
252256 } ,
253257 files : {
254- 'build/monoco .json' : [ 'build/monoco .json' , 'src/system/components/*/*.json' ]
258+ 'build/syrup .json' : [ 'build/syrup .json' , 'src/system/components/*/*.json' ]
255259 }
256260 } ,
257261 systemFill : {
@@ -266,15 +270,15 @@ module.exports = function (grunt) {
266270 system . behaviors = grunt . option ( 'behaviors' ) ;
267271
268272 // process addon in order to insert subsytem
269- system . components . MonocoSystem = { } ;
273+ system . components . SyrupSystem = { } ;
270274
271275 grunt . file . recurse ( 'src/addons' , loadSubSystem ) ;
272276
273277 function loadSubSystem ( abspath , rootdir , subdir , filename ) {
274278 if ( filename . indexOf ( '.' ) !== 0 ) {
275279 var subSystem = grunt . file . readJSON ( abspath ) ;
276280
277- system . components . MonocoSystem [ subSystem . _id ] = {
281+ system . components . SyrupSystem [ subSystem . _id ] = {
278282 "_id" : subSystem . _id ,
279283 "name" : subSystem . name ,
280284 "version" : subSystem . version ,
@@ -289,23 +293,23 @@ module.exports = function (grunt) {
289293 }
290294 } ,
291295 files : {
292- 'build/monoco .json' : [ 'build/monoco .json' ]
296+ 'build/syrup .json' : [ 'build/syrup .json' ]
293297 }
294298 } ,
295299 systemModule : {
296300 files : {
297- 'build/system/system.js' : [ 'src/template/banner/systemmodule.txt' , 'build/monoco .json' , 'src/template/footer/systemmodule.txt' ]
301+ 'build/system/system.js' : [ 'src/template/banner/systemmodule.txt' , 'build/syrup .json' , 'src/template/footer/systemmodule.txt' ]
298302 }
299303 } ,
300304 licence : {
301- src : [ 'src/template/banner/licence.txt' , 'build/monoco .min.js' ] ,
302- dest : 'build/monoco .min.js'
305+ src : [ 'src/template/banner/licence.txt' , 'build/system-runtime .min.js' ] ,
306+ dest : 'build/system-runtime .min.js'
303307 }
304308 } ,
305309 "merge-json" : {
306- monoco : {
307- src : [ "src/addons/*.json" , "build/monoco .json" ] ,
308- dest : "build/monoco .json"
310+ syrup : {
311+ src : [ "src/addons/*.json" , "build/syrup .json" ] ,
312+ dest : "build/syrup .json"
309313 }
310314 }
311315
@@ -349,7 +353,7 @@ module.exports = function (grunt) {
349353
350354 // test task
351355 grunt . registerTask ( 'test' , [
352- 'jasmine_nodejs:monoco '
356+ 'jasmine_nodejs:syrup '
353357 ] ) ;
354358
355359 // debug task
@@ -360,7 +364,7 @@ module.exports = function (grunt) {
360364 'jsbeautifier' ,
361365 'jshint' ,
362366 'test' ,
363- 'browserify:monocoDebug '
367+ 'browserify:syrupDebug '
364368 ] ) ;
365369
366370 // build task
@@ -371,11 +375,11 @@ module.exports = function (grunt) {
371375 'jsbeautifier' ,
372376 'jshint' ,
373377 'test' ,
374- 'browserify:monocoDebug ' ,
375- 'browserify:monoco ' ,
378+ 'browserify:syrupDebug ' ,
379+ 'browserify:syrup ' ,
376380 'uglify' ,
377381 'concat:licence' ,
378- 'karma:monoco ' ,
382+ 'karma:syrup ' ,
379383 'yuidoc'
380384 ] ) ;
381385} ;
0 commit comments