add package.json, babel and test file

This commit is contained in:
Felix Hamann 2019-05-22 22:52:25 +02:00
parent b0df824835
commit 3aa081131f
4 changed files with 3135 additions and 0 deletions

3
.babelrc Normal file
View File

@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env"]
}

3111
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

18
package.json Normal file
View File

@ -0,0 +1,18 @@
{
"name": "uni2work",
"version": "1.0.0",
"description": "",
"scripts": {
"watch": "watch babel static/es",
"babel": "babel static/es -d static/js"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.5",
"watch": "^1.0.2",
"@babel/preset-env": "^7.4.5"
}
}

3
static/es/test/test.js Normal file
View File

@ -0,0 +1,3 @@
let x = (a) => console.log(a * 2);
x(4);