Skip to content

Commit d4185fb

Browse files
authored
Merge pull request #46 from Flagsmith/fix/export-typings
chore: add exports at the top-level
2 parents de2224a + 485d7f5 commit d4185fb

File tree

14 files changed

+11420
-4
lines changed

14 files changed

+11420
-4
lines changed

es6-example/.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["@babel/preset-env"]
3+
}

es6-example/.eslintrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": ["eslint:recommended", "prettier"],
3+
"parserOptions": {
4+
"ecmaVersion": 2018,
5+
"sourceType": "module"
6+
},
7+
"env": { "es6": true, "node": true }
8+
}

es6-example/.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Dependency directories
10+
node_modules/
11+
12+
build/

es6-example/README.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Nodejs-ES6-Boilerplate
2+
[![Made in Indonesia](https://made-in-indonesia.github.io/made-in-indonesia.svg)](https://github.com/made-in-indonesia/made-in-indonesia)
3+
4+
A Node.js boilerplate with ES6, ESLint, and Prettier
5+
6+
## Background
7+
8+
I created this boilerplate because I have several coding interviews that needs to be done using JavaScript.
9+
10+
## Scripts
11+
12+
```bash
13+
# Run the project without nodemon
14+
npm run start
15+
16+
# Build the project
17+
npm run build
18+
19+
# Clean build
20+
npm run clean
21+
22+
# Check the lint errors
23+
npm run lint
24+
25+
# Fix the lint errors
26+
npm run lint:fix
27+
28+
# Run prettier
29+
npm run format
30+
31+
# Check prettier errors
32+
npm run format:check
33+
```
34+
35+
## Usage
36+
37+
1. Clone the repository and init new git project
38+
39+
```bash
40+
$ git clone [email protected]:vferdiansyah/nodejs-es6-boilerplate.git ./your/project/folder
41+
$ cd ./your/project/folder
42+
$ rm -rf .git
43+
$ git init
44+
```
45+
46+
2. Change project specific information in the following places
47+
48+
- [package.json](./package.json)
49+
- [README.md](./README.md)
50+
51+
3. Install dependencies
52+
53+
```bash
54+
$ npm i
55+
```
56+
57+
4. Start coding
58+
59+
## License
60+
61+
Copyright (c) 2020 Veri Ferdiansyah
62+
Licensed under the MIT license.

0 commit comments

Comments
 (0)