You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
RequireJS ã¯ã¿ããªä½¿ã£ã¦ãããã¼ãã ä½ããã£ãããããæèé«ããã ãã使ã£ã¨ããï¼ ã»ã»ã»ã¨ãæã£ã¦è©¦ãã«ä½¿ãå§ãã¦ã¿ãã®ã§ããã èªåãä½ããããªå°è¦æ¨¡ãªãã®ã®å ´åã 大å¤ãªå²ã«è¯ãäºããã¾ããªãã®ã§ä½¿ãã®ãæ¢ãã¾ããã 以ä¸ãå¿ããããªã®ã§ãã®çç±ãã¡ã¢ã£ã¦ç½®ãã¾ãã åºæ¬çã«ã1æã®JSãã¡ã¤ã«ã1ã¢ã¸ã¥ã¼ã«ããã¡ã¤ã«åãã³ã¼ãã«å½±é¿ãããããããã£ã¦ãçµåã»å§ç¸®ã¯ r.js ã¨ããå°ç¨ã®ãã¼ã«ãå¿ è¦ã«ãªããGrunt ã® concat ã¨ã uglify ã¨ã使ããªãã AMD ã®ä»æ§ã§ã¯ããJSãã¡ã¤ã«ã®ãªã¹ããé çªéãã«èªã¿è¾¼ã¿/å®è¡ãããã¨ãããã¨ãã§ããªããå®éä½ãå°ã£ããã¨ããã¨ãåå²ãã mocha ãã¹ãã±ã¼ã¹ãé çªéãã«å®è¡ã§ããªããªã£ãã¨ãããã¨ãçµæã¯å¤ãããªãã¦ããé çªéãã«å®è¡ãããªãã¨çµæãè¦è¾ãããåé¡ãèµ·ãã£ãæã«çºè¦ãé£ããããã ãããã¯
Introduction [UPDATE: This post has new 2015 followup] This is about managing dependencies in a well-tested client-side JavaScript codebase, how I got overwhelmed, and how I automated the pieces to make it Just work â¢. The JavaScript world has grown a lot of tools for dependency management. I've dipped my toes into it into the past, but didn't really know much about it, especially on the client-si
Following the yesterdayâs post. This time, using PhantomJS and Grunt. Testem does pick up PhantomJS and can run against it. But, maybe some people just want to use Grunt because they use Grunt for something else such as for making a build. Setting up directories First, letâs create two directories: app and test. âappâ holds the application and âtestâ of course contains test stuff. Inside âappâ dir
If you have been following JavaScript development, you might have seen a lot of posts on modules. It's a hot topic in JavaScript and it's easy to jump on a bandwagon. The truth is that the problem that needs to be solved is very fundamental to the success of your code. Why Modules JavaScript has an inherent lack of a module system... WHOA! WHAT DOES THAT EVEN MEAN!?! If that's the first place your
Optimize (Concatenate and Minify) RequireJS Projects by naorye · Published April 19, 2013 · Updated May 19, 2016 This article will demonstrate you how to concatenate and minify projects that are based on RequireJS. In this article Iâll use several tools that require Node.js. So, if you donât have Node.js yet, install it here. Motivation A lot has been written already about RequireJS. This tool all
iammerrick Hi, I'm Merrick and I love code so much I married it. Can provide proof upon request. Please check out this example project to follow along, I'm sure it will help you make sense of the following babble. requirejs-plugin-integration-testing. It is important that your Require.js plugins are building properly. Following is an approach to test your plugins build step in the browser, along w
ã¡ã¢ã ããå æ¸ãããªãã¨è¡ããªãã¨æãã¤ã¤ãäºåã»ã©è©¦ãã¦ä¸æãè¡ããªãã¦æ¾ç½®ãã¦ãã®ã§åå ¥éããã ãã£ã¬ã¯ããªæ§æ âââ app.js âââ entities âââ libs â âââ backbone-0.9.9-min.js â âââ bootstrap-2.2.2-min.js â âââ jquery-1.8.2-min.js â âââ jquery-layout-1.3.0-30.77.js â âââ jquery-ui-1.9.1.custom.js â âââ jquery.jsPlumb-1.3.16-all.js â âââ micro-log.js â âââ moment-1.7.0-min.js â âââ require-2.1.2-min.js â âââ underscore-1.4.3-min.js âââ main.js âââ mod
r.js RequireJSç¨ã®moduleããã«ãããéã«ã¯r.jsã使ãã¾ãã build.js ãã®æã«ãã«ãè¨å®ã®è¨è¿°ã«ä½¿ç¨ããã®ãbuild.jsã§ãããªæãã§æ¸ãã¾ãã ç°¡åãªä¾ã ã¨ãããªã® ({ baseUrl:'./src', dir : './build', paths:{ jquery:"../lib/jquery-1.8.2", text:'../lib/plugins/text', underscore:'../lib/underscore-1.3.3' } }) åçãªbuild.js build.jsã¯JSONã§ã¯ãªãã¦JSã§ãã JSãªã®ã§å¦çãæ¸ããã¨ãåºæ¥ã¾ãã ä¾ãã°é¢æ°ãã®å ´å®è¡ãå«ãä¸è¨ã®build.jsã¯ãä¸è¨ã®ãã®ã¨åãè¨å®ã表ãã¾ãã ({ baseUrl:'./src', dir : './build', paths:(function ()
ããããããã¼ã¦ã£ã© ããã ãããããã¼ããã¼ãã ã¨ãããã¨ã§ã社å åå¼·ä¼ã§RequireJSã®å ¥éè³æãããããã®ã§ã·ã§ã¢ã å©ç¨ãããã¢ãã¡ã¤ã«ã»ãã http://d.aho.mu/S4mh ãªãã¨ãªãRequireJSãåãã»ããã§ããã¹ã©ã¤ãä¸ã®r.jsã«ãããã«ãã³ãã³ãããgruntãå©ç¨ãããã«ãã試ããããã«ãªã£ã¦ãã¾ãã ããããã¹ãè¦ç¹ ããã¤ãã®è¦ç¹ã ãè¨äºå ã«æååã§ãããã¦ããã¾ããã ã¢ã¸ã¥ã©ã¼ã¨ä¾åé¢ä¿ Webãµã¤ã â Webã¢ã㪠ã¸ã®æµããæç¢ºã«ãªã£ã¦ãã¦ããã³ãã¨ã³ããè¤éåãã¦ãã¦ããä»ã1ã¤ã®JSãã¡ã¤ã«ã«ã¤ãã¤ãã¨CSSã®ãããªããªã§æ¸ãé£ããæä»£ã¯çµããã¤ã¤ããã¾ãã ParisJS #10 : RequireJS ãã®ãããã«ã¤ãã¦ã¯ãä¸è¨ã®ç´ æ´ãããã¹ã©ã¤ããããFigureãæåãã¾ãããåã ã®JavaScriptã®ç²åº¦ãæãã¦ã¢ã¸
Referencing JavaScript. How should it be done? Is there an approach that works for module systems, package managers and project layouts? The following describes the approach in use by AMD/RequireJS and volo, but parts are found in other places like Node, CommonJS and Dojo. The following approach works well for browser-based, web development. Since browser-based development is the harder environmen
REQUIRE JS JSã®éåæãã¼ãã£ã³ã°ã¨ã¢ã¸ã¥ã¼ã«åãè¡ãã©ã¤ãã©ãª å ¬å¼ãµã¤ã 詳ããã¯ãRequireJSå®è·µç·¨ãåç § ä¸è¨é çªã§èªã¿è¾¼ã¿(config-require.jsã¯èªä½ãååã¯ãªãã§ãè¯ã) ï¼script src="config-require.js"> ï¼script data-main="main" src="require.js"> éåæãã¼ãã£ã³ã°ã«ã¤ã㦠ä¸è¨ãåèã«config-require.jsã使 è¨å®å¤ã®è©³ç´°ã¯ãã¡ããåç § var require = { deps: ["some/module1", "my/module2", "a.js", "b.js"], callback: function(module1, module2) { //This function will be called when all the dependen
I've spent a lot of time trying to figure out which Javascript script loading framework to use. RequireJS or HeadJS. I still don't have an answer. Neither website refers to each other. In general To me, it's important to be able to load and execute some Javascript before downloading Javascript modules that aren't needed to render the initial screen. Makes for a more responsive behaviour and gets p
enchant.jsããã°ã©ãã³ã°ã§RequireJSã使ãã¨ãªã«ãå¬ããã®ï¼ã©ããã£ã¦ä½¿ãã®ï¼ã¨ãã話ãæåã¯enchant.jsãCommonJS/Modulesã«åãããã«æ¸ãå¤ããªãããã¡ã ã¨æã£ã¦ãããã§ããããããªãã¨ã¯ãªããã§ãããããã¯ä¾¿å©ã ä½ãå¬ããã®ï¼ éçºæã«ã¯ã²ã¼ã ãè¤æ°ã®JSãã¡ã¤ã«ã«åå²ã§ããã¨ããã¡ãªããããå ¬éæã«ã¯ã²ã¼ã ãã¬ã¤ã«å¿ è¦ãªãã¦ã³ãã¼ãåæ°ãæ¸ãããã¨ããã¡ãªãããå¾ããã¾ãã Why Web Modules? è¤éãªã²ã¼ã ãããªããã¹ã¤ã«game.jsã²ã¨ã¤ã§å åã§ãã¨ããå ´åã«ã¯ãã¯ã£ããè¨ã£ã¦ä¸è¦ãªã¢ãã§ãããããé·ã ã¨éçºãã¦ããã¯ã©ã¹æ°ã10ãè¶ ãã¦ãã¦è¶ é·ãã¹ã¯ãªããã«ãªã£ã¡ã¾ã£ããã¦ã©ã©ã¨ããå ´åã«ã¯ãé æ ®ãªãã³ã¼ããåå²çµ±æ²»ã§ããã¨ããã¡ãªããã¯å¤§ããã§ãããã enchant.jsã¨game.jsãèªã¿è¾¼ã ã¾ãã¯requir
Home/Categories/Backbone/Testing Backbone + RequireJS Applications with Jasmine/ In my previous post, I covered the structure of a Backbone.js application using RequireJS. The next thing (or if you are a TDD fan, the first thing) we do is to run some tests on it. According to Coda Hale: Writing tests for your code may not reduce the number of bugs, but it will make fixing the bugs you inevitably f
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã¡ã³ããã³ã¹
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}