All Projects → jaumesegarra → xtuff

jaumesegarra / xtuff

Licence: MIT license
A CLI to generate stuff easy! (components, services, etc...)

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to xtuff

Executor
Watch for file changes and then execute command. Very nice for test driven development.
Stars: ✭ 14 (-50%)
Mutual labels:  files, command
impress-cli
Impress Application Server Command line interface
Stars: ✭ 25 (-10.71%)
Mutual labels:  command, service
terraform-aws-ecs-alb-service-task
Terraform module which implements an ECS service which exposes a web service via ALB.
Stars: ✭ 108 (+285.71%)
Mutual labels:  service
gab-cmdline
A GABStudios Java library to help with command line parsing.
Stars: ✭ 12 (-57.14%)
Mutual labels:  command
service-systemd
Setup a node.js app as systemd service.
Stars: ✭ 35 (+25%)
Mutual labels:  service
server-framework
纯C的分布式服务器框架通用模板,跨平台,模块动态加载,tcp/可靠UDP,协程RPC,日志,集群建立
Stars: ✭ 24 (-14.29%)
Mutual labels:  service
blazar
Reservation Service for OpenStack. Mirror of code maintained at opendev.org.
Stars: ✭ 60 (+114.29%)
Mutual labels:  service
vscode-fileutils
Visual Studio Code Extension
Stars: ✭ 138 (+392.86%)
Mutual labels:  files
dynamic-engine
Monitor events in the background on Android.
Stars: ✭ 24 (-14.29%)
Mutual labels:  service
yogurl
Serve files and code over HTTP in one command. The CLI for http://yogurl.io
Stars: ✭ 45 (+60.71%)
Mutual labels:  files
nucked-truth-of-files
HollyJS Moscow
Stars: ✭ 14 (-50%)
Mutual labels:  files
lumen-file-manager
File manager module for the Lumen PHP framework.
Stars: ✭ 40 (+42.86%)
Mutual labels:  files
maricutodb
PHP Flat File Database Manager
Stars: ✭ 23 (-17.86%)
Mutual labels:  files
ex aws s3
No description or website provided.
Stars: ✭ 121 (+332.14%)
Mutual labels:  service
gotor
This program provides efficient web scraping services for Tor and non-Tor sites. The program has both a CLI and REST API.
Stars: ✭ 97 (+246.43%)
Mutual labels:  service
suchtube
🔍 📼 YouTube search as a service, with Slack integration and CLI
Stars: ✭ 25 (-10.71%)
Mutual labels:  service
awesome-git-commands
🍴 Indispensable git commands for everyday use
Stars: ✭ 53 (+89.29%)
Mutual labels:  command
go-storage
A vendor-neutral storage library for Golang: Write once, run on every storage service.
Stars: ✭ 387 (+1282.14%)
Mutual labels:  files
dirdf
R package: dirdf - Extracts Metadata from Directory and File Names
Stars: ✭ 57 (+103.57%)
Mutual labels:  files
origami-image-service
Optimises and resizes images
Stars: ✭ 15 (-46.43%)
Mutual labels:  service

xtuff License Version

A dev command to create your custom stuff easily! (components, services, etc...)

With xtuff you can create new custom components, services, etc .. for your application dynamically.

Just create its templates on xtuff's templates folder of your package, and run the command after that.

EASY! 😎

Installation

npm install xtuff --save-dev

Steps:

  • Put this in your "scripts" section of the package.json:

     "g": "xtuff g"
  • Create your custom stuff inside the new _templates_ folder that you should be have.

  • Run (for example) npm run g component helloComponent

    • "component": It's the name of the folder inside _templates_.
    • "helloComponent": Path where the new thing will generated and also: the name of thing.

Patterns

Example command: npm run g component src/helloWorld

  • %name% : Stuff name: if you run it, you'll get ‘helloWorld’.

  • %username% : get the current username of the PC.

  • %now(format)% : get now date with the format introduced (MM/DD/YYYY, DD-MM-YYYY, HH:mm, etc...)

  • %lc(name)%: get value to lowercase: if you run it, you'll get ‘helloworld’.

  • %uc(name)%: get value to uppercase: if you run it, you'll get HELLOWORLD.

  • %cz(name)%: get capitalized value: if you run it, you'll get ‘HelloWorld’.

  • %ls(name)%: get value with start letter in lower case: if you run it with stuff name 'HelloWorld', you'll get ‘helloWorld’.

  • %cc(name)%: get value to camel case: if you run it with stuff name 'hello-world', you'll get ‘helloWorld’.

  • %sc(name)%: get value to snake case: if you run it, you'll get ‘hello_world’.

  • %kc(name)%: get value to kebab case: if you run it, you'll get ‘hello-world’.

  • %replace("World", "word", name)%: search on a text by regular expression and replace by other text: if you run it, you'll get ‘helloword’.

  • %path('some_path/file.js')%: get relative path for the new stuff location ('src/helloWorld/').

    If you run it, you'll get '../../some_path/file.js'.

    Please, put the file path on template relative to your package.json.

Also you can define and use your own custom patterns ('vars' option).

Options

You can set these options passing as parameter (for example: --delimiter '%') or declaring in your package.json with 'xtuff' key (for example: "xtuff": { "delimiter": "%" }).

- vars: Define and use your own custom patterns. Also you can pass as third parameter, like this: `npm run g component example '{"pattern": "value"}'`. 
- delimiter: Change patterns delimiter (by default '%').

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].