Skip to content

Commit

Permalink
Merge pull request #2 from Talentia-Software-OSS/4.0.x
Browse files Browse the repository at this point in the history
4.0.x
  • Loading branch information
cavone-leonardo authored Nov 21, 2023
2 parents d1aed1e + 021b1ba commit b60817e
Show file tree
Hide file tree
Showing 390 changed files with 19,402 additions and 176,946 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js Build

on:
workflow_call:
workflow_dispatch:
pull_request:
push:
branches: [ "master" ]

permissions:
contents: read
# Needed for the 'trilom/file-changes-action' action
pull-requests: read

# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.11.0]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- name: Check out repo
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm

- name: Install dependencies
run: npm ci

- name: Run build library
run: npm run build --if-present

48 changes: 48 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This workflow will run tests using node and then publish a package to npm when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Publish

on:
workflow_dispatch:
# release:
# types: [created]

# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:
# build:
# uses: ./.github/workflows/build.yml

publish-npm:
# needs: build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.11.0]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- name: Check out repo
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
cache: npm

- name: Install dependencies
run: npm ci

- name: Run build only library
run: npm run build --if-present

- name: Publish package
run: npm publish ./dist/ngx-virtual-scroller
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

51 changes: 42 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,42 @@
dist/
node_modules/
*.log
/compiled
*.map.js
*.js
/src/**/*.js
ngx-virtual-scroller-*.tgz
!docs/**/*
# See http://help.github.com/ignore-files/ for more about ignoring files.

# Compiled output
/dist
/tmp
/out-tsc
/bazel-out

# Node
/node_modules
npm-debug.log
yarn-error.log

# IDEs and editors
.idea/
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# Visual Studio Code
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# Miscellaneous
/.angular/cache
.sass-cache/
/connect.lock
/coverage
/libpeerconnection.log
testem.log
/typings

# System files
.DS_Store
Thumbs.db
11 changes: 0 additions & 11 deletions .npmignore

This file was deleted.

30 changes: 30 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"@talentia/ngx-virtual-scroller": {
"projectType": "library",
"root": "projects/ngx-virtual-scroller",
"sourceRoot": "projects/ngx-virtual-scroller/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "projects/ngx-virtual-scroller/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/ngx-virtual-scroller/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/ngx-virtual-scroller/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
}
}
}
}
}
13 changes: 0 additions & 13 deletions demo/.editorconfig

This file was deleted.

46 changes: 0 additions & 46 deletions demo/.gitignore

This file was deleted.

27 changes: 0 additions & 27 deletions demo/README.md

This file was deleted.

Loading

0 comments on commit b60817e

Please sign in to comment.