krasimir / absurd

A JavaScript library with superpowers
http://absurdjs.krasimirtsonev.com/
MIT License
1.38k stars 90 forks source link

JSPM / SystemJS support? #123

Open peteruithoven opened 9 years ago

peteruithoven commented 9 years ago

More of a question than an issue / feature request; is someone working on a JSPM/SystemJS loader plugin for AbsurdJS? http://jspm.io/ Just as example, there is a Less plugin: https://github.com/Aaike/jspm-less-plugin

Having a AbsurdJS loader plugin would enable someone to use the following in their javascript web component for example:

require("path/to/style.js!absurd"); // for CommonJS
import "path/to/style.js!absurd" // for ES6

If you'd use a specific file extension this could probably also work:

require("path/to/style.ajs!"); // for CommonJS
import "path/to/style.ajs!" // for ES6

Building on JSPM/SystemJS would allow users to use AbsurdJS without using a preprocessor like your cli, gulp etc (while still being able to do this to bundle it).

krasimir commented 9 years ago

Hi @peteruithoven,

I'm not really familiar with jspm. I'll need some time to dig into that and then I''ll probably write a plugin. Unfortunately (as far as I know) there is no developer taking actions in that direction.