Comments (7)
Hello. I started creating a compiler as Gulp Plugin. I'll post results here if I manage to finish it ;-)
If you have some information about how concatenated file should looks like then please write it here.
from melchior.js.
@dnbard 👍
from melchior.js.
Hi. I managed to create prototype of gulp plugin. It's not ready to be presented yet ( ugly code 😆 ). But I can show result of its work here. Could you please look at source and result and say if there is something wrong?
Entry point:
melchiorjs.config({
paths: {
'module': 'module.js'
}
});
melchiorjs.module('app').require('module').body(function () {
console.log('app');
return {
method: function () { },
anotherMethod: function () { }
};
});
Module.js:
melchiorjs.module('module').require('app').body(function(){
console.log('module');
});
Result:
melchiorjs.config({});
melchiorjs.module('module').require('app').body(function(){
console.log('module');
});
melchiorjs.module('app').require('module').body(function () {
console.log('app');
return {
method: function () { },
anotherMethod: function () { }
};
});
from melchior.js.
@dnbard I think it's fine, maybe only empty config is redundant here.
from melchior.js.
I've pushed plugin to npm registry. You can find it by gulp-melchior
name. Also I've prepared docs here.
I tested it but it may still have bugs so I'll be very glad if you open new issue for them in plugin's repository.
from melchior.js.
Found examples in this repository. Wont work for dependencies like this //ajax.googleapis.com/ajax/libs/angularjs/1.2.24/angular
. Will fix it tomorrow.
from melchior.js.
@dnbard I've just checked plugin, unfortunately it didn't work as expected - dnbard/gulp-melchior#1
from melchior.js.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from melchior.js.