From fbd22cf4da72db011a6bfe5faa6f2c18a4ec5bc5 Mon Sep 17 00:00:00 2001 From: mohiit1502 Date: Thu, 5 Sep 2024 17:36:34 +0530 Subject: [PATCH] Added build pipeline --- .gitignore | 1 + constants.ts | 2 -- index.ts | 4 ++++ package.json | 39 +++++++++++++++++++++++++++++++++++++++ tsconfig.json | 21 +++++++++++++++++++++ 5 files changed, 65 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 index.ts create mode 100644 package.json create mode 100644 tsconfig.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c795b05 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build \ No newline at end of file diff --git a/constants.ts b/constants.ts index 0c04689..48885ff 100644 --- a/constants.ts +++ b/constants.ts @@ -6,8 +6,6 @@ export const ICON_ROOT = `${ API_CONFIG.STATIC_HOST[process.env.NODE_ENV as "production" | "development"] }/icon` -export const SESSION_COOKIE_NAME = "x-access-token" - export const DEFAULT_LOCALE = { direction: "ltr", format: moment.localeData().longDateFormat("L"), diff --git a/index.ts b/index.ts new file mode 100644 index 0000000..eeeccf0 --- /dev/null +++ b/index.ts @@ -0,0 +1,4 @@ +export * from "./api-config" +export * from "./web-config" +export * from "./constants" +export * from "./navigator" diff --git a/package.json b/package.json new file mode 100644 index 0000000..132f77a --- /dev/null +++ b/package.json @@ -0,0 +1,39 @@ +{ + "name": "@armco/configs", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "build": "tsc", + "format": "prettier --write .", + "lint": "eslint ." + }, + "devDependencies": { + "typescript": "^5.0.2" + }, + "eslintConfig": { + "plugins": [ + "prettier" + ], + "rules": { + "prettier/prettier": "error" + } + }, + "prettier": "prettier-config-nick", + "main": "build/index.js", + "repository": { + "type": "git", + "url": "git+https://github.com/ReStruct-Corporate-Advantage/configs.git" + }, + "keywords": [ + "components", + "atomic", + "building-blocks", + "foundation" + ], + "license": "ISC", + "bugs": { + "url": "https://github.com/ReStruct-Corporate-Advantage/configs/issues" + }, + "homepage": "https://github.com/ReStruct-Corporate-Advantage/configs#readme" +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..3b10e96 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "skipLibCheck": true, + "esModuleInterop": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "module": "esnext", + "moduleResolution": "node", + "outDir": "build", + "resolveJsonModule": true, + "isolatedModules": true, + "declaration": true, + "noEmit": false, + "lib": [ + "dom", + "esnext" + ], + "target": "es5", + }, + "exclude": ["build"] +}