slim-cli
An opinionated workflow CLI for Angular projects that uses Webpack, TypeScript and Sass.
Installation
npm i -g slim-cli
Usage
The CLI has several commands that take different options, like the Git CLI.
The commands have the following form slim <command> [options]
.
Examples
slim dev # Start the development build with hot reloading slim -h # Show help
Angular CLI?
Why don't we use theThe Angular CLI tries to adhere to many possible workflows that use different tools, like Sass vs. Less vs. Stylus. This makes it sometimes hard to implement a feature that is not universally available.
Another reason is the limited extensibility of the CLI's blueprints, which is needed for a sufficiently powerful template definition. This is for example needed to generate Redux Actions and Reducers.
slim
mean?
What does Our old workflow was based on Slush and the generator package was called slush-im2m
. So all our commands had the form
slush im2m:<command> [options]
. And because it is easier to write one word than to write two, this was reduced to slim
.
Continuous Integration (CI)
Slim can be used in CI systems. To run Unit-Tests and E2E-Tests on Debian on a Server, perform the following steps:
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | tee -a /etc/apt/sources.listwget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -apt-get updateapt-get install libxpm4 libxrender1 libgtk2.0-0 libnss3 libgconf-2-4apt-get install google-chrome-stableapt-get install xvfb gtk2-engines-pixbufapt-get install xfonts-cyrillic xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalableapt-get install imagemagick x11-apps
License
MIT