-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from Flagsmith/fix/export-typings
chore: add exports at the top-level
- Loading branch information
Showing
14 changed files
with
11,420 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets": ["@babel/preset-env"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"extends": ["eslint:recommended", "prettier"], | ||
"parserOptions": { | ||
"ecmaVersion": 2018, | ||
"sourceType": "module" | ||
}, | ||
"env": { "es6": true, "node": true } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# Dependency directories | ||
node_modules/ | ||
|
||
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Nodejs-ES6-Boilerplate | ||
[![Made in Indonesia](https://made-in-indonesia.github.io/made-in-indonesia.svg)](https://github.com/made-in-indonesia/made-in-indonesia) | ||
|
||
A Node.js boilerplate with ES6, ESLint, and Prettier | ||
|
||
## Background | ||
|
||
I created this boilerplate because I have several coding interviews that needs to be done using JavaScript. | ||
|
||
## Scripts | ||
|
||
```bash | ||
# Run the project without nodemon | ||
npm run start | ||
|
||
# Build the project | ||
npm run build | ||
|
||
# Clean build | ||
npm run clean | ||
|
||
# Check the lint errors | ||
npm run lint | ||
|
||
# Fix the lint errors | ||
npm run lint:fix | ||
|
||
# Run prettier | ||
npm run format | ||
|
||
# Check prettier errors | ||
npm run format:check | ||
``` | ||
|
||
## Usage | ||
|
||
1. Clone the repository and init new git project | ||
|
||
```bash | ||
$ git clone git@github.com:vferdiansyah/nodejs-es6-boilerplate.git ./your/project/folder | ||
$ cd ./your/project/folder | ||
$ rm -rf .git | ||
$ git init | ||
``` | ||
|
||
2. Change project specific information in the following places | ||
|
||
- [package.json](./package.json) | ||
- [README.md](./README.md) | ||
|
||
3. Install dependencies | ||
|
||
```bash | ||
$ npm i | ||
``` | ||
|
||
4. Start coding | ||
|
||
## License | ||
|
||
Copyright (c) 2020 Veri Ferdiansyah | ||
Licensed under the MIT license. |
Oops, something went wrong.