https://github.com/raphamorim/shell-script-frontend
[WIP] Replace grunt / gulp tasks using Shell Script
https://github.com/raphamorim/shell-script-frontend
Last synced: 4 months ago
JSON representation
[WIP] Replace grunt / gulp tasks using Shell Script
- Host: GitHub
- URL: https://github.com/raphamorim/shell-script-frontend
- Owner: raphamorim
- Created: 2016-07-13T20:06:43.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-19T00:16:32.000Z (almost 10 years ago)
- Last Synced: 2025-07-22T14:45:57.514Z (11 months ago)
- Language: Shell
- Homepage:
- Size: 8.79 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Front-End Scripts
A serie of useful scripts to make more easier and remove dependencies of languages and complex tools to do some tasks of our daily job.
The idea is simplify daily tasks to remove dependencies of grunt, gulp or other task runners. 'Cause **[Keep It Simple Stupid](https://en.wikipedia.org/wiki/KISS_principle)** is essencial these days.
Note: You can add a script or update a existent one.
## Why?
For every non-nodejs projects which depends on Front-end Tasks you need install
node, npm, grunt or gulp, grunt or gulp dependencies... OH MY GODNESS!
Let's be honest, your Django project needs nodejs/npm/grunt/gulp only to run
front-end tasks???
The Answer is **No**.
### How it works?
You can save the script in some folder and use it or load from your PATH to use as CLI command, depends from whatever you want.
To use this scripts as a CLI command:
```bash
git clone https://github.com/raphamorim/shell-script-frontend.git --depth 1
cd ./shell-script-frontend && make install
```
## Scripts
### Compress
Compress (remove all white spaces from any file [example={JS | CSS | HTML} files])
```
fs-compress
```
Ex: `fs-compress base.css base.min.css` or `fs-compress index.html`
Replace: [gulp-compress](https://www.npmjs.com/package/gulp-compress), [grunt-contrib-compress](https://github.com/gruntjs/grunt-contrib-compress), ...
### Concat
Concatenize files
```
fs-concat [] --output=
```
Ex: `fs-concat js/*/**.js --output="./app.js"` or `fs-concat css/reset.css css/base.css --output="style.css" `
Replace: [grunt-contrib-concat](https://github.com/gruntjs/grunt-contrib-concat), [gulp-concat](https://www.npmjs.com/package/gulp-concat), ...
### Clean
Clean files and folders
```
fs-clean []
```
Ex: `fs-clean css/*.css fonts/*/**.ttf javascript/app.js`
Replace: [grunt-contrib-clean](https://www.npmjs.com/package/grunt-contrib-clean), [gulp-clean](https://www.npmjs.com/package/gulp-clean), ...