configuring minimal babel node environement
This commit is contained in:
1 parent
dec6acabac
commit
b0c4d4a8d7
4 files changed
+4591
-1
No files matched your search
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"presets": ["env", "stage-2"]
|
||||
}
|
||||
Generated
+4574
File diff suppressed because it is too large.
Load diff
+11
-1
@@ -4,6 +4,7 @@
|
||||
"description": "Responsible for loading all web modules and running them.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"start": "nodemon --exec babel-node --presets env,stage-2 src/index.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
@@ -15,5 +16,14 @@
|
||||
"bugs": {
|
||||
"url": "https://github.com/Algoteers/MasterApp/issues"
|
||||
},
|
||||
"homepage": "https://github.com/Algoteers/MasterApp#readme"
|
||||
"homepage": "https://github.com/Algoteers/MasterApp#readme",
|
||||
"devDependencies": {
|
||||
"babel-cli": "^6.26.0",
|
||||
"babel-preset-env": "^1.7.0",
|
||||
"babel-preset-stage-2": "^6.24.1",
|
||||
"nodemon": "^1.18.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"dotenv": "^6.1.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
import 'dotenv/config'
|
||||
|
||||
console.log(process.env.TEAMS_API_URL)
|
||||
Reference in new issue
Block a user