Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
persona
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hexang 息壤平台
persona
Commits
ce081be0
Commit
ce081be0
authored
13 years ago
by
Lloyd Hilaiel
Browse files
Options
Downloads
Patches
Plain Diff
use uglify for javascript.
parent
e384e94b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
browserid/.gitignore
+1
-0
1 addition, 0 deletions
browserid/.gitignore
browserid/compress.sh
+4
-9
4 additions, 9 deletions
browserid/compress.sh
with
5 additions
and
9 deletions
browserid/.gitignore
+
1
−
0
View file @
ce081be0
/static/dialog/production.js
/static/dialog/production.css
/static/css/browserid.css
/static/css/browserid.min.css
/static/js/lib.min.js
/var
This diff is collapsed.
Click to expand it.
browserid/compress.sh
+
4
−
9
View file @
ce081be0
...
...
@@ -10,7 +10,7 @@ cd static
steal/js dialog/scripts/build.js
cd
dialog
java
-jar
$YUI_LOCATION
production.js
-o
production.min.js
uglifyjs <
production.js
>
production.min.js
mv
production.min.js production.js
echo
''
...
...
@@ -18,15 +18,10 @@ echo '****Building BrowserID.org HTML, CSS, and JS****'
echo
''
cd
../js
# Yes, this is the right way of doing this. We are compressing ONLY
# browserid.js because both jquery and underscore are already compressed. Then
# take the three of them, concatinate them together, and create lib.min.js
java
-jar
$YUI_LOCATION
browserid.js
-o
browserid.min.js
cat
jquery-1.6.2.min.js ../dialog/resources/underscore-min.js browserid.min.js
>
lib.min.js
# re-minimize everything together
cat
jquery-1.6.2.min.js ../dialog/resources/underscore-min.js browserid.js
>
lib.js
uglifyjs < lib.js
>
lib.min.js
cd
../css
cat
github.css style.css
>
browserid.css
java
-jar
$YUI_LOCATION
browserid.css
-o
browserid.min.css
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment