@gohorse/npm-log-database
v2.0.12
Published
GoHorse is a Git-based blockchain. Library with implementation of the recording of log messages on database.
Downloads
82
Readme
@gohorse/npm-template
GoHorse is a Git-based blockchain.
This is a template for creating new NPM packages.
npm install @gohorse/npm-template
Creating a new NPM package
Pay attention to these steps when creating an NPM package from this one.
- Review the file:
./package.json
- Change the name.
- Change the description.
- Change the homepage.
- Will you need to add more packages with
npm install
?
- Review the file:
./README.md
- Change the title.
- Change the description under the GoHorse logo.
- Adjust package name in
npm install
command. - Remove the topic "Creating a new NPM package".
- Adjust the Author topic if necessary.
- Need to add new topics with information about this new package?
- Review the file:
./.npmrc
- Adjust the prefix used to create
git tag
.
- Adjust the prefix used to create
- Remove directory:
./ts/Dummy
- And don't forget to add your source code directories and files.
- Review this file:
./ts/index.ts
- Removes the invalid source code snippet.
- If you are creating...
- a library, make available the classes, interfaces, etc. in
export
. - an application, implement the execution and don't forget to make it possible to shut down with the
/stop
argument.
- a library, make available the classes, interfaces, etc. in
NPM Commands
In the package.json file you have configured the following commands:
# Rewrites TypeScript, JavaScript and tests code with formatting.
npm run format
# Finds in TypeScript files not recommended coding practices.
npm run lint
# The same as the previous two executed one after the other.
npm run format+lint
# Run the unit tests.
npm run test
# Compiles TypeScript code to JavaScript.
npm run build
# Executes the last five commands.
npm run build:prod
# If the package is an application it is expected that
# it can be started in this way.
npm run start
# If the package is an application it is expected that
# any running instance of it can be terminated in this way.
npm run stop
# Runs after initial installation with `npm install`
# and before publishing with `npm publish`
# Confirm that compiling files with `npm run build`
# is working before publishing.
npm run prepare
# Executes during versioning, but before it becomes effective,
# with `npm version patch` or `npm version minor` or npm `version major`.
# Run the `npm run build:prod` and after add with `git add` all new
# or modified files in the `./ts` directory to be included in the
# versioning commit.
npm run version
# Executed after versioning the package with `npm version patch`
# or `npm version minor` or npm `version major`
# After NPM inserts the version commit and tag, this command
# pushes to the remote repository using `git push && git push --tags`
npm run postversion
Author
| | | :-: | |sergiocabral.com|