GithubHelp home page GithubHelp logo

Comments (7)

dnbard avatar dnbard commented on August 11, 2024

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.

voronianski avatar voronianski commented on August 11, 2024

@dnbard 👍

from melchior.js.

dnbard avatar dnbard commented on August 11, 2024

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.

voronianski avatar voronianski commented on August 11, 2024

@dnbard I think it's fine, maybe only empty config is redundant here.

from melchior.js.

dnbard avatar dnbard commented on August 11, 2024

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.

dnbard avatar dnbard commented on August 11, 2024

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.

voronianski avatar voronianski commented on August 11, 2024

@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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.