Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

varun-dev/vscripts

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VScripts (work in progress)

This project demonstrates how you can abstract your project configurations and its dependencies inside a package by exposing an npm cli.

Why do this?

  • it decouples your code from configuration hell
  • helps you maintain all configs at one place instead of duplicating in all your projects
  • easy to change configurations and upgrade dependencies

Usage

$ npm istall --dev vscripts

Do not try the above command, this is not published.

package.json script examples

"build": "vscripts build" 

// default is src
"lint": "vscripts lint"

// provide a source folder(s)
"lint": "vscripts lint --src source"

Notes

  • You can see this project in action in dynamic-redux-state
  • The cli and relevant code is in /bin
  • The bin config in package.json exposes the cli

External Reference:

https://blog.npmjs.org/post/118810260230/building-a-simple-command-line-tool-with-npm

Feedback / Issues / Questions

  • raise a ticket

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.