https://github.com/brian9206/babel-vscode-skeleton
babel ES6 + node + vscode debugging environment project skeleton
https://github.com/brian9206/babel-vscode-skeleton
babel nodejs skeleton vscode
Last synced: 2 months ago
JSON representation
babel ES6 + node + vscode debugging environment project skeleton
- Host: GitHub
- URL: https://github.com/brian9206/babel-vscode-skeleton
- Owner: brian9206
- Created: 2018-05-22T07:40:48.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-26T14:18:15.000Z (almost 8 years ago)
- Last Synced: 2025-07-01T06:50:56.742Z (12 months ago)
- Topics: babel, nodejs, skeleton, vscode
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# babel-vscode-skeleton
babel ES6 + node + vscode debugging environment project skeleton
# How to use?
1. Remove `README.md` and create yours
2. `yarn add --dev babel-cli babel-preset-env babel-plugin-transform-object-rest-spread`
3. Add the following to your `package.json`
```json
"scripts": {
"start": "node dist/main.js",
"build": "babel src --out-dir dist --source-maps"
},
```
4. Start your work in `src/main.js`
5. You can use vscode to debug your code
## Enable `err.stack` source mapping
1. `yarn add --dev source-map-support`
2. Put the following code at the top of `src/main.js` (before any `import` or `require`)
```js
import 'source-map-support/register';
```
3. Debug your code and `err.stack` will be source mapped