2.0.14 • Published 4 years ago

npm-test-starter-milosz v2.0.14

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

This module is created for testing purposes! The real thing is coming soon :)

Start

Main project - npm-test-starter-milosz

Running the script

node index.js

Publish to npm

  1. update package.json version
  2. npm release major | minor | patch
  3. run npm publish

Documentation

A guide to creating a NodeJS command-line package

npm-package.json

Create react app git

An easy to understand scaffolding script

shelljs - terminal commands in node shelljs cheatsheet

Terminal animations

Node temrinal prompt

Terminal select from list

Run create react test once

NPM

For the lazy one here is a bunch of videos on how to publish to npm npm videos

installing npm

How to register to npm

  • register to npmjs.com
  • login in terminal npm login & npm whoami

Creating a npm package

Creating a npm package.json To create a default package.json using information extracted from the current directory, use the npm init command with the --yes or -y flag. Initiate package.json npm init --yes or npm init

How to release to npm

Creating a module

Create a basic package.json file

  {
    "name": "npm-test-starter-milosz",
    "version": "1.0.0",
    "description": "a simple test",
    "main": "index.js",
    "scripts": {
      "test": "echo \"Error: no test specified\" && exit 1"
    },
    "keywords": [
      "test"
    ],
    "author": "Milosz Hygen <miloszhygen@gmail.com>",
    "license": "ISC"
  }

Create an index.js file with exports code

  exports.printMsg = function() {
    console.log("This is a message from the demo package");
  }

run npm publish

2.0.14

4 years ago

2.0.8

4 years ago

2.0.5

4 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.0

5 years ago