Package com.atlassian.labs.speakeasy.commonjs

Examples of com.atlassian.labs.speakeasy.commonjs.Module


    }

    @Test
    public void parsePrevRelativeDependencies()
    {
        Module module = new Module("foo/bar", "foo.js", 0,
                                          "require('../baz');");
        assertEquals(newHashSet("baz"), module.getDependencies());
    }
View Full Code Here


            throws DownloadException
    {

        PrintWriter out = new PrintWriter(outputStream);

        Module module = commonJsModules.getModule(moduleName);
        out.println(ModuleWrapper.wrapModule(
            moduleName,
            commonJsModules.getModuleContents(moduleName),
            module.getDependencies(), ImmutableMap.of(
                "pluginKey", commonJsModules.getPluginKey(),
                "modulesKey", modulesKey
        )));

        out.flush();
View Full Code Here

TOP

Related Classes of com.atlassian.labs.speakeasy.commonjs.Module

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.