Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tarabyte/decanify
Prepare canjs bower package for browserify's debowerify transform
https://github.com/tarabyte/decanify
Last synced: about 2 months ago
JSON representation
Prepare canjs bower package for browserify's debowerify transform
- Host: GitHub
- URL: https://github.com/tarabyte/decanify
- Owner: Tarabyte
- License: apache-2.0
- Created: 2014-12-28T15:24:38.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-29T13:50:29.000Z (about 10 years ago)
- Last Synced: 2024-10-05T08:36:32.499Z (3 months ago)
- Language: JavaScript
- Size: 156 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
decanify![Build Status](https://travis-ci.org/Tarabyte/decanify.svg)
========> Prepare canjs bower package for browserify's debowerify transform
This package was intended to address the very specific problem. To allow [canjs](http://canjs.com) installed via bower package to run smoothly with browserify. Period. No general purpose AMD to CommonJS converting and such.
***
Warning: Consider using [WebPack](https://github.com/webpack/webpack) instead.
***##Why not [deamdify](https://github.com/jaredhanson/deamdify)?
Mainly three reasons:- It seems maintainer has quit the project.
- There are critical open issues.
- It wont work with CanJS due to child dependencies.This package was inspired by deAMDify but heavily rewritten to meet the specific requirements.
Anyway kudos goes to [Jared Hanson](https://github.com/jaredhanson).##Requirements
- CanJS should be installed via `bower install canjs`
- [debowerify](https://github.com/eugeneware/debowerify) is required.
- Allowed file extensions: js or coffee.
- decanify should run before debowerify.
- coffeify should run before decanify.##Example
```javascript
//inside index.js
var can = require('canjs/amd/can');//inside bower_components/canjs/amd/can.js
define(["can/util/library", "can/control/route", "can/model", "can/view/mustache", "can/component"], function(can) {
return can;
});//-t decanify
var can = require('canjs/can/util/library.js');
require('canjs/can/control/route.js');
...
require('canjs/can/component.js');
module.exports = can;//-t debowerify
var can = require('./..\\..\\bower_components\\canjs\\amd\\can');```