Skip to content

Commit

Permalink
fix: remove node config (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbutt committed Feb 13, 2024
1 parent 8ec2ba6 commit ed0da87
Show file tree
Hide file tree
Showing 264 changed files with 6,562 additions and 2,686 deletions.
3 changes: 1 addition & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules/
dist/
generators/
.history/
src/templates/
templates/
48 changes: 42 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3
with:
version: 8

- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
Expand All @@ -38,6 +38,9 @@ jobs:
- name: Build
run: pnpm build

- name: Test
run: pnpm test

release:
name: Run Semantic Release

Expand All @@ -49,17 +52,17 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup PNPM
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v3
with:
version: 8

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm
Expand All @@ -79,3 +82,36 @@ jobs:
GIT_AUTHOR_EMAIL: ${{ secrets.SEMANTIC_RELEASE_GIT_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.SEMANTIC_RELEASE_GIT_NAME }}
GIT_COMMITTER_EMAIL: ${{ secrets.SEMANTIC_RELEASE_GIT_EMAIL }}
containerize:
name: Build and Push Docker Image

runs-on: ubuntu-latest

defaults:
run:
working-directory: ./docker

if: ${{ github.ref == 'refs/heads/master' }}

needs: [release]

steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}

- name: Build
run: |
docker build . --tag ghcr.io/${{ github.repository }}:latest
docker tag ghcr.io/${{ github.repository }}:latest ghcr.io/${{ github.repository }}:${{ github.sha }}
- name: Push
run: docker push ghcr.io/${{ github.repository }}:latest
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,4 @@ dist
# Local history
.history/

generators/

*.bak
2 changes: 1 addition & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"*?(test|spec).{js,jsx,ts,tsx}": ["prettier --write"],
"*?(test|spec).{js,jsx,ts,tsx}": ["eslint --fix", "prettier --write"],
"*.{css,scss,md,html,json,yml,yaml}": ["prettier --write"]
}
3 changes: 1 addition & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
build/*
dist/*
generators/*
node_modules/*
.history/*
src/app/templates/*
templates/*
USAGE
tsup.schema.json
14 changes: 0 additions & 14 deletions .vscode/c_cpp_properties.json

This file was deleted.

14 changes: 9 additions & 5 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "C/C++ Runner: Debug Session",
"type": "lldb",
"type": "node",
"request": "launch",
"args": [],
"cwd": "/Users/damienbutt/Projects/generator-norgate-av/testc/src",
"program": "/Users/damienbutt/Projects/generator-norgate-av/testc/src/build/Debug/outDebug"
"name": "Launch Program",
"skipFiles": ["<node_internals>/**"],
"program": "${workspaceFolder}/dist/generators/app/index.js",
"outFiles": ["${workspaceFolder}/**/*.js"],
"args": []
}
]
}
56 changes: 1 addition & 55 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,59 +41,5 @@
"url": "./tsup.schema.json",
"fileMatch": ["package.json", "tsup.config.json"]
}
],
"C_Cpp_Runner.cCompilerPath": "clang",
"C_Cpp_Runner.cppCompilerPath": "clang++",
"C_Cpp_Runner.debuggerPath": "lldb",
"C_Cpp_Runner.cStandard": "",
"C_Cpp_Runner.cppStandard": "",
"C_Cpp_Runner.msvcBatchPath": "",
"C_Cpp_Runner.useMsvc": false,
"C_Cpp_Runner.warnings": [
"-Wall",
"-Wextra",
"-Wpedantic",
"-Wshadow",
"-Wformat=2",
"-Wcast-align",
"-Wconversion",
"-Wsign-conversion",
"-Wnull-dereference"
],
"C_Cpp_Runner.msvcWarnings": [
"/W4",
"/permissive-",
"/w14242",
"/w14287",
"/w14296",
"/w14311",
"/w14826",
"/w44062",
"/w44242",
"/w14905",
"/w14906",
"/w14263",
"/w44265",
"/w14928"
],
"C_Cpp_Runner.enableWarnings": true,
"C_Cpp_Runner.warningsAsError": false,
"C_Cpp_Runner.compilerArgs": [],
"C_Cpp_Runner.linkerArgs": [],
"C_Cpp_Runner.includePaths": [],
"C_Cpp_Runner.includeSearch": ["*", "**/*"],
"C_Cpp_Runner.excludeSearch": [
"**/build",
"**/build/**",
"**/.*",
"**/.*/**",
"**/.vscode",
"**/.vscode/**"
],
"C_Cpp_Runner.useAddressSanitizer": false,
"C_Cpp_Runner.useUndefinedSanitizer": false,
"C_Cpp_Runner.useLeakSanitizer": false,
"C_Cpp_Runner.showCompilationTime": false,
"C_Cpp_Runner.useLinkTimeOptimization": false,
"C_Cpp_Runner.msvcSecureNoWarnings": false
]
}
14 changes: 14 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "pnpm",
"args": ["build"],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
FROM node:lts-alpine3.15
FROM node:lts-alpine
LABEL org.opencontainers.image.source="https://github.com/Norgate-AV/generator-norgate-av"

ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable

RUN apk update && apk upgrade
RUN apk add git

RUN yarn global add yo generator-norgate-av
RUN chown -R node:node /usr/local/lib/node_modules
RUN pnpm add -g yo generator-norgate-av

USER node
ENTRYPOINT [ "yo", "--no-insight", "norgate-av" ]
Loading

0 comments on commit ed0da87

Please sign in to comment.