Skip to content

Commit

Permalink
refactor(build): Slim package, add LICENSE, remove non open-source ic…
Browse files Browse the repository at this point in the history
…ons (#43)

ci: removing undeeded files from package
feat: removed non open-source icons from package
chore: Add MIT License file
feat!: removing non open-sourceable icons (DNA category)
  • Loading branch information
benken authored May 3, 2024
1 parent ca1880c commit 540926b
Show file tree
Hide file tree
Showing 304 changed files with 2,237 additions and 4,039 deletions.
2 changes: 1 addition & 1 deletion .github/fetch_icons/hash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
50c2dd7c68602dbcd043e160bd6f6f98
de6e390fb1d5c9b424eba4184d9c9f12
7 changes: 5 additions & 2 deletions .github/fetch_icons/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import core from "@actions/core";
import { readFileSync, writeFileSync } from "fs";
import fetchIcons from "../../dist/scripts/fetchIcons.js";

const FIGMA_ICON_FILE_ID = "VQ7Aa3rDYB7mgpToI3bZ4D";
const FIGMA_ACCESS_TOKEN = core.getInput("figma-access-token") || process.env.FIGMA_ACCESS_TOKEN;

try {
const hashPath = "./.github/fetch_icons/hash.txt";
let oldHash = "";
Expand All @@ -14,8 +17,8 @@ try {
}

const newHash = await fetchIcons(
core.getInput("figma-access-token"),
"VQ7Aa3rDYB7mgpToI3bZ4D",
FIGMA_ACCESS_TOKEN,
FIGMA_ICON_FILE_ID,
iconPageName,
oldHash,
"outputs",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Install packages
run: npm ci
- name: Compile Typescript files
run: tsc
run: npm run build:fetch-icons
- name: Fetch icons
id: "fetch_icons"
uses: ./.github/fetch_icons
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

# production
/build
/dist

# firebase
/.firebase
Expand All @@ -22,9 +23,11 @@ firebase-debug.log
.env.development.local
.env.test.local
.env.production.local
.env
.vscode

npm-debug.log*
yarn-debug.log*
yarn-error.log*

temp
temp
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Zebra Technologies Corp.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
6 changes: 0 additions & 6 deletions dist/index.d.ts

This file was deleted.

4 changes: 0 additions & 4 deletions dist/index.js

This file was deleted.

4 changes: 0 additions & 4 deletions dist/outputs/definitions/icon-types.d.ts

This file was deleted.

Loading

0 comments on commit 540926b

Please sign in to comment.