add package.json, babel and test file
This commit is contained in:
parent
b0df824835
commit
3aa081131f
3111
package-lock.json
generated
Normal file
3111
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
18
package.json
Normal file
18
package.json
Normal 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
3
static/es/test/test.js
Normal file
@ -0,0 +1,3 @@
|
||||
let x = (a) => console.log(a * 2);
|
||||
|
||||
x(4);
|
||||
Loading…
Reference in New Issue
Block a user