Skip to content  

Navigation Menu

 






Sign in  











Actions
 Automate any workflow  



Packages
 Host and manage packages  



Security
 Find and fix vulnerabilities  



Codespaces
 Instant dev environments  



GitHub Copilot
 Write better code with AI  



Code review
 Manage code changes  



Issues
 Plan and track work  



Discussions
 Collaborate outside of code  



Explore  

All features  

Documentation  

GitHub Skills  

Blog  







By size  

Enterprise  

Teams  

Startups  



By industry  

Healthcare  

Financial services  

Manufacturing  



By use case  

CI/CD & Automation  

DevOps  

DevSecOps  







Topics  

AI

DevOps  

Innersource  

Open Source  

Security  

Software Development  



Explore  

Learning Pathways  

White papers, Ebooks, Webinars  

Customer Stories  

Partners  











GitHub Sponsors
 Fund open source developers  







The ReadME Project
 GitHub community articles  



Repositories  

Topics  

Trending  

Collections  











Enterprise platform
 AI-powered developer platform  



Available add-ons  



Advanced Security
 Enterprise-grade security features  



GitHub Copilot
 Enterprise-grade AI features  



Premium Support
 Enterprise-grade 24/7 support  





Pricing
 



Search or jump to...  

Search code, repositories, users, issues, pull requests...




Clear

Search syntax tips  










Provide feedback  







We read every piece of feedback, and take your input very seriously.


 
 


Saved searches  

Use saved searches to filter your results more quickly

 






To see all available qualifiers, see our documentation.






 
 

Sign in  
Sign up  




You signed in with another tab or window. Reload to refresh your session.  You signed out in another tab or window. Reload to refresh your session.  You switched accounts on another tab or window. Reload to refresh your session.  Dismiss alert  







{{ message }}
 








/   env-js   Public  
forked from jeresig/env-js  



Notifications  You must be signed in to change notification settings  

Fork  76


Star  465  








Code  

Issues  26

Pull requests  10

Actions  

Projects    

Wiki  

Security  

Insights  


Additional navigation options  




Code  

Issues  

Pull requests  

Actions  

Projects  

Wiki  

Security  

Insights  







 master

Breadcrumbs

(一)env-js

misc


Directory actions

More options

Directory actions

More options

Latest commit

 

History

History
 
 

 master
(一)env-js

misc



Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.txt


deaccessor.py < IN > OUT
----------------------------------
Used by 'ant jslint'
Is a hack to change getters and setters into normal functions so jslint can handle it
Could be written in javascript to remove dependency on python.

Used in 'ant jslint'

jslint.js
----------------------------------
The rhino version of jslint.org

Used in 'ant jslint'

jsmin.js
----------------------------------
originally from http://www.crockford.com/javascript/jsmin.html
It doesn't do that great of a job in compression since it's very non-aggressive, but also doesn't
break the javascript.  Typically a good 20-30% reduction in size.

This very has a rhino wrapper built-in, so to use

java -jar js.jar jsmin.js FILE > OUT


$ java -jar rhino/js.jar misc/jsmin.js dist/env.js > dist/env.min.js
$ ls -lh dist/env.js dist/env.min.js
-rw-r--r--  1 nickg  staff   638K Mar 31 21:57 dist/env.js
-rw-r--r--  1 nickg  staff   446K Mar 31 23:46 dist/env.min.js

not so bad... saved 200k

as we get the code base in better shape, it is expected we can use more aggressive minifiers.


 

Footer



© 2024 GitHub, Inc.  


Terms  

Privacy  

Security  

Status  

Docs  

Contact  






You cant perform that action at this time.