Coder Social home page Coder Social logo

cicerops / supernode Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 15 KB

A small helper program for providing Node.js environments to development sandboxes and CI systems.

License: GNU Affero General Public License v3.0

Shell 100.00%
nodejs javascript environment npm yarn yarn2 nodeenv python-virtualenv development development-environment

supernode's Introduction

supernode

About

A small helper program for providing Node.js environments to development sandboxes and CI systems.

Synopsis

# Setup modern Node.js environment.
source /dev/stdin <<<"$(curl -s https://raw.githubusercontent.com/cicerops/supernode/main/supernode)"

Usage

To provision and activate a corresponding Node.js environment and provide it to your programs, run those commands upfront before invoking any other project tasks like Makefile targets.

The programs node, npm, npx and yarn will be transparently available to subsequent commands within the shell environment.

# Define a software environment typical for the active Node.js 16 LTS release.
export NODEJS_VERSION=16.14.2
export NPM_VERSION=8.5.5
export YARN_VERSION=2.4.3

# Define a software environment typical for the previous Node.js 14 LTS release.
export NODEJS_VERSION=14.19.1
export NPM_VERSION=6.14.15
export YARN_VERSION=1.22.18
# Setup Node.js environment defined by specific software versions.
source /dev/stdin <<<"$(curl -s https://raw.githubusercontent.com/cicerops/supernode/main/supernode)"

Example output

---------------
supernode setup
---------------
Provisioning Node.js 14.19.1, NPM 6.14.15 and Yarn 1.22.18.

Lalala....

----------------
supernode status
----------------
Node.js: v14.19.1
NPM:     6.14.15
Yarn:    1.22.18

Details

The whole machinery will be installed into a folder called .venv within the working directory. The good thing is that this environment is completely isolated from the operating system's Node.js installation.

The tools behind this installation flavor are Python virtual environments and Node.js virtual environments.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.