helloworld-es6
This is a simple example module that returns a "Hello world" greeting in 6 different languages. To be used as a example/boilerplate for quickly getting started with developing a node package/cli using ES6 & babel.
English, Spanish, French, Swedish, Chinese, Turkish
Installation
Local: npm install helloworld-es6 --save
Global (cli): npm install helloworld-es6 -g
Example Usage
As module:
;console; // => "Hello world"console; // => "Hej Världen"console; // => "Bonjour le monde"console; // => "Sorry, I don´t know how to say "Hello World" in Parseltongue yet."
As cli:
helloworld-es6helloworld-es6 --language swedish
Use as boilerplate
# clone it mkdir my-awsome-packagecd my-awsome-packagegit clone git@github.com:ollelauribostrom/helloworld-es6.git . # Make it your own rm -rf .git && git init && npm init # Install dependencies npm install # Start babel file watch npm start
Available commands
npm start
: Start babel file watchnpm run build
: Build to /dist foldernpm test
: Run testsnpm run coverage
: Run test coverage using nyc, outputs report to /test/coveragenpm run coveralls
: Run test coverage using nyc & send report to coveralls (must have specified repo_token in .coveralls.yml)npm run lint
: Run eslint
License
MIT