Package structure and building
This commit is contained in:
parent
d785af38c3
commit
03bcc505dc
|
@ -1,7 +1,8 @@
|
||||||
// JSX cache
|
// JSX cache
|
||||||
.module-cache
|
.module-cache
|
||||||
|
|
||||||
// Bower
|
// Packages
|
||||||
|
node_modules
|
||||||
bower_components
|
bower_components
|
||||||
|
|
||||||
// Config files
|
// Config files
|
||||||
|
@ -11,5 +12,6 @@ bower_components
|
||||||
// Workspace documents and notes
|
// Workspace documents and notes
|
||||||
*.txt
|
*.txt
|
||||||
|
|
||||||
// Compiled app (reconsider later)
|
// Compiled
|
||||||
app/scripts/compiled
|
app/jsx/build
|
||||||
|
build/*
|
||||||
|
|
14
Makefile
14
Makefile
|
@ -1,2 +1,16 @@
|
||||||
|
UGLIFY = ./node_modules/uglify-js/bin/uglifyjs
|
||||||
|
CLEANCSS = ./node_modules/clean-css/bin/cleancss
|
||||||
|
|
||||||
cloc:
|
cloc:
|
||||||
cloc . --exclude-dir=app/bower_components,app/scripts/.module-cache
|
cloc . --exclude-dir=app/bower_components,app/scripts/.module-cache
|
||||||
|
|
||||||
|
static:
|
||||||
|
$(UGLIFY) \
|
||||||
|
app/bower_components/react/react.js \
|
||||||
|
app/bower_components/react-router/build/global/ReactRouter.js \
|
||||||
|
app/bower_components/lodash/lodash.js \
|
||||||
|
app/bower_components/jquery/dist/jquery.js \
|
||||||
|
app/js/* \
|
||||||
|
app/jsx/build/*/* \
|
||||||
|
> build/app.js
|
||||||
|
cat app/css/* | $(CLEANCSS) -o build/app.css
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>Hello</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<h1>Hello!</h1>
|
|
||||||
<a href="/auth/signin">Sign In</a>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -9,10 +9,10 @@
|
||||||
<link rel="apple-touch-icon" sizes="72x72" href="/images/favicon_128.png">
|
<link rel="apple-touch-icon" sizes="72x72" href="/images/favicon_128.png">
|
||||||
<link rel="apple-touch-icon" sizes="144x144" href="/images/favicon_128.png">
|
<link rel="apple-touch-icon" sizes="144x144" href="/images/favicon_128.png">
|
||||||
<link rel="stylesheet" href="/bower_components/normalize.css/normalize.css">
|
<link rel="stylesheet" href="/bower_components/normalize.css/normalize.css">
|
||||||
<link rel="stylesheet" href="/styles/logo.css">
|
<link rel="stylesheet" href="/css/logo.css">
|
||||||
<link rel="stylesheet" href="/styles/menu.css">
|
<link rel="stylesheet" href="/css/menu.css">
|
||||||
<link rel="stylesheet" href="/styles/app.css">
|
<link rel="stylesheet" href="/css/app.css">
|
||||||
<link rel="stylesheet" href="/styles/charts.css">
|
<link rel="stylesheet" href="/css/charts.css">
|
||||||
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600' rel='stylesheet' type='text/css'>
|
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600' rel='stylesheet' type='text/css'>
|
||||||
</head>
|
</head>
|
||||||
<body></body>
|
<body></body>
|
||||||
|
@ -20,14 +20,14 @@
|
||||||
<script src="/bower_components/react-router/build/global/ReactRouter.js"></script>
|
<script src="/bower_components/react-router/build/global/ReactRouter.js"></script>
|
||||||
<script src="/bower_components/lodash/lodash.js"></script>
|
<script src="/bower_components/lodash/lodash.js"></script>
|
||||||
<script src="/bower_components/jquery/dist/jquery.js"></script>
|
<script src="/bower_components/jquery/dist/jquery.js"></script>
|
||||||
<script src="/scripts/date.js"></script>
|
<script src="/js/date.js"></script>
|
||||||
<script src="/scripts/colors.js"></script>
|
<script src="/js/colors.js"></script>
|
||||||
<script src="/scripts/svground.js"></script>
|
<script src="/js/svground.js"></script>
|
||||||
<script src="/scripts/compiled/charts/charts.js"></script>
|
<script src="/jsx/build/charts/charts.js"></script>
|
||||||
<script src="/scripts/compiled/charts/data.js"></script>
|
<script src="/jsx/build/charts/data.js"></script>
|
||||||
<script src="/scripts/compiled/charts/animation.js"></script>
|
<script src="/jsx/build/charts/animation.js"></script>
|
||||||
<script src="/scripts/compiled/charts/selector.js"></script>
|
<script src="/jsx/build/charts/selector.js"></script>
|
||||||
<script src="/scripts/compiled/charts/bar_chart.js"></script>
|
<script src="/jsx/build/charts/bar_chart.js"></script>
|
||||||
<script src="/scripts/compiled/charts/stacked_area_chart.js"></script>
|
<script src="/jsx/build/charts/stacked_area_chart.js"></script>
|
||||||
<script src="/scripts/compiled/app.js"></script>
|
<script src="/jsx/build/app.js"></script>
|
||||||
</html>
|
</html>
|
|
@ -1,29 +0,0 @@
|
||||||
* {
|
|
||||||
box-sizing: border-box;
|
|
||||||
font-family: 'Helvetica Neue', Helvetica, sans-serif;
|
|
||||||
font-weight: 400;
|
|
||||||
}
|
|
||||||
html, body {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
position: absolute;
|
|
||||||
left: 15%;
|
|
||||||
top: 20%;
|
|
||||||
width: 70%;
|
|
||||||
text-align: center;
|
|
||||||
color: #aaa;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
|
||||||
position: absolute;
|
|
||||||
top: 40%;
|
|
||||||
width: 100%;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
img {
|
|
||||||
width: 60px;
|
|
||||||
}
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf8">
|
||||||
|
<title>Empact</title>
|
||||||
|
<link rel="shortcut icon" sizes="16x16 32x32 64x64" href="/images/favicon.ico">
|
||||||
|
<link rel="apple-touch-icon" sizes="57x57" href="/images/favicon_128.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="114x114" href="/images/favicon_128.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="72x72" href="/images/favicon_128.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="144x144" href="/images/favicon_128.png">
|
||||||
|
<link rel="stylesheet" href="/empact.css">
|
||||||
|
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600">
|
||||||
|
</head>
|
||||||
|
<body></body>
|
||||||
|
<script src="/empact.js"></script>
|
||||||
|
</html>
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"name": "empact",
|
||||||
|
"private": true,
|
||||||
|
"dependencies": {
|
||||||
|
"uglify-js": "2.4.17",
|
||||||
|
"clean-css": "3.1.7"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue