Commit 1323b796 by Beebuddy Builder

no message

1 parent 6acb8723
{
"presets": ["@babel/preset-env"],
"plugins": ["@babel/plugin-proposal-optional-chaining"]
}
\ No newline at end of file
{
"presets": ["@babel/preset-env"],
"plugins": ["@babel/plugin-proposal-optional-chaining"]
}
\ No newline at end of file
"use strict";
module.exports = require('./dist');
\ No newline at end of file
{
"name": "dma-common-backend",
"version": "1.0.0",
"description": "",
"main": "dist/src/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "babel index.js -D -d dist && 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": {
"type": "git",
"url": "https://tanawat@192.168.10.40/DMA/dma-common-backend.git"
},
"keywords": [],
"author": "",
"license": "ISC"
}
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Utils = void 0;
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
var Utils =
/*#__PURE__*/
function () {
function Utils() {
_classCallCheck(this, Utils);
}
_createClass(Utils, null, [{
key: "printf",
/**
* @function
* @description Testasdfasdfasdf
* @param {String} str
* @returns {String}
*/
value: function printf(str) {
return "=======>".concat(str, "<=======");
}
}]);
return Utils;
}();
exports.Utils = Utils;
\ No newline at end of file
module.exports = require('./dist');
\ No newline at end of file
export declare const Greeter: (name: string) => string;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Greeter = void 0;
exports.Greeter = function (name) { return "Hello " + name; };
...@@ -2,18 +2,14 @@ ...@@ -2,18 +2,14 @@
"name": "dma-common-backend", "name": "dma-common-backend",
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"main": "dist/src/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"build": "babel index.js -D -d dist && 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'`" "build": "tsc"
}, },
"devDependencies": { "devDependencies": {
"@babel/cli": "7.0.0-rc.1", "typescript": "^4.0.3"
"@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",
...@@ -22,4 +18,4 @@ ...@@ -22,4 +18,4 @@
"keywords": [], "keywords": [],
"author": "", "author": "",
"license": "ISC" "license": "ISC"
} }
\ No newline at end of file
export class Utils {
/**
* @function
* @description Testasdfasdfasdf
* @param {String} str
* @returns {String}
*/
static printf(str){
return `=======>${str}<=======`;
}
}
\ No newline at end of file
export const Greeter = (name: string) => `Hello ${name}`;
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"declaration": true,
"outDir": "./lib",
"strict": true
},
"include": [
"src"
],
"exclude": [
"node_modules",
"**/__tests__/*"
]
}
\ 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!