Skip to content

Commit 91b76f4

Browse files
committed
Bower support and small fixes
2 parents a77050f + 0b2cab9 commit 91b76f4

12 files changed

Lines changed: 88 additions & 35 deletions

File tree

β€Ž.gitignoreβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
.bower.json
3+
npm-debug.log
4+
/node_modules

β€ŽCHANGELOGβ€Ž

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
May 10, 2014 - v1.0.2
2+
3+
* Added bower.json and updated package.json (devDependencies, ...)
4+
* Added .gitignore
5+
* Build : renamed Footer.js and Header.js to Outro.js and Intro.js.
6+
* Grunt : changed banner position with (uglify task).
7+
* Doc : fixed a typo.
8+
19
November 30, 2013 - v1.0.1
210

311
* Build : reorganized the files, added Footer.js and Header.js to optimize the final build file and minification.

β€ŽGruntfile.jsβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ module.exports = function ( grunt )
88
core:
99
{
1010
src: [
11-
'src/Header.js',
11+
'src/Intro.js',
1212
'src/TinyCore.Utils.js',
1313
'src/TinyCore.Toolbox.js',
1414
'src/TinyCore.Error.js',
1515
'src/TinyCore.Module.js',
16-
'src/Footer.js'
16+
'src/Outro.js'
1717
],
1818
dest: 'build/TinyCore.js'
1919
},
@@ -72,7 +72,7 @@ module.exports = function ( grunt )
7272
core:
7373
{
7474
options : {
75-
footer: '/*! TinyCore v<%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd") %>) | (c) 2013 Marc Mignonsin | <%= pkg.license %> license */\n'
75+
banner: '/*! TinyCore v<%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd") %>) | (c) 2013 Marc Mignonsin | <%= pkg.license %> license */\n'
7676
},
7777
files:
7878
{

β€ŽREADME.mdβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# TinyCore.js
22

3-
`Version 1.0.1`
3+
`Version 1.0.2`
44

55
## Overview
66

7-
A tiny JavaScript modular architecture library.
7+
TinyCore is a lightweight library that provides you a modular JavaScript architecture to create scalable, maintainable and fully tested web applications.
88

99
Main sources of inspiration :
1010

@@ -295,7 +295,7 @@ TinyCore comes with a set of built-in utilities functions that are used internal
295295

296296
```js
297297
TinyCore.Utils.extend( obj1, obj2 /*, ... */ )
298-
TinyCore.Utils.forEach( obj, callback )
298+
TinyCore.Utils.forIn( obj, callback )
299299
TinyCore.Utils.isClass( mixed, sClassName )
300300
TinyCore.Utils.isArray( mixed )
301301
TinyCore.Utils.isFunction( mixed )

β€Žbower.jsonβ€Ž

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "TinyCore.js",
3+
"description": "A JavaScript library providing a modular and decoupled architecture that helps you create scalable and easy-to-maintain Web applications.",
4+
"version": "1.0.2",
5+
"main": "build/TinyCore.js",
6+
"license": "MIT",
7+
"ignore": [
8+
"node_modules"
9+
],
10+
"keywords": [
11+
"js","architecture","module","scalable","spa"
12+
],
13+
"authors": [
14+
"Marc Mignonsin"
15+
],
16+
"homepage": "https://github.com/mawrkus/tinycore",
17+
"repository": {
18+
"type": "git",
19+
"url": "https://github.com/mawrkus/TinyCore.git"
20+
}
21+
}

β€Žbuild/TinyCore.jsβ€Ž

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Current version
2424
* @type {String}
2525
*/
26-
version : '1.0.1',
26+
version : '1.0.2',
2727
/**
2828
* Debug mode : if true, error in modules methods and topics subscribers will not be caught,
2929
* if false, errors will be caught and logged using the error handler.
@@ -521,8 +521,13 @@
521521
// Add TinyCore to the environment.
522522
oEnv.TinyCore = TinyCore;
523523

524-
if ( oEnv.define )
524+
if ( oEnv.define && oEnv.define.amd )
525525
{
526526
oEnv.define( 'TinyCore', TinyCore );
527527
}
528+
529+
if ( oEnv.module && oEnv.module.exports )
530+
{
531+
oEnv.module.exports = TinyCore;
532+
}
528533
} ( this ) );

β€Žbuild/TinyCore.min.jsβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpackage.jsonβ€Ž

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
2-
"name": "TinyCore",
3-
"version": "1.0.1",
2+
"name": "TinyCore.js",
3+
"version": "1.0.2",
44
"description": "A JavaScript library providing a modular and decoupled architecture that helps you create scalable and easy-to-maintain Web applications.",
55
"keywords": [
66
"js",
7+
"architecture",
78
"module",
8-
"decoupled architecture",
9-
"scalable"
9+
"scalable",
10+
"spa"
1011
],
1112
"author": "Marc Mignonsin",
1213
"homepage": "https://github.com/mawrkus/tinycore",
@@ -20,22 +21,27 @@
2021
"requirejs": "~2.1.4"
2122
},
2223
"devDependencies": {
23-
"grunt": "~0.4.1",
24-
"grunt-contrib-concat": "~0.3.0",
25-
"grunt-contrib-uglify": "~0.2.6",
26-
"grunt-contrib-jshint": "~0.7.1",
27-
"karma-script-launcher": "~0.1.0",
28-
"karma-firefox-launcher": "~0.1.0",
29-
"karma-html2js-preprocessor": "~0.1.0",
30-
"karma-chrome-launcher": "~0.1.0",
31-
"karma-jasmine": "~0.1.3",
32-
"karma-requirejs": "~0.1.0",
33-
"karma-coffee-preprocessor": "~0.1.0",
34-
"karma-phantomjs-launcher": "~0.1.0",
35-
"karma": "~0.10.4",
36-
"grunt-karma": "~0.6.2",
37-
"karma-opera-launcher": "~0.1.0",
38-
"karma-safari-launcher": "~0.1.1",
39-
"grunt-contrib-clean": "~0.5.0"
24+
"grunt": "~0.4.4",
25+
"grunt-cli": "^0.1.13",
26+
"grunt-contrib-clean": "~0.5.0",
27+
"grunt-contrib-concat": "~0.4.0",
28+
"grunt-contrib-jshint": "~0.10.0",
29+
"grunt-contrib-uglify": "^0.4.0",
30+
"grunt-karma": "^0.8.3",
31+
"karma": "^0.12.15",
32+
"karma-chrome-launcher": "^0.1.3",
33+
"karma-firefox-launcher": "^0.1.3",
34+
"karma-jasmine": "^0.1.5",
35+
"karma-opera-launcher": "^0.1.0",
36+
"karma-phantomjs-launcher": "^0.1.4",
37+
"karma-requirejs": "^0.2.1",
38+
"karma-safari-launcher": "^0.1.1",
39+
"karma-script-launcher": "^0.1.0"
40+
},
41+
"engines": {
42+
"node": ">=0.10"
43+
},
44+
"scripts": {
45+
"test": "node node_modules/karma/bin/karma start test/karma/core.conf.js --single-run --browsers PhantomJS"
4046
}
4147
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Current version
2424
* @type {String}
2525
*/
26-
version : '1.0.1',
26+
version : '1.0.2',
2727
/**
2828
* Debug mode : if true, error in modules methods and topics subscribers will not be caught,
2929
* if false, errors will be caught and logged using the error handler.
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
// Add TinyCore to the environment.
22
oEnv.TinyCore = TinyCore;
33

4-
if ( oEnv.define )
4+
if ( oEnv.define && oEnv.define.amd )
55
{
66
oEnv.define( 'TinyCore', TinyCore );
77
}
8+
9+
if ( oEnv.module && oEnv.module.exports )
10+
{
11+
oEnv.module.exports = TinyCore;
12+
}
813
} ( this ) );

0 commit comments

Comments
Β (0)