Added build pipeline

This commit is contained in:
2024-09-05 17:36:34 +05:30
parent ffdb953b88
commit fbd22cf4da
5 changed files with 65 additions and 2 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
build

View File

@@ -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"),

4
index.ts Normal file
View File

@@ -0,0 +1,4 @@
export * from "./api-config"
export * from "./web-config"
export * from "./constants"
export * from "./navigator"

39
package.json Normal file
View File

@@ -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"
}

21
tsconfig.json Normal file
View File

@@ -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"]
}