Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
BeebuddyUtil
/
dma-common-backend
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit be070477
authored
Oct 15, 2020
by
Beebuddy Builder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v2
1 parent
800dfdac
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
5 deletions
.babelrc
.gitignore
index.js
package.json
src/index.js
.babelrc
0 → 100644
View file @
be07047
{
"presets": ["@babel/preset-env"],
"plugins": ["@babel/plugin-proposal-optional-chaining"]
}
\ No newline at end of file
.gitignore
0 → 100644
View file @
be07047
node_modules
dist
\ No newline at end of file
index.js
View file @
be07047
module
.
exports
=
(
str
)
=>
{
module
.
exports
=
require
(
'./dist'
);
return
`=======>
${
str
}
<=======`
;
\ No newline at end of file
}
\ No newline at end of file
package.json
View file @
be07047
...
@@ -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"
,
...
...
src/index.js
0 → 100644
View file @
be07047
class
Utils
{
/**
* @description Testasdfasdfasdf
* @param {String} str
* @returns {String}
*/
static
printf
(
str
){
return
`=======>
${
str
}
<=======`
;
}
}
export
default
Utils
;
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment