Skip to content

Commit

Permalink
Merge pull request openshift#947 from sym3tri/coreosweb-cleanup
Browse files Browse the repository at this point in the history
coreos-web cleanup
  • Loading branch information
sym3tri authored Sep 27, 2016
2 parents 7aa1f0c + 18c9966 commit 2aa7086
Show file tree
Hide file tree
Showing 71 changed files with 1,048 additions and 5,149 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,16 @@ Update existing backend dependencies:

Add new frontend dependencies:
```
rm npm-shrinkwrap
rm npm-shrinkwrap.json
npm install --save the-dependency
npm shrinkwrap
npm run gulp js-deps
npm run gulp js-package
```

Update existing frontend dependencies:
```
rm npm-shrinkwrap
rm npm-shrinkwrap.json
npm install --save the-dependency
npm shrinkwrap
npm run gulp js-deps
npm run gulp js-package
```
8 changes: 6 additions & 2 deletions frontend/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,13 @@ gulp.task('templates', () => {
.pipe(gulp.dest(distDir));
});

gulp.task('fonts', () => {
return gulp.src('public/fonts/*')
.pipe(gulp.dest(distDir + '/fonts'));
});

// Copy any static assets.
gulp.task('assets', () => {
gulp.task('assets', ['fonts'], () => {
return gulp.src('public/imgs/*')
.pipe(gulp.dest(distDir + '/imgs'));
});
Expand Down Expand Up @@ -201,7 +206,6 @@ gulp.task('html', ['sha'], () => {
var h = {
'js': `static/build.${CURRENT_SHA}.min.js`,
'css': `static/build.${CURRENT_SHA}.css`,
'css-coreos-web': 'static/lib/coreos-web/coreos.css'
};
if (process.env.NODE_ENV !== 'production') {
h['analytics'] = '';
Expand Down
6 changes: 6 additions & 0 deletions frontend/public/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import { combineReducers } from 'redux';

import './components/react-wrapper';

// Make moment available via angular DI.
angular.module('moment', []).factory('moment', function($window) {
return $window.moment;
});

// The main app module.
angular.module('bridge', [
// angular deps
Expand Down Expand Up @@ -34,6 +39,7 @@ angular.module('bridge', [
'bridge.react-wrapper',
'core.pkg',
'heapster',
'moment',
])
.config(function($compileProvider, $routeProvider, $locationProvider, $httpProvider,
configSvcProvider, errorMessageSvcProvider, flagSvcProvider,
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
3 changes: 0 additions & 3 deletions frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
<link rel="shortcut icon" href="static/lib/mochi/img/favicons/tectonic/favicon-96x96.png">
<link rel="stylesheet" href="static/lib/core-icons/core-icons.css">

<!-- build:css-coreos-web -->
<link rel="stylesheet" href="static/lib/coreos-web/coreos.css">
<!-- endbuild -->
<!-- build:css -->
<link rel="stylesheet" href="static/dist/app-bundle.css">
<!-- endbuild -->
Expand Down
Loading

0 comments on commit 2aa7086

Please sign in to comment.