Skip to content

Commit 918bcab

Browse files
Erwan CarriouErwan Carriou
authored andcommitted
- rename monoco into SyrupJS
1 parent 132d6e0 commit 918bcab

File tree

132 files changed

+10787
-10427
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+10787
-10427
lines changed

.jshintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"globals": {
3-
"monoco": true
3+
"syrup": true
44
},
55
"node" : true,
66
"supernew": true

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: node_js
22
node_js:
3-
- "0.10"
3+
- "4.1"
44
before_script:
55
- npm install jasmine-node -g
66
script:

Gruntfile.js

Lines changed: 56 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
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-
2428
module.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
};

LICENSE

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
1-
monoco
2-
A Model and a NoSQL Database for Components
3-
http://monoco.io/
1+
SyrupJS
2+
The System Runtime Platform
3+
http://syrupjs.systemdesigner.io
44
@ecarriou
55

6-
Copyright (C) 2015 - Erwan Carriou
7-
8-
This program is free software: you can redistribute it and/or modify
9-
it under the terms of the GNU General Public License as published by
10-
the Free Software Foundation, either version 3 of the License, or
11-
(at your option) any later version.
6+
The MIT License (MIT)
127

13-
This program is distributed in the hope that it will be useful,
14-
but WITHOUT ANY WARRANTY; without even the implied warranty of
15-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16-
GNU General Public License for more details.
17-
18-
You should have received a copy of the GNU General Public License
19-
along with this program. If not, see <http://www.gnu.org/licenses/>.
8+
Copyright (c) 2016 Erwan Carriou
9+
10+
Permission is hereby granted, free of charge, to any person obtaining a copy
11+
of this software and associated documentation files (the "Software"), to deal
12+
in the Software without restriction, including without limitation the rights
13+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14+
copies of the Software, and to permit persons to whom the Software is
15+
furnished to do so, subject to the following conditions:
16+
17+
The above copyright notice and this permission notice shall be included in all
18+
copies or substantial portions of the Software.
19+
20+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26+
SOFTWARE.

0 commit comments

Comments
 (0)