Skip to content

Commit

Permalink
Build UMD compatible standalone with Browserify.
Browse files Browse the repository at this point in the history
  • Loading branch information
tbranyen committed May 9, 2014
1 parent 3f90701 commit ec20bd4
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 26 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ node_js:
- 0.11

before_script:
- npm install -g npm@1.4.3
- npm install -g grunt-cli bower
- npm install
- bower install
Expand Down
5 changes: 0 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ project community instead of a sole proprietorship.
ensure everyone is on board with the change and so you don't spend time
writing a fantastic patch we cannot accept.
* Provide a description of what the patch is/does.
* Provide unit tests in the correct file:
+ `test/comments.js` for changes related to comments.
+ `test/common.js` for changes that affect how Combyne is run.
+ `test/properties.js` for changes that affect how the properties feature
works.
* Make sure you open the pull request onto the `wip` branch and not `master`
for requests that break the API or add significant functionality changes.
* Open pull requests on `master` only with bug fixes and patch related updates.
Expand Down
3 changes: 2 additions & 1 deletion Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ module.exports = ->
@registerTask "test", [
"jshint"
"jscs"
"browserify"
"simplemocha"
"karma:run"
]

@registerTask "default", [
"jshint"
"jscs"
#"synchronizer"
"browserify"
"karma:daemon"
]
11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Combyne

> A template engine that works the way you expect.
**Stable: 0.3.0**

[![Build Status](https://travis-ci.org/tbranyen/combyne.png?branch=master)](https://travis-ci.org/tbranyen/combyne)
[![Coverage Status](https://coveralls.io/repos/tbranyen/combyne/badge.png?branch=master)](https://coveralls.io/r/tbranyen/combyne?branch=master)

Expand Down Expand Up @@ -48,15 +50,6 @@ in your markup:
<script src="combyne.js"></script>
```

### Additional details. ###

#### Compatibility. ####

__Desktop:__ IE 9+, Chrome 13+, Opera 11+, FireFox 3.6+, and Safari 5+.


__Mobile:__ Android Browser 2.3.4+ , Opera 9.80+ , FireFox Beta, and iPad.

## Basic usage. ##

``` javascript
Expand Down
9 changes: 9 additions & 0 deletions build/tasks/browserify.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = ->
@loadNpmTasks "grunt-browserify"

@config "browserify",
options:
transform: ["deamdify"]
standalone: "combyne"

"dist/combyne.js": "lib/index.js"
10 changes: 0 additions & 10 deletions build/tasks/synchronizer.coffee

This file was deleted.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
"grunt-karma-coveralls": "~2.4.4",
"karma-mocha": "~0.1.0",
"karma-coverage": "~0.2.1",
"karma-phantomjs-launcher": "~0.1.4"
"karma-phantomjs-launcher": "~0.1.4",
"browserify": "~3.46.0",
"grunt-browserify": "~2.0.8",
"deamdify": "~0.1.1"
},
"scripts": {
"test": "grunt test coveralls"
Expand Down

0 comments on commit ec20bd4

Please sign in to comment.