Skip to content

Commit

Permalink
v0.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
vanvianen committed Jan 2, 2024
1 parent 2ec6b31 commit 2e8b072
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 56 deletions.
49 changes: 0 additions & 49 deletions .github/workflows-temp/npm-publish.yml

This file was deleted.

4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ jobs:

publish-npm:

name: Publish NPM

needs: build

runs-on: ubuntu-latest
Expand All @@ -130,10 +132,10 @@ jobs:
run: unzip -q build.zip

-
name: Publish NPM
run: |
cd dist
npm publish --access public
# run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.PUBLISH_NPM_TOKEN}}

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "unit.gl",
"description": "Layout Engine.",
"version": "0.0.6",
"version": "0.0.7",
"config": {
"version_short": "0.0"
},
Expand Down Expand Up @@ -112,6 +112,7 @@
"dist/font/**/*.{eot,otf,ttf,woff,woff2}",
"src/ts/**/*.ts",
"src/scss/**/*.scss",
"dist/scss/**/*.scss",
"src/font/**/*.{ttf,woff,woff2}",
"!.DS_Store"
],
Expand Down
10 changes: 5 additions & 5 deletions script/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ async function main() {
// Process with expanded style
await styleProcessor.processStyles(
path.join(CONFIG.path.scss_input, 'index.scss'),
path.join(CONFIG.path.css_output, 'icon.gl.css'),
path.join(CONFIG.path.css_output, 'unit.gl.css'),
'expanded'
);
// Process with compressed style
await styleProcessor.processStyles(
path.join(CONFIG.path.scss_input, 'index.scss'),
path.join(CONFIG.path.css_output, 'icon.gl.min.css'),
path.join(CONFIG.path.css_output, 'unit.gl.min.css'),
'compressed'
);
console.log('SASS Processing completed.');
Expand Down Expand Up @@ -187,7 +187,7 @@ async function main() {

await fileRenamer.renameFile(
path.join(CONFIG.path.js_output, 'index.js'),
path.join(CONFIG.path.js_output, 'icon.gl.js'),
path.join(CONFIG.path.js_output, 'unit.gl.js'),
)

// Minify JavaScript
Expand All @@ -198,8 +198,8 @@ async function main() {
// const outputMinJsFile = './path/to/your/script.min.js';

await jsMinifier.minifyFile(
path.join(CONFIG.path.js_output, 'icon.gl.js'),
path.join(CONFIG.path.js_output, 'icon.gl.min.js'),
path.join(CONFIG.path.js_output, 'unit.gl.js'),
path.join(CONFIG.path.js_output, 'unit.gl.min.js'),
// inputJsFile,
// outputMinJsFile
)
Expand Down

0 comments on commit 2e8b072

Please sign in to comment.