Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/micrub/babel-baseplate
Basic base-plate for babel based development on node.js
https://github.com/micrub/babel-baseplate
babel eslint mocha nodejs template
Last synced: 4 days ago
JSON representation
Basic base-plate for babel based development on node.js
- Host: GitHub
- URL: https://github.com/micrub/babel-baseplate
- Owner: micrub
- Created: 2017-08-26T22:35:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-28T21:46:30.000Z (almost 7 years ago)
- Last Synced: 2024-11-08T08:46:43.432Z (about 2 months ago)
- Topics: babel, eslint, mocha, nodejs, template
- Language: JavaScript
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Basic setup for babel based development
# Version 1.0.2
## Install dependencies
`yarn install`
### Installed Babel plugins
Usage examples of following plugins can be seen in
main unit test source file.* [ `transform-object-rest-spread` ](https://babeljs.io/docs/plugins/transform-object-rest-spread/)
* [ `transform-async-to-generator` ](https://babeljs.io/docs/plugins/transform-async-to-generator/)
* [ `syntax-trailing-function-commas` ](https://babeljs.io/docs/plugins/syntax-trailing-function-commas/)
* -[ `transform-decorators` ](https://babeljs.io/docs/plugins/transform-decorators/)- Conflicts with ESLint parser## Testing
Before testing `src/` and `test/` source files
MUST be validated by eslint before they will be executed by `mocha`.`npm test`
### Sequential scenarios for mocha support
See [mocha-steps](https://github.com/rprieto/mocha-steps)
and usage example in main unit test source file.## ESlint
`npm lint`
# Creating project based on `babel-baseplate` (WIP)
* Clone `babel-baseplate` repository.
* Create `~/bin/` if not exist.
* From repository's directory execute `./bin/create-link.js`
* Reload shell environment
* From any directory execute following to clone 'babel-baseplate` master and
add `babel-baseplate` as `upstream` remote.
* Accepts only absolute non existin path as target for cloning.```
create-babel-baseplate-script.sh $(pwd)/glpl
```# Scaffolding (WIP)
`
tools/generator.js
tools/gen.js
`