serverless-mono-example | Example repo on how to use yarn workspaces

 by   tommedema TypeScript Version: Current License: No License

kandi X-RAY | serverless-mono-example Summary

kandi X-RAY | serverless-mono-example Summary

serverless-mono-example is a TypeScript library typically used in User Interface, Template Engine, Boilerplate applications. serverless-mono-example has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

Example repo on how to use yarn workspaces together with the serverless framework.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              serverless-mono-example has a low active ecosystem.
              It has 122 star(s) with 9 fork(s). There are 9 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 4 open issues and 7 have been closed. On average issues are closed in 2 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of serverless-mono-example is current.

            kandi-Quality Quality

              serverless-mono-example has no bugs reported.

            kandi-Security Security

              serverless-mono-example has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              serverless-mono-example does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              serverless-mono-example releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of serverless-mono-example
            Get all kandi verified functions for this library.

            serverless-mono-example Key Features

            No Key Features are available at this moment for serverless-mono-example.

            serverless-mono-example Examples and Code Snippets

            No Code Snippets are available at this moment for serverless-mono-example.

            Community Discussions

            QUESTION

            How to use Typescript's references and build mode to compile a mono repo to a serverless bundle?
            Asked 2018-Aug-21 at 05:27

            Typescript recently introduced a new feature to work with monorepos: references. By specifying references you can build all interdependent packages using tsc -b (see also this blog post)

            This seems ideal for use with a large mono repo where some packages are serverless services. These services typically depend on one or more packages of the monorepo. I've created an example here:

            https://github.com/tommedema/serverless-mono-example

            While building works well with tsc -b, the problem is that the serverless framework needs to upload a single artifact .zip (to AWS in my case). When building a serverless service, like this example, only the compiled files of the nearest source files will be bundled.

            How would one use typescript's references feature for use with serverless mono repos?

            ...

            ANSWER

            Answered 2018-Aug-21 at 05:27

            If it works for you to generate a single output file and use a module loader, you can use outFile and prepend.

            If you want multiple output files, maybe it's worth filing a suggestion to ask for an option to bundle dependencies in that case; you would be the second person who has asked about this on Stack Overflow today. Edit: Suggestion is here.

            Edit 2: After extensive discussion, the conclusion was to enable the nohoist option on the final Yarn workspace, which gives us symlinks from node_modules to the other workspaces. After we call tsc -b in the final workspace, the Serverless packaging tool follows the symlinks and produces a zip file with the correct structure. No bundling is needed at the TypeScript level. Caveat: Yarn seems to install devDependencies of dependencies in the final workspace, which seems wrong to me and confuses Serverless into unnecessarily including those modules in the bundle.

            Source https://stackoverflow.com/questions/51939395

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install serverless-mono-example

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/tommedema/serverless-mono-example.git

          • CLI

            gh repo clone tommedema/serverless-mono-example

          • sshUrl

            git@github.com:tommedema/serverless-mono-example.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link