https://github.com/alexeyraspopov/modular
Run your CJS Modules in browser without any build scripts. Simple CommonJS Module/1.1 proposal implementation
https://github.com/alexeyraspopov/modular
Last synced: about 1 month ago
JSON representation
Run your CJS Modules in browser without any build scripts. Simple CommonJS Module/1.1 proposal implementation
- Host: GitHub
- URL: https://github.com/alexeyraspopov/modular
- Owner: alexeyraspopov
- Created: 2013-10-20T13:52:49.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-27T20:45:55.000Z (over 10 years ago)
- Last Synced: 2025-03-18T03:12:31.266Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 387 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Modular
Simple [CommonJS Module/1.1](http://wiki.commonjs.org/wiki/Modules/1.1) proposal implementation
## Features
* Works in browsers. You don't need to rebuild your project on every change
* Dev Tools compatibility. You are able to debug your scripts in browser
* You can work with your modules via console (`require` is available in global scope)
* You can use config file for Browserify build## Install
Install via [Bower](http://bower.io/)
$ bower install modular
## Setup
Include main script file. Set config file in `data-setup` attribute.
Simple config file should consists of aliases list and entry points.
{
"alias": {
"utils": "./components/utils/utils.js",
"promise": "./components/promise/promise.js",
},
"start": [
"./initial.js"
]
}## License
[MIT License](http://en.wikipedia.org/wiki/MIT_License) (c) Alexey Raspopov