
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fixβa new CLI tool that turns CVE alerts into safe, automated upgrades.
@leanup/cli
Advanced tools
This CLI brings along all required tools to serve, test and build multi framework SPAs
The @leanup
CLI contains all required popular tools in there minimal default, transparent and extensible configuration to develop JavaScript/TypeScript web applications.
There are some working examples:
To install the @leanup
CLI execute the following command:
npm install @leanup/cli typescript --save-dev
And a non-framework or framework strategy must also be selected:
Non-framework:
npm install @leanup/cli-vanilla --save-dev
Or with framework:
npm install @leanup/cli-angular --save-dev
or
npm install @leanup/cli-angularjs --save-dev
or
npm install @leanup/cli-aurelia --save-dev
or
npm install @leanup/cli-inferno --save-dev
or
npm install @leanup/cli-lit-element --save-dev
or
npm install @leanup/cli-preact --save-dev
or
npm install @leanup/cli-react --save-dev
or
npm install @leanup/cli-svelte --save-dev
or
npm install @leanup/cli-vue --save-dev
or
npm install @leanup/cli-vue3 --save-dev
Install the peer dependencies chromedriver
, geckodriver
or selenium-server
in the required version, if you need that features.
npm install chromedriver --save-dev
npm install geckodriver --save-dev
npm install selenium-server--save-dev
Tool/Technology | Description | Status | Note | Rating |
---|---|---|---|---|
TypeScript | Language | βοΈ | ready | |
Webpack | Bundler | βοΈ | ready | |
Snowpack | Bundler | β | in progress | |
Vite | Bundler | β | in progress | |
ESBuild | Transpiler | βοΈ | ready | |
Babel | Transpiler | βοΈ | ready | |
Mocha | Unit-Test-Runner | βοΈ | ready | |
Chai | Assertion | βοΈ | ready | |
Sinon | Mocking | βοΈ | ready | |
NYC | Code-Coverage | βοΈ | ready | |
ESLint | Code-Checker | βοΈ | ready | |
Nightwatch.js | E2E-Test-Runner | βοΈ | ready | |
Allsure | Report | βοΈ | ready | |
Cucumber | BDD | βοΈ | ready | |
robotframework | BDD | β | will be evaluated | |
Storybook | Documentation | β | in progress | |
OpenAPI | API | βοΈ | ready | |
GraphQL | API | βοΈ | ready | |
Workbox | PWA | βοΈ | ready | |
Lerna | Mono-Repo | βοΈ | ready | |
Ant-Design | Design-System | βοΈ | proved | |
Bootstrap | Design-System | βοΈ | proved | |
Material | Design-System | βοΈ | proved | |
Tailwindcss | Design-System | βοΈ | proved | |
WindiCSS | Design-System | βοΈ | proved | |
Nexus IQ | Vulnerabiliy-Gate | βοΈ | ready | |
Less | CSS | βοΈ | ready | |
Sass | CSS | βοΈ | ready | |
PostCSS | CSS | βοΈ | ready | |
TSArch | Architecture | β | in progress | |
Webhint | Webhint | βοΈ | moved *** | |
TestCafe | E2E-Test-Runner | β | will be evaluated **** | |
TSLint | Code-Checker | β | removed ** | |
Cypress | E2E-Test-Runner | β | excluded * |
* Arguments agains Cypress:
- reinvent wheel
- detect css selectors
- BDD test syntax
- principals
- large tooling
- a lot of binaries
- many dependencies
- ci integration vs selenium hub
It is difficult to keep focus with Cypress as it is more a nice tool than an effective tool. It is expected that a lot of time will be invested to justify the requirements of a project.
** TSLint is deprecated.
*** Webhint is not practical for the development of components, since component tags often have no relation to standard HTML. In addition, the webhint package alone is over 100 MB in size. I have good by using a IDE webhint plugin, like VSCode webhint.
**** TestCafe The idea that defined TestCafe architecture was that you don't really need an external driver to run end-to-end tests in the browser. That's interesting.
Vanilla Java-/TypeScript are supported by default. That means for example custom elements and any plain Java-/TypeScript code.
@leanup/cli
βοΈ@leanup/cli-vanilla
(optional) βοΈ Vanilla Java-/TypeScript are supported by default. That means for example custom elements and any plain Java-/TypeScript code.
The selection of the following frameworks depends in parts on the following references:
Currently the following framework extensions are available:
@leanup/cli-angular
βοΈ @leanup/cli-angularjs
βοΈ @leanup/cli-aurelia
βοΈ @leanup/cli-inferno
βοΈ @leanup/cli-lit-element
βοΈ @leanup/cli-preact
βοΈ @leanup/cli-react
βοΈ @leanup/cli-svelte
βοΈ @leanup/cli-vue
βοΈ @leanup/cli-vue3
βοΈ (RC) A separate package contains some nice but not required addons for webpack.
@leanup/cli-addons
βοΈ @leanup/cli-cucumber
βοΈ @leanup/cli-graphql
βοΈ @leanup/cli-pwa
βοΈ @leanup/cli-webhint
βοΈ There a separate packages for important application features.
@leanup/git-hooks
βοΈ @leanup/form
βοΈ @leanup/lib
βοΈ The following variable names are replaced by the values from package.json
file in the bundle:
Name | Description |
---|---|
APP_AUTHER | The value of the author attribute from the package.json file. |
APP_HOMEPAGE | The value of the homepage attribute from the package.json file. |
APP_NAME | The value of the name attribute from the package.json file. |
APP_VERSION | The value of the version attribute from the package.json file. |
NODE_ENV | The value of the version attribute from the package.json file. |
For example:
package.json
:
{
"name": "@scope/my-app",
"version": "1.1.0",
"description": "This CLI brings along all required tools to serve, test and build multi framework SPAs",
"author": "Martin Oppitz <npmjs@martinoppitz.com>",
"homepage": "https://leanupjs.org",
...
App code:
const APP_METADATA = {
author: '$$APP_AUTHER$$',
homepage: '$$APP_HOMEPAGE$$',
name: '$$APP_NAME$$',
version: '$$APP_VERSION$$',
environment: '$$NODE_ENV$$', // development | test | production β
};
console.log(APP_METADATA);
Package | Size | Vulnerabilities |
---|---|---|
chromedriver | ||
geckodriver | ||
graphql | ||
selenium-server | ||
typescript |
Package | Size | Vulnerabilities |
---|---|---|
@leanup/git-hooks | ||
allure-commandline | ||
lerna | ||
workbox-cli |
FAQs
This CLI brings along all required tools to serve, test and build multi framework SPAs
The npm package @leanup/cli receives a total of 328 weekly downloads. As such, @leanup/cli popularity was classified as not popular.
We found that @leanup/cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Automatically fix and test dependency updates with socket fixβa new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
Weβre excited to announce a powerful new capability in Socket: historical data and enhanced analytics.