GithubHelp home page GithubHelp logo

mockoon / commons Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 13.0 1.16 MB

Mockoon's commons library. Used in Mockoon desktop application and CLI.

Home Page: https://mockoon.com

License: MIT License

JavaScript 9.17% TypeScript 90.83%
mockoon library mocking rest-api server electron nodejs desktop api rest

commons's Introduction

📦This repository has been archived. You will find Mockoon's new monorepo here.




@Mockoon/commons

Mockoon's Commons library regroups Mockoon's shared code used in the main application and the CLI. It contains mostly typings and is designed to be used in both the browser and Node.js environments.


Support/feedback

You can discuss all things related to Mockoon, and ask for help, on the main application community or the CLI community. It's also a good place to discuss bugs and feature requests before opening an issue on this repository. For more chat-like discussions, you can also join our Discord server.

Contributing

If you are interested in contributing to Mockoon, please take a look at the main contributing guidelines and the ones specific to this repository.

Please also take a look at our Code of Conduct.

Documentation

You will find Mockoon's documentation on the official website. It covers Mockoon's most complex features. Feel free to contribute or ask for new topics to be covered.

Roadmap

If you want to know what will be coming in the next release you can check the global Roadmap.

New releases will be announced on Mockoon's Twitter account @GetMockoon and through the newsletter to which you can subscribe here.

commons's People

Contributors

barefootdeveloper avatar bykof avatar davidvieiratrustly avatar gamedevtutorials avatar louiealmeda avatar mauriceackel avatar simonpstevens avatar timon avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

commons's Issues

Make Joi schemas stricts

Is your feature request related to a problem? Please describe.
When adding new props to the schemas (in ./constants folder: Environment, Route, etc.), the Joi schema validator do not show any error as the property is missing.

Describe the solution you'd like
Make all Joi schema stricts using TS generics.

Add new `setVar` helper

Is your feature request related to a problem? Please describe.
Synchronizing templating helpers ({{faker ...}}) is not possible yet and quite complicated to achieve.

Describe the solution you'd like
One alternative could be to create a var or setVar helper that allows to create a local variable that can be reused later.
Like {{setVar 'newUUID' (faker 'random.uuid')}}.
To be used later as {{vars 'newUUID'}}.
We should avoid setting a var to be used like this: {{newUUID}} as it could override existing variables or helpers with the same name.

Run linting in CI

Is your feature request related to a problem? Please describe.
We have no linting

Describe the solution you'd like
Lint should be run in the CI

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.