Skip to content

A sandbox on node and babel preset 3 to test JS code

Notifications You must be signed in to change notification settings

mesirendon/sandnode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SandNode

A Node and Babel preset 3 sandbox starter kit

Getting started

You need to have either npm or yarn installed, if you want to have it installed. Otherwise, you need npx to run it on the fly.

On the fly running

You can use npx in order to start your project without installing the package globally.

mkdir -p path/to/your/empty/project
cd path/to/your/empty/project
npx sandnode

Just answer the questions and you are ready to go testing or running.

Installing

Install the package globally

npm

npm i -g sandnode

yarn

yarn global add sandnode

Structure

.
├── index.js
├── package.json
├── node_modules
└── test
    └── 01-initial-test.spec.js
  • index.js: Project entry point
  • package.json: Project package file
  • node_modules: Packages installed for this project (pre-populated)
  • test: Folder with TDD tests, files inside it must have this format <test-file-name>.spec.js

Using

Tests

You can add as many tests on the test folder. To run them you can either run yarn test or npm test.

Running

You need to start via yarn start or npm start in a console. In other console or on your IDE you can edit the index.js file. The original console will reload on changes saved.

Authors

License

This project is licensed under the MIT License.

About

A sandbox on node and babel preset 3 to test JS code

Resources

Stars

Watchers

Forks

Packages

No packages published