1.0.8 • Published 3 years ago
sandnode v1.0.8
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 sandnodeJust answer the questions and you are ready to go testing or running.
Installing
Install the package globally
npm
npm i -g sandnodeyarn
yarn global add sandnodeStructure
.
├── 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
- Mesi Rendon - Initial work - mesirendon
License
This project is licensed under the MIT License.