Skip to content

Commit

Permalink
EnoFJS is not commonjs compatible anymore
Browse files Browse the repository at this point in the history
When necessary, EnoFJS can be made node compatible with browserify-shim.
  • Loading branch information
EnoF committed Nov 27, 2014
1 parent 4860025 commit 2c78cf6
Show file tree
Hide file tree
Showing 24 changed files with 69 additions and 220 deletions.
29 changes: 8 additions & 21 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// EnoFJS
// Version: 3.1.0
// Version: 3.2.0
//
// Copyright (c) 2014.
//
Expand Down Expand Up @@ -46,15 +46,6 @@ module.exports = function (grunt) {
background: true
}
},
mochaTest: {
test: {
options: {
reporter: 'spec',
require: 'should'
},
src: ['test/nodifyTest.js']
}
},
pkg: grunt.file.readJSON('package.json'),
uglify: {
dist: {
Expand All @@ -69,29 +60,25 @@ module.exports = function (grunt) {
},
files: [
{
'dist/enofjs/min.enof.js': [
'src/node-shim.js',
'dist/enofjs/enof.min.js': [
'src/clazz.js',
'src/*.js'
]
},
{
'dist/enofjs/min.clazz.js': 'src/clazz.js'
},
{
'dist/enofjs/min.node-shim.js': 'src/node-shim.js'
'dist/enofjs/clazz.min.js': 'src/clazz.js'
},
{
'dist/enofjs/min.LinkedHashMap.js': 'src/LinkedHashMap.js'
'dist/enofjs/LinkedHashMap.min.js': 'src/LinkedHashMap.js'
},
{
'dist/enofjs/min.Serializable.js': 'src/Serializable.js'
'dist/enofjs/Serializable.min.js': 'src/Serializable.js'
},
{
'dist/enofjs/min.ArrayConverters.js': 'src/ArrayConverters.js'
'dist/enofjs/ArrayConverters.min.js': 'src/ArrayConverters.js'
},
{
'dist/enofjs/min.whereIt.js': 'src/whereIt.js'
'dist/enofjs/whereIt.min.js': 'src/whereIt.js'
}
]
}
Expand All @@ -104,6 +91,7 @@ module.exports = function (grunt) {
src: [
'*.js',
'bower.json',
'package.json',
'src/{,*/}*.js',
'test/{,*/}*.js',
'!**/lib/**',
Expand All @@ -125,7 +113,6 @@ module.exports = function (grunt) {
grunt.registerTask('test', [
'jshint',
'karma:unit',
'mochaTest:test',
'uglify'
]);

Expand Down
60 changes: 29 additions & 31 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,31 @@
{
"name": "enofjs",
"version": "3.1.0",
"main": "src/enofjs",
"devDependencies": {
"jasmine": "^2.0"
},
"homepage": "http://enof.github.io/EnoFJS/",
"authors": [
"(Andy Tang)"
],
"description": "Enhancing javascript",
"keywords": [
"enof",
"enofjs",
"inheritance",
"linkedHashMap",
"protected",
"super",
"whereIt"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"requirejs": "~2.1.15"
}
"name": "enofjs",
"version": "3.2.0",
"main": "src/enofjs",
"devDependencies": {
"jasmine": "^2.0",
"requirejs": "~2.1.15"
},
"homepage": "http://enof.github.io/EnoFJS/",
"authors": [
"(Andy Tang)"
],
"description": "Enhancing javascript",
"keywords": [
"enof",
"enofjs",
"inheritance",
"linkedHashMap",
"protected",
"super",
"whereIt"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}
2 changes: 1 addition & 1 deletion dist/enofjs/min.ArrayConverters.js

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

2 changes: 1 addition & 1 deletion dist/enofjs/min.LinkedHashMap.js

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

2 changes: 1 addition & 1 deletion dist/enofjs/min.Serializable.js

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

2 changes: 1 addition & 1 deletion dist/enofjs/min.clazz.js

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

Loading

0 comments on commit 2c78cf6

Please sign in to comment.