Compare commits

...

2 Commits

Author SHA1 Message Date
c1fee4f028 updated the git cached and configs 2020-10-15 11:13:48 +07:00
bfb4dc391e updated package and remove publish command 2020-10-15 11:11:50 +07:00
11 changed files with 7 additions and 5286 deletions

View File

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

2
.gitignore vendored
View File

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

View File

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

2
dist/index.d.ts vendored
View File

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

10
dist/index.js vendored
View File

@ -1,10 +0,0 @@
"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
View File

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

12
dist/sample.js vendored
View File

@ -1,12 +0,0 @@
"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
View File

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

12
dist/sample2.js vendored
View File

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

File diff suppressed because it is too large Load Diff