Skip to content

feat: adding README.md to release package #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ jobs:
GH_TOKEN: ${{ secrets.RELEASE_TOKEN }}
RELEASE_PROCESS: 'true'
run: |
npm run release:zip
npm run release:prepare
npx semantic-release
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ dist.web.zip
node_modules
gen/src/GraphQL/**
gen/src/GraphQL
dist.web/README.md
dist.web/LICENSE.md
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,9 @@ Where
- `spark-icon` class name is a mandatory parameter that tells a page to use styles from _iconfont_ component
- `spark-icon-copy` instructs to use a particular shape for an icon. In this example the icon will look like two overlapping pages (copy to clipboard).
- `spark-icon-light`, `spark-icon-regular`, `spark-icon-solid` filled or outlined shapes with a thin, medium or thick stroke

## Troubleshooting

### Installing packages while connected to the Intel VPN

Running fastasticon on Windows: Downgrade version to 1.2.3.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
"iconfont:build:solid": "npm run iconfont:svg-fixer-solid && npm run iconfont:font-style-solid && npm run iconfont:build",
"iconfont:build:light": "npm run iconfont:svg-fixer-light && npm run iconfont:font-style-light && npm run iconfont:build",
"iconfont:build:all": "npm run iconfont:build:solid && npm run iconfont:build:light && npm run iconfont:build:regular && npm run iconfont:cp-png-icons",
"release:build": "node scripts/build.js",
"release:zip": "npm run zip:custom ./dist.web dist.web.zip",
"release:prepare": "npm run release:build && npm run release:zip",
"zip:custom": "node scripts/create-zip.js"
},
"lint-staged": {
Expand Down
22 changes: 22 additions & 0 deletions scripts/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const fs = require('fs-extra')
const path = require('path')
const glob = require('glob')

// Create dist.web directory if it doesn't exist
fs.ensureDirSync('dist.web')

// Copy LICENSE.md file if it exists
if (fs.existsSync('LICENSE.md')) {
console.log('Copying LICENSE.md file...')
fs.copySync('LICENSE.md', 'dist.web/LICENSE.md')
console.log('Copied: LICENSE.md -> dist.web/LICENSE.md')
}

// Copy README.md file if it exists
if (fs.existsSync('README.md')) {
console.log('Copying README.md file...')
fs.copySync('README.md', 'dist.web/README.md')
console.log('Copied: README.md -> dist.web/README.md')
}

console.log('Build completed successfully!')
Loading