Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

Commit

Permalink
Merge pull request #17 from CapMousse/dev
Browse files Browse the repository at this point in the history
Version 3.0.0
  • Loading branch information
CapMousse authored Sep 7, 2016
2 parents af39bc8 + a5d373b commit 1c2b094
Show file tree
Hide file tree
Showing 26 changed files with 480 additions and 3,594 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: node_js
script: karma start test/karma.conf.js --single-run
node_js:
- "0.10"

before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Change Log
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [3.0.0] - 2016-09-07
### Added
- CSS loading
- Changelog file
- License file
- Travis ci

### Fixed
- Multiple uses of Include crash
- External js crash
- External js with module name crash
- Stability
8 changes: 8 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
The MIT License (MIT)
Copyright (c) 2011-2016 : Jérémy Barbe and other contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 changes: 21 additions & 9 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Include.js
# Include.js [![Build Status](https://travis-ci.org/CapMousse/include.js.svg?branch=master)](https://travis-ci.org/CapMousse/include.js)

**Include.js** is a tiny (800b minified and gziped) Javascript loader. It can load normal javascript files but is more efficient with **web modules**.
**Include.js** is a tiny (1,2ko minified and gziped) Javascript loader. It can load normal javascript files or css but is more efficient with **web modules**.

When it's possible, it will use async loading to speed up you page and will ensure the good executions of your script. It support **nested dependencies**, a useful feature to create clean and flexible javascript application.

Expand All @@ -9,7 +9,7 @@ Include.js was tested on :
- Chrome √
- Opera √
- Safari √
- IE √ (IE 7+)
- IE (> 6) √

## How to use

Expand All @@ -35,7 +35,7 @@ include('App.Planet', function(){
})
```

Modules can use dependencies to work, as an array on second place on `include()` :
Modules can have dependencies to work, as an array on second argument off `include()` :

```javascript
include('App.Nasa', ['App/Rover.js', 'App.Planet'], function(Rover, Planet){
Expand All @@ -59,17 +59,29 @@ include('App.Nasa', [['Rover', 'http://your/url/here/script/rover/'], 'App.Plane
});
```

And you can load CSS
```javascript
include('path/to/css.css', function(){
//do something when style is apply
})
```


## Already using a script loader ?

If you already use a script loader you can replace it with **Include.js** without problemes and without rewriting code. `define()` and `require()` are supported by **Include.js**. Let's be light !

## Tests

Unit test are made with [Jasmine](http://pivotal.github.com/jasmine/) and can be run by launching `Tests/SpecRunner.html` on any browser.
## Developed by

- Jérémy Barbe
- [jeremy.sh](http://jeremy.sh)
- [@capitainemousse](https://twitter.com/capitainemousse)


Created by [Jérémy Barbe](http://jeremy.sh)
**Include.js** is distributed under the MIT license.

## About
## License

Created by [Jérémy Barbe](htt://www.shwaark.com)
**Include.js** is distributed under the MIT license.
See LICENSE file
51 changes: 0 additions & 51 deletions Tests/SpecRunner.html

This file was deleted.

3 changes: 0 additions & 3 deletions Tests/data/f.js

This file was deleted.

20 changes: 0 additions & 20 deletions Tests/lib/jasmine-1.2.0/MIT.LICENSE

This file was deleted.

Loading

0 comments on commit 1c2b094

Please sign in to comment.