Skip to content

Commit 3b2ee52

Browse files
committed
- upgrade modules
- release with compact directory structure - add `style` in `package.json` - add `main` and `browser` field in `package.json`. - further minimize generated js file with mangling and compression - remove assets files from git - patch test code to make it work with upgraded modules - update window only if window is defined - bump version
1 parent 8eefca6 commit 3b2ee52

File tree

208 files changed

+528
-33647
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

208 files changed

+528
-33647
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.*.swp
22
node_modules
3+
web/static/assets/lib/

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Change Log
22

3+
## v3.0.0
4+
5+
- upgrade modules
6+
- release with compact directory structure
7+
- add `style` in `package.json`
8+
- add `main` and `browser` field in `package.json`.
9+
- further minimize generated js file with mangling and compression
10+
- remove assets files from git
11+
- patch test code to make it work with upgraded modules
12+
- update window only if window is defined
13+
14+
315
## v2.1.0
416

517
- add `toggler` function

build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ echo "build src/ldld.ls -> dist/index.js ..."
66
echo "build src/ldld.styl -> dist/index.css ..."
77
./node_modules/.bin/stylus -p src/ldld.styl > dist/index.css
88
echo "minifying index.js ..."
9-
./node_modules/.bin/uglifyjs dist/index.js > dist/index.min.js
9+
./node_modules/.bin/uglifyjs dist/index.js -m -c > dist/index.min.js
1010
echo "minifying index.css ..."
1111
./node_modules/.bin/uglifycss dist/index.css > dist/index.min.css
1212
echo "done."

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
});
213213
if (typeof module != 'undefined' && module !== null) {
214214
module.exports = ldloader;
215-
} else {
215+
} else if (typeof window != 'undefined' && window !== null) {
216216
window.ldloader = ldloader;
217217
}
218218
function import$(obj, src){

dist/index.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)