Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added applicaiton.js example, index.html page, updated read me
- Loading branch information
Showing
4 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.DS_Store | ||
.DS_Store | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
amd-js-copycat | ||
============== | ||
# AMD JS Copycat | ||
|
||
If you prefer to develop JavaScript with AMD module, this repository helps you to setup the project and create initial file structures. | ||
|
||
## When should I use this? | ||
* I only write pure javascript without template and css files | ||
* I want to write in a modular way | ||
* I want to use AMD | ||
* I want the final JavaScript to be loaded on a site that may or may not have requireJS available | ||
* I want the final JavaScript is requirable | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
define([ | ||
], function(){ | ||
var initialize = function(){ | ||
alert("the application has been loaded!"); | ||
} | ||
|
||
initialize(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Application</title> | ||
<script data-main="../config/development_profile" src="../lib/requirejs/require.js"></script> | ||
</head> | ||
<body> | ||
</body> | ||
</html> |