Skip to content

Commit

Permalink
Setup publishing workflow and update package configurations (#11)
Browse files Browse the repository at this point in the history
* Setup publishing workflow and update package configurations

* Setup publishing workflow and update package configurations #2
  • Loading branch information
thegdsks authored Aug 3, 2024
1 parent 1f80723 commit d91eb4d
Show file tree
Hide file tree
Showing 81 changed files with 15,045 additions and 3,756 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
run: npm run build

- name: Publish to npm
run: npm publish
run: |
cd packages/glin-profanity
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
9 changes: 9 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"packages": [
"packages/*"
],
"version": "independent",
"npmClient": "npm",
"useWorkspaces": true
}

15,825 changes: 12,149 additions & 3,676 deletions package-lock.json

Large diffs are not rendered by default.

45 changes: 27 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,57 +1,66 @@
{
"name": "glin-profanity",
"version": "1.1.2",
"name": "glin-profanity",
"version": "1.1.3",
"description": "Glin-Profanity is a lightweight and efficient npm package designed to detect and filter profane language in text inputs across multiple languages. Whether you’re building a chat application, a comment section, or any platform where user-generated content is involved, Glin-Profanity helps you maintain a clean and respectful environment.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"private": true,
"workspaces": [
"packages/*"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "webpack serve --mode development",
"build": "webpack --mode production",
"build": "lerna run build",
"publish": "lerna publish",
"prepare": "husky install",
"commit": "git-cz",
"commit": "git-cz",
"lint": "eslint ."
},
"repository": {
"type": "git",
"url": "https://github.com/GLINCKER/glin-profanity"
},
"keywords": ["glin-profanity","glincker","glin","profanity"],
"keywords": [
"glin-profanity",
"glincker",
"glin",
"profanity"
],
"author": "gdsks",
"license": "ISC",
"dependencies": {
"glin-profanity": "^1.1.2",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.2",
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@types/node": "^22.0.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"babel-loader": "^9.1.3",
"eslint": "^8.57.0",
"eslint-plugin-react": "^7.35.0",
"eslint": "^8.57.0",
"eslint-plugin-react": "^7.35.0",
"git-cz": "^4.9.0",
"html-webpack-plugin": "^5.6.0",
"husky": "^8.0.3",
"prettier": "^3.3.3",
"husky": "^8.0.3",
"lerna": "^4.0.0",
"lint-staged": "^15.2.0",
"prettier": "^3.3.3",
"typescript": "^5.5.4",
"webpack": "^5.93.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.4",
"git-cz": "^4.9.0",
"lint-staged": "^15.2.0"
"webpack-dev-server": "^5.0.4"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --fix",
"prettier --write"
]
}
}
}
8 changes: 8 additions & 0 deletions packages/glin-profanity/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
src/
node_modules/
*.test.*
*.spec.*
*.log
*.md
tsconfig.json
.npmignore
17 changes: 17 additions & 0 deletions packages/glin-profanity/lib/data/Norwegian.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"words": [
"drittsekk",
"faen i helvete",
"fitte",
"jævla",
"kuk",
"kukene",
"kuker",
"nigger",
"pikk",
"sotrør",
"ståpikk",
"ståpikkene",
"ståpikker"
]
}
157 changes: 157 additions & 0 deletions packages/glin-profanity/lib/data/arabic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
{
"words": [
"سكس",
"طيز",
"شرج",
"لعق",
"لحس",
"تمص",
"بيضان",
"ثدي",
"بز",
"حلمة",
"مفلقسة",
"بظر",
"كس",
"مبادل",
"عاهرة",
"جماع",
"قضيب",
"زب",
"لوطي",
"لواط",
"سحاق",
"اغتصاب",
"خنثي",
"احتلام",
"نيك",
"متناك",
"شرموطة",
"عرص",
"خول",
"قحبة",
"لبوة",
"وسخ",
"علق",
"ناك",
"منيك",
"شرمط",
"قحب",
"شرموط",
"خول",
"هنيك",
"فحل",
"ديوث",
"متناك",
"هايج",
"زبر",
"bdsm",
"زان",
"سادي",
"سادى",
"كسها",
"كسي",
"كسك",
"كسم",
"بنتاك",
"بتناك",
"نيكني",
"ديوث",
"نياك",
"فشاخ",
"فشخ",
"هفشخك",
"شذوذ",
"لواط",
"لوطي",
"لوطى",
"عاهر",
"لحس",
"متع",
"حمام",
"هربط",
"دياث",
"سحاق",
"جنس",
"جنس",
"جوزي",
"مراتي",
"مراتى",
"مرات",
"ورا",
"شعر",
"مشعر",
"اركب",
"فرس",
"جاد",
"منيوك",
"زوبر",
"طياز",
"شراميط",
"فاجر",
"محروم",
"واقف",
"بيحك",
"ممحونة",
"لبن",
"لبو",
"واقف",
"شرقان",
"افضي",
"دهولت",
"bzaz",
"nek",
"nik",
"mtnak",
"zeb",
"zep",
"zobr",
"zopr",
"kos",
"a7a",
"hayg",
"لبوه",
"لبوة",
"لبوت",
"sharma",
"banoty",
"بنوتي",
"بنوتى",
"سلب",
"عايز",
"دكر",
"نتاية",
"نتايه",
"زنج",
"ممحون",
"تعبان",
"اقعد",
"بزاز",
"هيجان",
"سافل",
"مصيهولي",
"هتمص",
"مصي",
"بز",
"hayg",
"كلوت",
"اندر",
"سنتيا",
"بوكسر",
"بتاع",
"مشتهي",
"زبى",
"نكته",
"اتناك",
"nayak",
"nyak",
"neeek",
"اغتصا",
"زب",
"كس",
"بلكيشن",
"كيشن",
"ليسبيان",
"سبيان"
]
}
Loading

0 comments on commit d91eb4d

Please sign in to comment.