1.4.5 • Published 6 years ago

nodroid v1.4.5

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Node Droid

Creates a Standard Template for a Empty NodeJs Project.

Requirements before we can start

First of all we have to Download and Install VSCode from here. After the installation I recommend to install these extensions.

VSCode Extensions

ExtensionDescription
ESLintlinting Code on the Fly
Node TDDHelps to execute Tests when Code is changed
Coverage GuttersShow Code Coverage on the Fly
Document ThisFast and Easy Documentation Generation
npm && npm intellisenseenables Intellisense in package.json
Path AutocompleteIntellisense for Paths
Project Managerworking with multiple Projects
GIT Lensbrings GIT Informations in the Code
GraphQl for VSCodebrings GraphQl Syntax Highliting and Intellisense to VSCode
Linux Themes for VS Code && vscode-iconsbetter Styling

The second dependency is Yarn. This tool builds NPM and allows you to install the packages faster. To install Yarn please follow the instructions here.

Install Tool

Now we are ready to install the nodroid command. To do this we only need to execute the following command.

yarn global add nodroid

Usage

How to create a new project:

nodroid init

Name of your Project?:{input name of Project}
Author?:{input the name of the Author}
Authors Email?:{input Email of the Author}
License?:{input License Type}

An attempt is made to create a new folder with the project name. If the folder already exists, it is possible to delete the contents. This should not be done if you have e. g. cloned an empty GIT project, because then the settings of GIT will be deleted!

How to create an alias

nodroid resolve myfolder src/somefolder

If a project is created, the alias "~" is already created for the src directory. Any other aliases can be added, but they may only be assigned once! These are entered in the VS Code setting for the Path Autocomplete plugin, in the jsconfig. json for the VS Code Intellisense and in the. babelrc for Babel.

Folder Structure

FolderDescription
.vscodeSettings for VSCode
node_modulesdependencies
specFolder for Tests
srcSource Code Folder
distbuildfolder for Release
coveragegenerated Coverage Folder
docsgenerated Documentation Folder

Scripts

ScriptWhat it does
startstart the index.js in the src Folder
testrun the Tests and generate Coverage
buildbuild the Code for Release usage
docsgenerate the Documentation

Debug Launcher

Two processes are entered in the VS Code Launch setting. Once "Launch Program" to start the index. js from the src directory and "Tests" to start the tests from the spec directory.

under the Hood

PackageUsing for...
babel-cliuse Babel Commands for Transpiling
babel-plugin-istanbulused for generation of Coverage
babel-plugin-module-resolvercreate aliases for folders
babel-plugin-transform-runtimetranspile async and await
babel-preset-envlatest transpiling Rules
babel-preset-stage-2transpiling Rules for newest ES Features
babel-registerhelps to transpile Code for Testing
chaiassert Testing Tool
mochaTest Runner
sinonMocking Tool
nycCoverage Reporter
esdocDocumentation Generator for ES2017
esdoc-standard-pluginthe Default Pugin for esdoc
eslintcheck Javascript Code for Errors
eslint-config-googleeslint Google Ruleset
nodemonused to automat restart Processes
1.4.5

6 years ago

1.4.4

6 years ago

1.4.3

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.5

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago