Commit be070477 by Beebuddy Builder

v2

1 parent 800dfdac
{
"presets": ["@babel/preset-env"],
"plugins": ["@babel/plugin-proposal-optional-chaining"]
}
\ No newline at end of file
node_modules
dist
\ No newline at end of file
module.exports = (str) => { module.exports = require('./dist');
return `=======>${str}<=======`; \ No newline at end of file
}
\ No newline at end of file
...@@ -4,7 +4,16 @@ ...@@ -4,7 +4,16 @@
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1",
"build": "babel src -D -d dist/src && babel ./.babelrc -D -d dist && babel ./package.json -D -d dist && echo '\n🍺 'Build success at `date '+%T %F'`"
},
"devDependencies": {
"@babel/cli": "7.0.0-rc.1",
"@babel/core": "7.0.0-rc.1",
"@babel/node": "7.0.0-rc.1",
"@babel/plugin-proposal-optional-chaining": "7.9.0",
"@babel/preset-env": "7.0.0-rc.1"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
......
class Utils {
/**
* @description Testasdfasdfasdf
* @param {String} str
* @returns {String}
*/
static printf(str){
return `=======>${str}<=======`;
}
}
export default Utils;
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!