Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
luciobenini committed Nov 7, 2021
0 parents commit 7c83243
Show file tree
Hide file tree
Showing 16 changed files with 324 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
60 changes: 60 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Node.js Package

on:
release:
types: [created]
workflow_dispatch:
inputs:
name:
description: 'Build and Deploy'
required: true
default: 'Build and Deploy'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- name: CI
run: npm ci

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: CI
run: npm ci
- name: Publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
- name: CI
run: npm ci
- name: Publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Cache
.DS_Store
thumbs.db
desktop.ini

# Dependencies
/node_modules
/.pnp
.pnp.js
13 changes: 13 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
logs
.gitattributes
*.log
.DS_Store
thumbs.db
desktop.ini
src
images
icons.code-workspace
.github
selection.json
.prettierignore
.prettierrc
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.cache
package.json
package-lock.json
public
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"endOfLine": "lf",
"semi": false,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5"
}
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# pittica/icons

![Version](https://img.shields.io/github/package-json/v/pittica/icons)
![Release](https://img.shields.io/github/v/release/pittica/icons)
![React version](https://img.shields.io/github/package-json/dependency-version/pittica/icons)

Pittica icons.

Internal use only.

## Install

[![npm](https://img.shields.io/npm/v/@pittica/icons)](https://www.npmjs.com/package/@pittica/icons)
[![npm](https://img.shields.io/npm/dm/@pittica/icons)](https://www.npmjs.com/package/@pittica/icons)

### NPM

```shell
npm install @pittica/icons
```

### Yarn

```shell
yarn add @pittica/icons
```

## Copyright

(c) 2020-2021, [Pittica S.r.l.](https://pittica.com).
Binary file added fonts/pittica.eot
Binary file not shown.
57 changes: 57 additions & 0 deletions fonts/pittica.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fonts/pittica.ttf
Binary file not shown.
Binary file added fonts/pittica.woff
Binary file not shown.
8 changes: 8 additions & 0 deletions icons.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"folders": [
{
"path": "."
}
],
"settings": {}
}
80 changes: 80 additions & 0 deletions icons.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
$icons: (
"logo": "\e900",
"sign": "\e901",
"logo-sign": "\e902",
"arrow-up": "\2bc5",
"arrow-down": "\2bc6",
"arrow-left": "\2bc7",
"arrow-right": "\2bc8",
"zoom-in": "\e904",
"zoom-out": "\e905",
"search": "\1f50e",
"heart": "\1f499",
"star": "\2b50",
"cloud": "\2601",
"printer": "\1f5a8",
"laptop": "\e914",
"screen": "\e90e",
"phone": "\e90f",
"tablet-landscape": "\e913",
"tablet": "\e912",
"phone-portrait": "\e910",
"phone-landscape": "\e911",
"vcard": "\e915",
"home": "\1f3e0",
"facebook": "\e920",
"instagram": "\e921",
"linkedin": "\e922",
"twitter": "\e923",
"github": "\e924",
"whatsapp": "\e925",
"telegram": "\e926",
"user": "\1f464",
"users": "\1f465",
"folder": "\1f4c1",
"tag": "\1f516",
"marker": "\1f4cd",
"bookmark": "\1f4d1",
"paperclip": "\1f4ce",
"envelope": "\1f4e7",
"clock": "\1f551",
"file-picture": "\e930",
"file-music": "\e931",
"file-play": "\e932",
"file-video": "\e933",
"file-zip": "\e934",
"file-pdf": "\e935",
"file-word": "\e936",
"file-excel": "\e937",
);

@each $name, $glyph in $icons {
.icon-pittica-#{$name}:before {
font-family: "pittica";
content: $glyph;
}
}

@font-face {
font-family: "pittica";
src: url("~@pittica/icons/fonts/pittica.eot");
src: url("~@pittica/icons/fonts/pittica.eot#iefix") format("embedded-opentype"),
url("~@pittica/icons/fonts/pittica.ttf") format("truetype"),
url("~@pittica/icons/fonts/pittica.woff") format("woff"),
url("~@pittica/icons/fonts/pittica.svg#pittica") format("svg");
font-weight: normal;
font-style: normal;
font-display: swap;
}

[class^="icon-pittica-"],
[class*=" icon-pittica-"] {
font-family: "pittica" !important;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "@pittica/icons",
"private": false,
"description": "Pittica icons.",
"version": "1.0.0",
"author": {
"name": "Lucio Benini",
"email": "[email protected]",
"url": "https://pittica.com"
},
"bugs": {
"url": "https://github.com/pittica/icons/issues"
},
"deprecated": false,
"homepage": "https://github.com/pittica/icons",
"keywords": [
"pittica",
"scss",
"icons"
],
"main": "icons.scss",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/pittica/icons.git"
},
"eslintConfig": {
"extends": "react-app"
},
"config": {
"access": "public"
},
"babel": {
"presets": [
[
"@babel/preset-react"
]
]
}
}
1 change: 1 addition & 0 deletions selection.json

Large diffs are not rendered by default.

0 comments on commit 7c83243

Please sign in to comment.