diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 512e3c84..aabd5473 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,7 @@ jobs: strategy: matrix: - node-version: [18.19.0] + node-version: [20.19.5] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: @@ -41,10 +41,13 @@ jobs: cache: npm - name: Install dependencies - run: npm ci + run: npm i + + - name: Run run ESLint + run: npm run lint --if-present - name: Run build library - run: npm run build:lib --if-present + run: npm run build:prod --if-present - - name: Run build example - run: npm run build:example-app --if-present + - name: Run build app + run: npm run demo:prod --if-present diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 48929f1b..415cb7bc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - node-version: [18.19.0] + node-version: [20.19.5] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - name: Check out repo @@ -36,10 +36,13 @@ jobs: cache: npm - name: Install dependencies - run: npm ci + run: npm i - - name: Run build library - run: npm run build:lib --if-present + - name: Run run ESLint + run: npm run lint --if-present + + - name: Run build only library + run: npm run build:prod --if-present - name: Publish package run: npm publish ./dist/angular-tree-component diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 1ef220bf..00000000 --- a/.npmignore +++ /dev/null @@ -1,13 +0,0 @@ -dist -doc -typings -node_modules -example -*webpack*conf*.js -*karma*.js -*.ts -!*.d.ts -testScreenshots -testResults -e2eResults -e2e \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 92a14d77..00000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -dist: trusty -sudo: required - -addons: - firefox: latest - apt: - sources: - - google-chrome - packages: - - google-chrome-stable fluxbox - -language: node_js -node_js: - - "8.9.0" - -before_install: - - "export DISPLAY=:99.0" - - "sh -e /etc/init.d/xvfb start" - - sleep 3 - - fluxbox >/dev/null 2>&1 & - -before_script: - - npm run test:setup diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index f8824a0f..00000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,147 +0,0 @@ -# How to contribute - -Thank you for reading this, we always welcome help make this project even better! Without the help from our contributors this project would not be possible. - -## Code of Conduct -Please read and follow our [Code of Conduct][coc]. - -## Setup - -Run `npm install` to install dependencies. - -Run `npm run build:lib` to build. - -Run `npm run start:example-app` to start the example app. - -### Testing - -Run `npm install` to install dependencies. - -Run `npm run build:lib` to build. - -Run `npm run test:ci:local` to test the same way the build validation will test. - -## Submission Guidelines - -### Submitting a feature request - -You can open an issue and request a new feature. Please add some information on what you would like, how it should work. Small features can be added directly as a Pull Request without opening an issue first. - -### Submitting a bug report - -Search through other issues to see if there is already a previous issue for the bug. Provide a small reproduction using a StackBlitz project or a GitHub repo. - -### Submitting a Pull Request - -- Please test your code by running the tests. -- Rebase your branch against the current master. We might ask you to rebase again once your branch is out of date. -- If you add new functionality please also add tests to validate this. -- Reference issues as a PR comment. -- Follow our code guidelines. - -## Commit Message Guidelines - -We have very precise rules over how our git commit messages can be formatted. This leads to **more -readable messages** that are easy to follow when looking through the **project history**. But also, -we use the git commit messages to **generate the Angular Tree Component change log**. - -### Commit Message Format - -Each commit message consists of a **header**, a **body** and a **footer**. The header has a special -format that includes a **type**, a **scope**, and a **subject**: - -``` -(): - - - -