Permalink
Browse files

Removing references to bower and bower libraries

  • Loading branch information...
1 parent c45fd93 commit d4d9a4b1ebaa2941f049c9f8004e327b5e7b40c9 @BigAB BigAB committed Mar 15, 2016
Showing with 146 additions and 43,531 deletions.
  1. +0 −1 .gitignore
  2. +1 −5 .jshintrc
  3. +0 −1 .npmignore
  4. +0 −1 .travis.yml
  5. +7 −14 Gruntfile.js
  6. +0 −41 bower.json
  7. +1 −17 build/config_meta_defaults.js
  8. +1 −9 build/config_stealPluginify.js
  9. +0 −46 builder.json
  10. +0 −5 component/test.html
  11. +1 −1 construct/construct.js
  12. +5 −5 construct/super/super.js
  13. +38 −86 control/control_test.js
  14. +0 −24 control/doc/destroy.md
  15. +1 −24 control/doc/element.md
  16. +2 −3 documentjs.json
  17. +6 −7 guides/getting-started-tutorial/setup.md
  18. +0 −179 guides/setting-up-canjs/setting-up-canjs.md
  19. +1 −2 guides/setup.md
  20. +12 −12 guides/why.md
  21. +5 −6 model/model_test.js
  22. +8 −34 package.json
  23. +0 −68 test/amd/dojo.html
  24. +0 −70 test/amd/jquery-2.html
  25. +12 −8 test/amd/jquery.html
  26. +0 −69 test/amd/mootools.html
  27. +0 −69 test/amd/yui.html
  28. +0 −69 test/amd/zepto.html
  29. +0 −76 test/compatibility/dojo.html
  30. +0 −78 test/compatibility/jquery-2.html
  31. +3 −4 test/compatibility/jquery.html
  32. +0 −76 test/compatibility/mootools.html
  33. +0 −76 test/compatibility/yui.html
  34. +0 −76 test/compatibility/zepto.html
  35. +0 −78 test/dev/dojo.html
  36. +0 −80 test/dev/jquery-2.html
  37. +2 −3 test/dev/jquery.html
  38. +0 −78 test/dev/mootools.html
  39. +0 −78 test/dev/yui.html
  40. +0 −78 test/dev/zepto.html
  41. +0 −81 test/dist/dojo.html
  42. +0 −83 test/dist/jquery-2.html
  43. +0 −83 test/dist/jquery.html
  44. +0 −81 test/dist/mootools.html
  45. +0 −81 test/dist/yui.html
  46. +0 −81 test/dist/zepto.html
  47. +0 −65 test/dojo.html
  48. +0 −53 test/index.html
  49. +0 −67 test/jquery-2.html
  50. +0 −1 test/jquery.html
  51. +0 −65 test/mootools.html
  52. +13 −10 test/templates/__configuration__-amd.html.ejs
  53. +3 −4 test/templates/__configuration__-compat.html.ejs
  54. +2 −3 test/templates/__configuration__-dev.html.ejs
  55. +2 −3 test/templates/__configuration__-dist.html.ejs
  56. +0 −1 test/templates/__configuration__.html.ejs
  57. +0 −65 test/yui.html
  58. +0 −65 test/zepto.html
  59. +2 −31 util/attr/attr_test.js
  60. +0 −17,736 util/dojo/dojo-1.8.1.js
  61. +0 −158 util/dojo/dojo.html
  62. +0 −687 util/dojo/dojo.js
  63. +0 −493 util/dojo/nodelist-traverse.js
  64. +5 −19 util/events/attributes.md
  65. +4 −18 util/events/inserted.md
  66. +4 −19 util/events/removed.md
  67. +0 −28 util/func.js
  68. +2 −0 util/inserted/inserted.js
  69. +0 −411 util/mootools/mootools.js
  70. +1 −2 util/vdom/document/test.html
  71. +0 −20,347 util/yui/yui-3.7.3.js
  72. +0 −542 util/yui/yui.js
  73. +0 −4 util/zepto/thing.json
  74. +0 −401 util/zepto/zepto.js
  75. +0 −75 util/zepto/zepto_test.js
  76. +0 −1 view/autorender/tests/basics.html
  77. +1 −2 view/autorender/tests/requirejs-basics.html
  78. +1 −3 view/autorender/tests/standalone-basics.html
  79. +0 −1 view/autorender/tests/steal-viewmodel.html
  80. +0 −1 view/href/tests/basics.html
  81. +0 −1 view/stache/test.html
  82. +0 −1 view/target/test.html
  83. +0 −1 view/test.html
View
@@ -7,7 +7,6 @@ util/can.*.js
docs*
*.DS_Store
.idea
-bower_components/
test/pluginified/latest.js
docco
test/builders/steal-tools/dist/
View
@@ -1,8 +1,8 @@
{
"globals": {
+ "define": true,
"steal": true,
"can": true,
- "Zepto": true,
"QUnit": true,
"System": true,
"SimpleDOM": true,
@@ -40,11 +40,7 @@
"loopfunc": true,
"smarttabs": true,
"maxerr" : 200,
- "dojo": true,
- "mootools": true,
- "yui": true,
"browser": true,
"phantom": true,
- "rhino": true,
"node": true
}
View
@@ -6,7 +6,6 @@ standalone*
docs*
*.DS_Store
.idea
-bower_components/
test/pluginified/latest.js
docco
test/
View
@@ -1,7 +1,6 @@
sudo: false
language: node_js
node_js: 0.10
-before_script: node_modules/.bin/bower install
script: npm test
before_install:
- "export DISPLAY=:99.0"
View
@@ -96,7 +96,7 @@ module.exports = function (grunt) {
options: function (config) {
return {
- pluginified: ['2.0.5'],
+ pluginified: ['3.0.0'],
dist: 'can.' + config
};
}
@@ -121,7 +121,7 @@ module.exports = function (grunt) {
},
// Removes the dist folder
clean: {
- test: ['test/pluginified/latest.js'],
+ test: ['test/pluginified/latest.js', 'test/dist/'],
build: ['dist/']
},
'string-replace': {
@@ -160,8 +160,7 @@ module.exports = function (grunt) {
},
lib: [
'component/**/*.js', 'compute/**/*.js', 'construct/**/*.js', 'control/**/*.js', 'list/**/*.js',
- 'map/**/*.js', 'model/**/*.js', 'observe/**/*.js','route/**/*.js', 'util/**/*.js','view/**/*.js',
- '!util/yui/yui-3.7.3.js', '!util/dojo/dojo-1.8.1.js', '!util/dojo/nodelist-traverse.js'
+ 'map/**/*.js', 'model/**/*.js', 'observe/**/*.js','route/**/*.js', 'util/**/*.js','view/**/*.js'
]
},
jsbeautifier: {
@@ -182,7 +181,7 @@ module.exports = function (grunt) {
src : [
'component/**/*.js', 'compute/**/*.js', 'construct/**/*.js', 'control/**/*.js', 'list/**/*.js',
'map/**/*.js', 'model/**/*.js', 'observe/**/*.js','route/**/*.js', 'util/**/*.js','view/**/*.js',
- '!util/dojo/dojo-1.8.1.js', '!util/dojo/nodelist-traverse.js','!**/*_test.js'
+ '!**/*_test.js'
],
expand : true
}
@@ -194,7 +193,7 @@ module.exports = function (grunt) {
options : {
jshint : grunt.file.readJSON('.jshintrc'),
title : "CanJS Source",
- exclude : /bower_components\|dist\|docs\|guides\|lib\|node_modules\|src\|examples\|dojo\-\|demos/
+ exclude : /bower_components\|dist\|docs\|guides\|lib\|node_modules\|src\|examples\|demos/
},
files: {
'plato/src': '<%= docco.dev.src %>'
@@ -251,15 +250,14 @@ module.exports = function (grunt) {
'test/*.html',
'!test/demos_and_tests.html',
'!test/performance-loading.html',
- '!test/index.html',
- '!test/dojo.html'
+ '!test/index.html'
],
amd: [ 'test/amd/*.html' ],
dist: [ 'test/dist/*.html' ],
compatibility: [ 'test/compatibility/*.html' ],
dev: [ 'test/dev/*.html' ],
individuals: [ '**/test.html', '!view/autorender/test.html',
- '!bower_components/**/test.html', '!node_modules/**/test.html' ]
+ '!node_modules/**/test.html' ]
}
});
grunt.registerTask('browserify-package', function(){
@@ -295,11 +293,6 @@ module.exports = function (grunt) {
grunt.registerTask('build:amd',[
'clean:build',
'steal-export:amd',
- 'steal-export:amd-util-jquery',
- 'steal-export:amd-util-dojo',
- 'steal-export:amd-util-yui',
- 'steal-export:amd-util-zepto',
- 'steal-export:amd-util-mootools',
'string-replace:version'
]);
View
@@ -1,41 +0,0 @@
-{
- "name": "canjs",
- "repo": "canjs/canjs",
- "description": "Can do JavaScript",
- "version": "2.3.17",
- "main": "can.js",
- "keywords": [
- "mvc",
- "component",
- "amd"
- ],
- "license": "MIT",
- "devDependencies": {
- "qunit": "~1.14.0",
- "zepto": "~1.0.0",
- "benchmark": "~1.0.0",
- "requirejs": "~2.1.10",
- "mootools": "~1.5.1",
- "jquery": "^1.12.0",
- "dojo": "~1.10.4",
- "modernizr": "~2.8.3"
- },
- "system": {
- "map": {
- "can/can": "can",
- "jquery/jquery": "jquery"
- },
- "paths": {
- "can": "bower_components/canjs/can.js",
- "can/*": "bower_components/canjs/*.js"
- },
- "ext": {
- "stache": "can/view/stache/system"
- },
- "buildConfig": {
- "map": {
- "can/util/util": "can/util/domless/domless"
- }
- }
- }
-}
@@ -15,25 +15,15 @@ var reverseNormalize = function(name, load, baseName, baseLoad){
return "jquery";
}
- if(name === 'mootools/mootools' || name === 'yui/yui' || name === 'zepto/zepto') {
- return name.split('/')[0];
- }
-
if(load.address.indexOf("node_modules") >= 0 ||
- load.address.indexOf("bower_components") >= 0 ||
load.address.indexOf("lib/") >= 0) {
return name.replace(/@.*/,"");
}
-
if(name === "util/library") {
return "can/util/library";
}
- if(name === "dojo" || name === "dojo/dojo") {
- return "dojo/main";
- }
-
if(name === "can") {
return name;
}
@@ -77,11 +67,7 @@ module.exports = function(){
minify: true
},
ignorelibs: {
- ignore: ["dojo","dojo/dojo","dojo/main",
- "jquery","jquery/jquery",
- "mootools/mootools","mootools",
- "zepto","zepto/zepto",
- "yui","yui/yui"].concat([function(moduleName, load){
+ ignore: ["jquery","jquery/jquery"].concat([function(moduleName, load){
if(load.address.indexOf("node_modules") >= 0) {
return true;
}
@@ -94,5 +80,3 @@ module.exports = function(){
}
};
};
-
-
@@ -251,10 +251,6 @@ module.exports = function(){
}
}
},
- "standalone & steal - core & utils - dojo": makeStandaloneAndStealUtil("dojo"),
- "standalone & steal - core & utils - yui": makeStandaloneAndStealUtil("yui"),
- "standalone & steal - core & utils - zepto": makeStandaloneAndStealUtil("zepto"),
- "standalone & steal - core & utils - mootools": makeStandaloneAndStealUtil("mootools"),
"amd": {
system: makeSystemConfig({
main: allModuleNames.concat(["can"]),
@@ -274,10 +270,6 @@ module.exports = function(){
}
}
},
- "amd-util-jquery": makeAmdUtil("jquery"),
- "amd-util-dojo": makeAmdUtil("dojo"),
- "amd-util-yui": makeAmdUtil("yui"),
- "amd-util-zepto": makeAmdUtil("zepto"),
- "amd-util-mootools": makeAmdUtil("mootools")
+ "amd-util-jquery": makeAmdUtil("jquery")
};
};
View
@@ -263,52 +263,6 @@
}
}
- },
- "jquery-2": {
- "description": "jQuery (2.x)",
- "hidden": true,
- "library": "bower_components/jquery/dist/jquery.js",
- "steal": {
- "paths": {
- "jquery/jquery": "bower_components/jquery/dist/jquery.js"
- }
- }
- },
- "zepto": {
- "description": "Zepto",
- "library": "bower_components/zepto/zepto.js",
- "steal": {
- "map": {
- "can/util/util": "can/util/zepto/zepto"
- }
- }
- },
- "mootools": {
- "description": "Mootools",
- "library": "bower_components/mootools/dist/mootools-core.js",
- "steal": {
- "map": {
- "can/util/util": "can/util/mootools/mootools"
- }
- }
- },
- "yui": {
- "description": "YUI",
- "library": "util/yui/yui-3.7.3.js",
- "steal": {
- "map": {
- "can/util/util": "can/util/yui/yui"
- }
- }
- },
- "dojo": {
- "description": "Dojo",
- "library": "util/dojo/dojo-1.8.1.js",
- "steal": {
- "map": {
- "can/util/util": "can/util/dojo/dojo"
- }
- }
}
}
}
View
@@ -1,5 +1,4 @@
<title>can/component</title>
-<script type="text/javascript" src="../bower_components/modernizr/modernizr.js"></script>
<script src="../node_modules/steal/steal.js" main="can/component/component_test"></script>
<div id="qunit-fixture"></div>
@@ -12,7 +11,3 @@
<script src="production.js"></script>
</body>
</html>
-
-
-
-
@@ -587,7 +587,7 @@ can.extend(can.Construct, {
fullName: fullName,
_fullName: _fullName
});
- // Dojo and YUI extend undefined
+
if (shortName !== undefined) {
Constructor.shortName = shortName;
}
@@ -1,12 +1,12 @@
var can = require('can/util/util');
require('can/construct/construct');
// tests if we can get super in .toString()
-var isFunction = can.isFunction,
- fnTest = /xyz/.test(function () {
+var isFunction = can.isFunction;
+var fnTest = /xyz/.test(function () {
return this.xyz;
- }) ? /\b_super\b/ : /.*/,
- getset = ['get', 'set'],
- getSuper = function (base, name, fn) {
+ }) ? /\b_super\b/ : /.*/;
+var getset = ['get', 'set'];
+var getSuper = function (base, name, fn) {
return function () {
var tmp = this._super,
ret;
Oops, something went wrong.

0 comments on commit d4d9a4b

Please sign in to comment.