Moving external libraries to the install step and into a seperate bundle
Этот коммит содержится в:
@@ -5,7 +5,6 @@
|
||||
"dependencies": {
|
||||
"autolinker": "0.18.1",
|
||||
"babel-runtime": "5.8.24",
|
||||
"bootstrap-colorpicker": "2.2.0",
|
||||
"flux": "2.1.1",
|
||||
"keymirror": "0.1.1",
|
||||
"marked": "0.3.5",
|
||||
@@ -13,18 +12,18 @@
|
||||
"twemoji": "1.4.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"browserify": "11.0.1",
|
||||
"envify": "3.4.0",
|
||||
"babelify": "6.1.3",
|
||||
"browserify": "11.2.0",
|
||||
"babelify": "6.3.0",
|
||||
"uglify-js": "2.4.24",
|
||||
"watchify": "3.3.1",
|
||||
"watchify": "3.4.0",
|
||||
"eslint": "1.6.0",
|
||||
"eslint-plugin-react": "3.5.1"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "watchify --extension=jsx -o ../static/js/bundle.js -v -d ./**/*.jsx",
|
||||
"build": "NODE_ENV=production browserify ./**/*.jsx | uglifyjs -c -m --screw-ie8 > ../static/js/bundle.min.js",
|
||||
"test": "jest"
|
||||
"check": "",
|
||||
"build-libs": "browserify -r crypto -r autolinker -r flux -r keymirror -r marked -r object-assign -r twemoji | uglifyjs -c -m --screw-ie8 > ../static/js/libs.min.js",
|
||||
"start": "watchify --fast -x crypto -x node -x autolinker -x flux -x keymirror -x marked -x object-assign -x twemoji -o ../static/js/bundle.js -v -d ./**/*.jsx",
|
||||
"build": "browserify -x crypto -x autolinker -x flux -x keymirror -x marked -x object-assign -x twemoji ./**/*.jsx | uglifyjs -c -m --screw-ie8 > ../static/js/bundle.min.js"
|
||||
},
|
||||
"browserify": {
|
||||
"transform": [
|
||||
@@ -35,11 +34,7 @@
|
||||
"runtime"
|
||||
]
|
||||
}
|
||||
],
|
||||
"envify"
|
||||
]
|
||||
]
|
||||
},
|
||||
"jest": {
|
||||
"rootDir": "."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{{define "head"}}
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
|
||||
<title>{{ .Props.Title }}</title>
|
||||
@@ -22,24 +22,22 @@
|
||||
window.config = {{ .ClientProps }};
|
||||
</script>
|
||||
|
||||
|
||||
<!-- CSS Should always go first -->
|
||||
<link rel="stylesheet" href="/static/css/bootstrap-3.3.5.min.css">
|
||||
<link rel="stylesheet" href="/static/css/jasny-bootstrap.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/static/css/bootstrap-colorpicker.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/static/css/jasny-bootstrap.min.css">
|
||||
<link rel="stylesheet" href="/static/css/bootstrap-colorpicker.min.css">
|
||||
<link rel="stylesheet" href="/static/css/styles.css">
|
||||
<link rel="stylesheet" href="/static/css/google-fonts.css">
|
||||
|
||||
<link id="favicon" rel="icon" href="/static/images/favicon.ico" type="image/x-icon">
|
||||
<link rel="shortcut icon" href="/static/images/favicon.ico" type="image/x-icon">
|
||||
|
||||
<script src="/static/js/react-with-addons-0.13.3.js"></script>
|
||||
<script src="/static/js/jquery-1.11.1.js"></script>
|
||||
<script src="/static/js/bootstrap-3.3.5.js"></script>
|
||||
<script src="/static/js/bootstrap-colorpicker.min.js"></script>
|
||||
<script src="/static/js/react-bootstrap-0.25.1.js"></script>
|
||||
|
||||
<link id="favicon" rel="icon" href="/static/images/favicon.ico" type="image/x-icon">
|
||||
<link rel="shortcut icon" href="/static/images/favicon.ico" type="image/x-icon">
|
||||
<link href='/static/css/google-fonts.css' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" href="/static/css/styles.css">
|
||||
|
||||
<script src="/static/js/perfect-scrollbar-0.6.5.jquery.js"></script>
|
||||
|
||||
<script src="/static/js/jquery-dragster/jquery.dragster.js"></script>
|
||||
|
||||
<style id="antiClickjack">body{display:none !important;}</style>
|
||||
@@ -60,6 +58,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<script src="/static/js/libs.min.js"></script>
|
||||
<script src="/static/js/bundle.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
Ссылка в новой задаче
Block a user