Skip to content

As its name suggests, it's a scripts that I used a lot in nodejs project, so I decided to put it in npm, so that I can access it easily.

License

Notifications You must be signed in to change notification settings

leomotors/npm-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@leomotors/scripts

Most of the downloads probably came from me, 😂

As its name suggests, it's a scripts that I used a lot in nodejs project, so I decided to put it in npm, so that I can access it easily.

You are free to use this if you want to do the same thing.

But, please keep in mind that breaking change can be made at any point.

Here is some info in case you wonder what I'm doing.

Scripts

Once you install this package, these scripts will be installed to node_modules/.bin

lm-inc: Increment Patch Number by 1 when called

lm-config: Put some metadata into specified file (Default: src/config.g.ts)

lm-config {file name} {time zone (Default: Asia/Bangkok)}
  • Parameter: File Path, in case you want to override default

configPackage.js Output

export const Version = "3.0.0";
export const BuildTime = "2022-01-24 17:06:58";

Example Usage in package.json

"scripts": {
    "dev": "lm-inc && lm-config && smth dev",
    "build": "lm-config && smth build",
}

About

As its name suggests, it's a scripts that I used a lot in nodejs project, so I decided to put it in npm, so that I can access it easily.

Topics

Resources

License

Stars

Watchers

Forks