Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DASPRiD committed Mar 6, 2024
0 parents commit 14b5108
Show file tree
Hide file tree
Showing 35 changed files with 6,390 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Release

on:
push:
branches:
- main

jobs:
release:
name: Release
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use pnpm 8.x
uses: pnpm/action-setup@v2
with:
version: 8

- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'

- name: Install Dependencies
run: CI=true pnpm install

- name: Biome CI
run: pnpm exec biome ci .

- name: Build
run: pnpm build

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
HUSKY: 0
id: semantic
with:
semantic_version: 19.0.5
extra_plugins: |
@semantic-release/[email protected]
@semantic-release/[email protected]
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/cdk.out
/node_modules
/dist
1 change: 1 addition & 0 deletions .lefthook/commit-msg/commitlint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
echo $(head -n1 $1) | npx commitlint --color
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Soliant Consulting

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Create Auth0 CICD

Init project for creating Auth0 CICD projects with Bitbucket Pipelines integration.

To create a new project, run the following command:

```pnpm dlx @soliantconsulting/create-auth0-cicd@latest [<name>]```

The script will place the project in a directory with the given name under the current working directory.
2 changes: 2 additions & 0 deletions assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"$schema": "https://biomejs.dev/schemas/1.5.2/schema.json",
"organizeImports": {
"enabled": true
},
"files": {
"include": [
"biome.json",
"cdk.json",
"release.config.cjs",
"commitlint.config.cjs",
"src/**/*"
]
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"nursery": {
"noEmptyTypeParameters": "error",
"noInvalidUseBeforeDeclaration": "error",
"noUnusedImports": "error",
"noUnusedPrivateClassMembers": "error",
"noUselessLoneBlockStatements": "error",
"noUselessTernary": "error",
"useExportType": "error",
"useImportType": "error",
"useForOf": "error",
"useGroupedTypeImport": "error"
},
"complexity": {
"noExcessiveCognitiveComplexity": "warn",
"useSimplifiedLogicExpression": "error"
},
"correctness": {
"noNewSymbol": "error"
},
"style": {
"useBlockStatements": "error",
"useCollapsedElseIf": "error",
"useShorthandArrayType": "error",
"useShorthandAssign": "error",
"useSingleCaseStatement": "error"
},
"suspicious": {
"noApproximativeNumericConstant": "warn",
"noConsoleLog": "error"
}
}
},
"formatter": {
"indentStyle": "space",
"indentWidth": 4,
"lineWidth": 100
}
}
1 change: 1 addition & 0 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ["@commitlint/config-conventional"] };
10 changes: 10 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
pre-commit:
commands:
check:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
run: npx biome check --apply --no-errors-on-unmatched --files-ignore-unknown=true {staged_files} && git update-index --again

commit-msg:
scripts:
"commitlint.sh":
runner: bash
63 changes: 63 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"name": "@soliantconsulting/create-auth0-cicd",
"version": "1.0.0",
"description": "Create Auth0 CICD",
"type": "module",
"author": "Soliant Consulting",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"files": [
"dist/**/*",
"skeleton/**/*"
],
"bin": {
"create-auth0-cicd": "./dist/cli.js"
},
"scripts": {
"build": "tsc",
"format": "biome format . --write",
"check": "biome check . --apply"
},
"devDependencies": {
"@biomejs/biome": "1.5.3",
"@commitlint/cli": "^18.5.0",
"@commitlint/config-conventional": "^18.5.0",
"@tsconfig/node20": "^20.1.2",
"@types/node": "^20.11.5",
"@types/semver": "^7.5.6",
"@types/slug": "^5.0.7",
"@types/source-map-support": "^0.5.10",
"lefthook": "^1.6.0",
"pkg-types": "^1.0.3",
"tsx": "^4.7.0",
"typescript": "^5.3.3"
},
"dependencies": {
"@aws-cdk/cli-lib-alpha": "2.130.0-alpha.0",
"@aws-sdk/client-acm": "^3.496.0",
"@aws-sdk/client-cloudformation": "^3.496.0",
"@aws-sdk/client-iam": "^3.523.0",
"@aws-sdk/client-s3": "^3.523.0",
"@aws-sdk/client-sts": "^3.496.0",
"@listr2/prompt-adapter-enquirer": "^2.0.1",
"@soliantconsulting/bitbucket-cloud-cli-auth": "^1.0.0",
"@soliantconsulting/bitbucket-openid-connect": "^1.1.1",
"auth0": "^4.3.1",
"aws-cdk": "^2.122.0",
"aws-cdk-lib": "^2.130.0",
"camelcase": "^8.0.0",
"constructs": "^10.3.0",
"deepmerge": "^4.3.1",
"enquirer": "^2.4.1",
"execa": "^8.0.1",
"glob": "^10.3.10",
"handlebars": "^4.7.8",
"listr2": "^8.0.1",
"meow": "^13.1.0",
"semver": "^7.5.4",
"slug": "^8.2.3",
"source-map-support": "^0.5.21"
}
}
Loading

0 comments on commit 14b5108

Please sign in to comment.