Skip to content

Commit

Permalink
- upgrade modules
Browse files Browse the repository at this point in the history
 - release with compact directory structure
 - rename `ldcolor.js` to `index.js`, `ldcolor.min.js` to `index.min.js`
 - rename `ldcolor.named.js` to `index.named.js`, `ldcolor.named.min.js`
   to `index.named.min.js`
 - update `main` and `browser` field in `package.json`.
 - further minimize generated js file with mangling and compression
 - bump version
  • Loading branch information
zbryikt committed Jan 19, 2022
1 parent b0a2413 commit 2467f0f
Show file tree
Hide file tree
Showing 11 changed files with 4,286 additions and 618 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,15 @@
# Change Log

## v1.0.0

- upgrade modules
- release with compact directory structure
- rename `ldcolor.js` to `index.js`, `ldcolor.min.js` to `index.min.js`
- rename `ldcolor.named.js` to `index.named.js`, `ldcolor.named.min.js` to `index.named.min.js`
- update `main` and `browser` field in `package.json`.
- further minimize generated js file with mangling and compression


## v0.0.4

- add API `complement` for calculating complementary of colors.
Expand Down
16 changes: 8 additions & 8 deletions build
Expand Up @@ -2,12 +2,12 @@
set -euo pipefail
rm -rf dist
mkdir -p dist
echo "Transpiling ldcolor.ls to ldcolor.named.js..."
npx lsc -cp --no-header src/ldcolor.ls > dist/ldcolor.named.js
echo "Transpiling index.ls to index.named.js..."
./node_modules/.bin/lsc -cp --no-header src/index.ls > dist/index.named.js

echo "Transpiling ldcolor.ls without name list..."
cat src/ldcolor.ls | grep -v "named = " | lsc -csp --no-header > dist/ldcolor.js
echo "Uglify ldcolor.named.js...."
npx uglifyjs dist/ldcolor.named.js > dist/ldcolor.named.min.js
echo "Uglify ldcolor.js...."
npx uglifyjs dist/ldcolor.js > dist/ldcolor.min.js
echo "Transpiling index.ls without name list..."
cat src/index.ls | grep -v "named = " | lsc -csp --no-header > dist/index.js
echo "Uglify index.named.js...."
./node_modules/.bin/uglifyjs dist/index.named.js -m -c > dist/index.named.min.js
echo "Uglify index.js...."
./node_modules/.bin/uglifyjs dist/index.js -m -c > dist/index.min.js
File renamed without changes.
1 change: 1 addition & 0 deletions dist/index.min.js

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

File renamed without changes.
1 change: 1 addition & 0 deletions dist/index.named.min.js

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

0 comments on commit 2467f0f

Please sign in to comment.