@lsk4/env
v4.6.0
Published
LSK.js – env – Scripts for environment detecton
Downloads
5,459
Readme
LSK.js – env
@lskjs/env – LSK.js – env – Scripts for environment detecton
Table of contents
⌨️ Install
# yarn
yarn i @lskjs/env
# npm
npm i @lskjs/env
First principles
- Асинхронность все везде
- Ленивость всех операций
- Декларативный подход для конечного программиста
Манифест
Стандарт бы и 5 лет назад, но авангардисты JS создали coffescript, babel и ts, потому что JS окостенел и не двигался. Так же как и ВКшники написали свой KPHP.
В этом пути нет ничего постыдного, то что еще вчера считалось ебанистикой, завтра может захватить умы своим удобством.
У меня нет априорной аппеляции к авторитетам из ECMA.
Я делаю среду комфортную для конечного программиста, который делает продукт для клиента.
Если стандарт позволяет написать удобное решение — то придумаем как.
Если для этого придется переписать стандарт — значит перепишем.
Благо babel максимальным образом позволяет писать собственные диалекты.
Не задача должна прогибаться под решением, а решение под задачу.
Вопросы на которые стоит ответить создателю:
- Пример Api на бэке handler
- Пример функции и как ее переопределить
- Модели монго как подключить
- Как достать, когда пишешь Api
- Роутер добавление роута и страницы
- CrudApi основные методы
- Как оборачивать ответ сервера, чтобы вернулся объект
- Как сделать свой стор
- Как достать стор на странице
Как запускать любой lsk-образный проект
- git clone
repo
- npm install
- npm run bootstrap
- copy .env.js if needed
- npm run dev or
- cd packages/
package
&& npm run dev
Packages included in this repo
| Package | Description | Activity | Version | Bundle | Package Size
| -------------------- | --------------- | -------- | ------- | ------ | -------------------------
| apiquery | http/s + websockets api client for Web, Node.js and React Native throw fetch or axios | |
|
|
| apm | LSK.js – apm – module Node.js agent for Elastic APM |
|
|
|
| auth | LSK.js – auth – module for authorization by login and password and singup through social networks |
|
|
|
| autobind | LSK ux subrepo: autobind |
|
|
|
| billing | LSK.js module for adding billing in cabinet |
|
|
|
| bots | LSK.js module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation |
|
|
|
| bots-base | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation |
|
|
|
| bots-plugin | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation |
|
|
|
| bots-plugin-debug | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation |
|
|
|
| bots-plugin-menu | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation |
|
|
|
| bots-plugin-notify | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation |
|
|
|
| bots-plugin-polundra | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation |
|
|
|
| bots-plugin-portal | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation |
|
|
|
| bots-provider | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation |
|
|
|
| bots-provider-clubhouse | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation |
|
|
|
| bots-provider-discord | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation |
|
|
|
| bots-provider-instagram | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation |
|
|
|
| bots-provider-slack | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation |
|
|
|
| bots-provider-telegram | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation |
|
|
|
| bots-provider-twitter | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation |
|
|
|
| bots-provider-vk | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation |
|
|
|
| bots-provider-whatsapp | LSK.js plugin for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation |
|
|
|
| bots-router | LSK.js router for @lskjs/bots module for telegram, slack, discord, whatsapp, twitter, instagram and vk bots creation |
|
|
|
| build-locales | CLI for build i18 locales from Google spreadsheet |
|
|
|
| bunyan | Light weight bunyan logger for a JSON logging library for node.js services without dtrace |
|
|
|
| config | LSK config. |
|
|
|
| db | LSK.js module for working with mongodb database |
|
|
|
| elastic | LSK.js module for elastic search |
|
|
|
| event | LSK module for event. |
|
|
|
| getspreadsheet | LSK getspreadsheet. |
|
|
|
| grant | LSK module for grant. |
|
|
|
| i18 | LSK module for internationalization with i18next. |
|
|
|
| kafka | LSK module for kafka. |
|
|
|
| launcher | LSK Launcher. |
|
|
|
| linkall | LSK link all. |
|
|
|
| log | LSK log. |
|
|
|
| log | Логгер совмещающий лучшие черты morgan, winston, bunyan, logrus. debug. Базируется на debug-level. |
|
|
|
| mailer | LSK module for send and receive emails. |
|
|
|
| mobx | LSK module for mobx. |
|
|
|
| module | Module system with dependency injection, event emitter, logger and submodules tree |
|
|
|
| permit | LSK module for one time codes and permits. |
|
|
|
| proxy | LSK module for proxy. |
|
|
|
| rabbit | LSK module for rabbit. |
|
|
|
| reactapp | LSK ux subrepo: reactapp |
|
|
|
| rlog | LSK module for remote logger. |
|
|
|
| scylla | LSK module for scylla. |
|
|
|
| sequelize | LSK module for sequelize. |
|
|
|
| server | LSK server. |
|
|
|
| server-api | LSK server-api. |
|
|
|
| sh | LSK ux subrepo: sh |
|
|
|
| sms | LSK module for sms. |
|
|
|
| tbot | LSK module. |
|
|
|
| uapp | LSK universal react app wrapper |
|
|
|
| upload | LSK module for uploading files. |
|
|
|
| utils | LSK.js – utils – helpers and functions |
|
|
|
| worker | LSK module for worker. |
|
|
|
| add-to-calendar | LSK ux subrepo: extra |
|
|
|
| article | LSK ux subrepo: article |
|
|
|
| avatar | LSK ux subrepo: avatar |
|
|
|
| button | LSK ux subrepo: button |
|
|
|
| button2 | LSK ux subrepo: button |
|
|
|
| chat | LSK ux subrepo: chat |
|
|
|
| cookie-consent | LSK ux subrepo: cookie-consent |
|
|
|
| css | LSK ux subrepo: css |
|
|
|
| dash | LSK.js – Dash – React components for your own dashboard |
|
|
|
| dashboard | LSK ux subrepo: dashboard |
|
|
|
| dev | LSK ux subrepo: ui-dev |
|
|
|
| docs | lskjs docs |
|
|
|
| downloads | LSK ux subrepo: download |
|
|
|
| extra | LSK ux subrepo: extra |
|
|
|
| flag | LSK ux subrepo: flag |
|
|
|
| form | LSK ux subrepo: form |
|
|
|
| grid | LSK ux subrepo: grid |
|
|
|
| gridtable | LSK ux subrepo: gridtable |
|
|
|
| image | LSK ux subrepo: image |
|
|
|
| landing | LSK ux subrepo: landing |
|
|
|
| link | LSK ux subrepo: link |
|
|
|
| list | LSK ux subrepo: list |
|
|
|
| modal | LSK ux subrepo: modal |
|
|
|
| navbar | LSK ux subrepo: navbar |
|
|
|
| notification | LSK ux subrepo: notification |
|
|
|
| page | LSK ux subrepo: page |
|
|
|
| progress | LSK ux subrepo: progress |
|
|
|
| scroll | LSK ux subrepo: scroll |
|
|
|
| slide | LSK ux subrepo: slide |
|
|
|
| t | LSK ux subrepo: t |
|
|
|
| tag | LSK ux subrepo: tag |
|
|
|
| theme | LSK ux subrepo: theme |
|
|
|
| typo | LSK ux subrepo: typo |
|
|
|
| ui | LSK ux subrepo: ui |
|
|
|
| ui2 | LSK ux subrepo: ui2 |
|
|
|
Вдохновлен:
- Express.js: концепция средних слоев, способ их конфигурирования
- Sails.js & Grails.js
- Loopback
- https://github.com/developit/express-es6-rest-api/
- react-starter-kit: Фронт, Сборка на ES6 без Gulp, Grunt. Конфиг webpack'а
this.useMiddlewares()
this.useRoutes()
this.useDefaultRoute()
А также:
- Express async router
- Json Web Token
- Bunyan logger with updated view