Skip to content

Commit

Permalink
Merge pull request #46 from Flagsmith/fix/export-typings
Browse files Browse the repository at this point in the history
chore: add exports at the top-level
  • Loading branch information
kyle-ssg authored Jul 22, 2022
2 parents de2224a + 485d7f5 commit d4185fb
Show file tree
Hide file tree
Showing 14 changed files with 11,420 additions and 4 deletions.
3 changes: 3 additions & 0 deletions es6-example/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env"]
}
8 changes: 8 additions & 0 deletions es6-example/.eslintrc
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 }
}
12 changes: 12 additions & 0 deletions es6-example/.gitignore
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/
62 changes: 62 additions & 0 deletions es6-example/README.md
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.
Loading

0 comments on commit d4185fb

Please sign in to comment.