Skip to content

Instantly share code, notes, and snippets.

@doctyper
Created March 25, 2014 00:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doctyper/9752355 to your computer and use it in GitHub Desktop.
Save doctyper/9752355 to your computer and use it in GitHub Desktop.
Browserify + Ractify + Plugin Error
(function () {
"use strict";
// Ractive
var Ractive = require("ractive");
require("ractive-transitions-slide");
console.log(Ractive.transitions);
var Test = require("./test.ract");
var test = new Test({
el: document.body,
data: {
foo: "foo"
}
});
}());
{
"name": "foo",
"version": "0.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"ractify": "^0.3.3",
"ractive": "^0.4.0-pre2",
"browserify": "^3.33.0",
"ractive-transitions-slide": "https://github.com/RactiveJS/Ractive-transitions-slide/tarball/master"
}
}
<!doctype html>
<html>
<head>
</head>
<body>
<script src="bundle.js"></script>
</body>
</html>
<div intro-outro="slide">TEST {{foo}}</div>
@doctyper
Copy link
Author

Generated using the following command:

$ npm install
$ browserify --list --transform ractify --entry index.js --output bundle.js

Output:

~/Desktop/foo/index.js
~/Desktop/foo/node_modules/ractive/build/Ractive.js
~/Desktop/foo/test.ract
~/Desktop/foo/node_modules/ractive-transitions-slide/Ractive-transitions-slide.js
~/Desktop/foo/node_modules/Ractive/build/Ractive.js
~/Desktop/foo/node_modules/ractify/runtime.js
~/Desktop/foo/node_modules/ractive/build/Ractive.runtime.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment