forked from readmeio/api-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add build script to build js for github pages
- Loading branch information
Dom Harrington
committed
Dec 7, 2017
1 parent
6e6578c
commit 89fde7e
Showing
6 changed files
with
229 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ coverage | |
lerna-debug.log | ||
.DS_Store | ||
example/swagger-files/directory.json | ||
|
||
example/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
rm -rf example/dist | ||
mkdir example/dist | ||
|
||
browserify example/index.jsx \ | ||
--extension jsx \ | ||
-t [ babelify ] \ | ||
-g [ envify --NODE_ENV production ] \ | ||
-g uglifyify \ | ||
| uglifyjs --compress --mangle > ./example/dist/bundle.js | ||
|
||
cp example/index.prod.html example/dist/index.html | ||
cp example/*.css example/dist | ||
cp -R example/fonts example/dist | ||
cp -R example/img example/dist | ||
cp -R example/swagger-files example/dist |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>api-explorer</title> | ||
<link rel="stylesheet" type="text/css" href="bundle-hub2.css"> | ||
<link rel="stylesheet" type="text/css" href="hub-custom.css"> | ||
<style type="text/css"> | ||
.api-list-header { | ||
padding-left: 30px; | ||
} | ||
/* Removing sidebar padding */ | ||
section#hub-content { | ||
padding-left: 0; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<section id="hub-content"> | ||
<div id="hub-reference"></div> | ||
</section> | ||
<script src="bundle.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.