Compare commits

..

No commits in common. "c1fee4f02879a0d4ce14b3900ec5fc0252282082" and "1e8a3b98dd08a11e67fd6c2af3b8e165ef1a3ae6" have entirely different histories.

11 changed files with 5286 additions and 7 deletions

View File

@ -1,3 +1,3 @@
node_modules
dist
build

2
.gitignore vendored
View File

@ -12,6 +12,4 @@
# Error File
yarn-error.log
/build
/dist

View File

@ -1,3 +1 @@
node_modules
dist
build

2
dist/index.d.ts vendored Normal file
View File

@ -0,0 +1,2 @@
export { default as power } from "./sample";
export { default as sqrt } from "./sample2";

10
dist/index.js vendored Normal file
View File

@ -0,0 +1,10 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.sqrt = exports.power = void 0;
var sample_1 = require("./sample");
Object.defineProperty(exports, "power", { enumerable: true, get: function () { return __importDefault(sample_1).default; } });
var sample2_1 = require("./sample2");
Object.defineProperty(exports, "sqrt", { enumerable: true, get: function () { return __importDefault(sample2_1).default; } });

2
dist/sample.d.ts vendored Normal file
View File

@ -0,0 +1,2 @@
declare const power: (n?: number | undefined) => number | undefined;
export default power;

12
dist/sample.js vendored Normal file
View File

@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var power = function (n) {
if (typeof n === "undefined" || n === null) {
return undefined;
}
if (typeof n !== "number") {
return undefined;
}
return Math.pow(n, 2);
};
exports.default = power;

2
dist/sample2.d.ts vendored Normal file
View File

@ -0,0 +1,2 @@
declare const sqrt: (n: number) => number | undefined;
export default sqrt;

12
dist/sample2.js vendored Normal file
View File

@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var sqrt = function (n) {
if (typeof n === "undefined" || n === null) {
return undefined;
}
if (typeof n !== "number") {
return undefined;
}
return Math.sqrt(n);
};
exports.default = sqrt;

View File

@ -10,13 +10,14 @@
"keywords": ["javascript","typescript", "boilerplate","library"],
"repository": {
"url": "https://git.cubetiqs.com/CUBETIQ/library-boilerplate.git"
"url": "https://git.cubetiqs.com/s.long/js-lib-boilerplate"
},
"scripts": {
"build": "tsc",
"test": "jest",
"build:test": "yarn jest && yarn build",
"pub": "npm publish --access public",
"publish": "yarn build:test && npm publish --registry https://npm.osa.cubetiqs.com",
"run:example": "cd example && yarn start"
},
"devDependencies": {

5242
yarn-error.log Normal file

File diff suppressed because it is too large Load Diff