Skip to content

Commit

Permalink
Upgraded to Angular 10 from AngularJS
Browse files Browse the repository at this point in the history
  • Loading branch information
James Albright committed Sep 28, 2020
1 parent ba7556f commit b0f5c57
Show file tree
Hide file tree
Showing 89 changed files with 15,075 additions and 7,561 deletions.
18 changes: 18 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# For the full list of supported browsers by the Angular framework, please see:
# https://angular.io/guide/browser-support

# You can see what browsers were selected by your queries by running:
# npx browserslist

last 1 Chrome version
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
not IE 9-10 # Angular support for IE 9-10 has been deprecated and will be removed as of Angular v11. To opt-in, remove the 'not' prefix on this line.
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

[*.ts]
quote_type = single

[*.md]
max_line_length = off
trim_trailing_whitespace = false
73 changes: 73 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: IAS Icons Build and Deploy

# on:
# pull_request:
# branches:
# - master
# types: [closed]

on:
workflow_dispatch:

jobs:
build-and-deploy-to-npm:
name: Build and deploy the icon font to NPM
runs-on: ubuntu-latest

# if: github.event.pull_request.merged == true
steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Set up node
uses: actions/setup-node@v1
with:
node-version: 12

- name: Install npm dependencies
run: npm install

- name: Build ias-icon font
run: npm run build:icons

- name: Increment the npm patch version
run: |
git config user.name github-actions
git config user.email [email protected]
npm version patch -m "Incremented the version during an automated build"
git push
- name: Publish the ias-icons package to npm
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: dist/generated-font/package.json

build-and-deploy-to-gh-pages:
name: Build and deploy the documentation to gh-pages
runs-on: ubuntu-latest

# if: github.event.pull_request.merged == true
steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Set up node
uses: actions/setup-node@v1
with:
node-version: 12

- name: Install npm dependencies
run: npm install

- name: Build the documentation website
run: |
npm run build:icons
npm run build:docs
- name: Publish to gh-pages
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dist/docs
89 changes: 47 additions & 42 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,42 +1,47 @@
# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules
jspm_packages

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history

# WebStorm
.idea

dist
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/dist-docs
/tmp
/out-tsc
# Only exists if Bazel was run
/bazel-out

# dependencies
/node_modules

# profiling files
chrome-profiler-events*.json
speed-measure-plugin*.json

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

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# System Files
.DS_Store
Thumbs.db
6 changes: 0 additions & 6 deletions .npmignore

This file was deleted.

20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

7 changes: 0 additions & 7 deletions CHANGELOG.md

This file was deleted.

3 changes: 0 additions & 3 deletions CONTRIBUTING.md

This file was deleted.

24 changes: 0 additions & 24 deletions DEVELOPER.md

This file was deleted.

27 changes: 24 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,27 @@ throughout these applications.
### Helpful Links

- [Documentation Site](https://microfocus.github.io/ias-icons)
- [Changelog](./CHANGELOG.md)
- [Developer Guide](./DEVELOPER.md)
- [Guidelines for Contribution](./CONTRIBUTING.md)

### Usage

Install the package using npm:

```
$ npm install @microfocus/ias-icons
```

If you are building a project with Angular, you can add the following to your angular.json file:

```
"styles": [
"node_modules/@microfocus/ias-icons/dist/ias-icons/ias-icons.css",
"src/styles.scss"
],
```

The icons can now be referenced by class name, as shown in the following example:

```
<i class="ias-icon ias-icon-down_thin"></i>
```

Loading

0 comments on commit b0f5c57

Please sign in to comment.