Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Commit 509a6f2

Browse files
authored
Front refactoring (#15)
* refactoring to webpack * delete bower and gulp
1 parent 4e46ded commit 509a6f2

28 files changed

Lines changed: 3096 additions & 8213 deletions

.gitignore

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
/vendor
22
/node_modules
33
/public/storage
4-
Homestead.yaml
5-
Homestead.json
4+
/public/dist/
65
.env
76
.idea/
8-
bower_components/
9-
public/js/
10-
public/fonts/
11-
public/css/
127
storage/*.log
138
design/
149
*.log

.php_cs.cache

Lines changed: 0 additions & 1 deletion
This file was deleted.

bower.json

Lines changed: 0 additions & 30 deletions
This file was deleted.

gulpfile.coffee

Lines changed: 0 additions & 82 deletions
This file was deleted.

package.json

Lines changed: 16 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,41 +10,34 @@
1010
"bootstrap-sass": "^3.3.7",
1111
"bower-webpack-plugin": "^0.1.9",
1212
"css-loader": "^0.26.0",
13-
"extract-text-webpack-plugin": "^1.0.1",
13+
"extract-text-webpack-plugin": "^2.0.0",
14+
"less": "^2.7.2",
15+
"less-loader": "^4.0.3",
16+
"node-sass": "^4.5.2",
1417
"react": "^15.4.1",
1518
"react-dom": "^15.4.1",
1619
"react-hot-loader": "^1.3.1",
1720
"resolve-url-loader": "^1.6.0",
18-
"sass-loader": "^4.0.2",
1921
"style-loader": "^0.13.1"
2022
},
2123
"dependencies": {
24+
"angular": "^1.0.0",
25+
"angular-animate": "^1.6.4",
26+
"angular-loading-bar": "^0.9.0",
27+
"angular-ui-bootstrap": "^2.5.0",
28+
"bootstrap-less": "^3.3.8",
2229
"bower": "^1.7.9",
2330
"classnames": "^2.2.5",
2431
"coffee-loader": "^0.7.2",
2532
"coffee-script": "^1.10.0",
33+
"file-loader": "^0.11.1",
34+
"font-awesome": "^4.7.0",
35+
"fontawesome": "^4.7.2",
2636
"glob": "^7.0.3",
27-
"gulp": "^3.9.1",
28-
"gulp-coffee": "^2.3.1",
29-
"gulp-concat": "^2.6.0",
30-
"gulp-cssmin": "^0.1.7",
31-
"gulp-debug": "^2.1.2",
32-
"gulp-filter": "^3.0.1",
33-
"gulp-less": "^3.0.5",
34-
"gulp-notify": "^2.2.0",
35-
"gulp-order": "^1.1.1",
36-
"gulp-sass": "^2.3.1",
37-
"gulp-uglify": "^1.5.1",
38-
"gulp-watch": "^4.3.5",
39-
"less-loader": "^2.2.3",
40-
"main-bower-files": "^2.11.1",
41-
"merge-stream": "~1.0.0",
4237
"ng-annotate-webpack-plugin": "^0.1.2",
43-
"react-mdl": "^1.9.0",
44-
"react-mdl-extra": "^1.4.1",
45-
"rimraf": "^2.5.2",
38+
"sass-loader": "^6.0.3",
4639
"watchify": "^3.7.0",
47-
"webpack": "^1.13.3"
40+
"webpack": "^2.3.3"
4841
},
4942
"name": "telegram",
5043
"description": "[![Build Status](https://travis-ci.org/laravel/framework.svg)](https://travis-ci.org/laravel/framework) [![Total Downloads](https://poser.pugx.org/laravel/framework/d/total.svg)](https://packagist.org/packages/laravel/framework) [![Latest Stable Version](https://poser.pugx.org/laravel/framework/v/stable.svg)](https://packagist.org/packages/laravel/framework) [![Latest Unstable Version](https://poser.pugx.org/laravel/framework/v/unstable.svg)](https://packagist.org/packages/laravel/framework) [![License](https://poser.pugx.org/laravel/framework/license.svg)](https://packagist.org/packages/laravel/framework)",
@@ -54,13 +47,8 @@
5447
"test": "tests"
5548
},
5649
"scripts": {
57-
"bower:deps": "bower install",
58-
"prebuild": "npm run -s bower:deps",
59-
"build": "npm run -s build:vendor && webpack -p",
60-
"build:vendor": "gulp",
61-
"dev": "webpack -d --watch",
62-
"pretest": "echo \"Error: enable some lintings\" && exit 1",
63-
"test": "echo \"Error: no test specified\" && exit 1"
50+
"build": "webpack -p",
51+
"dev": "webpack -d --watch"
6452
},
6553
"repository": {
6654
"type": "git",

resources/assets/coffee/Application.coffee

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
angular = require 'angular'
2+
require 'angular-ui-bootstrap'
3+
require 'angular-loading-bar'
4+
require 'angular-animate'
5+
16
App = angular.module 'site', ['ui.bootstrap', 'angular-loading-bar', 'ngAnimate']
27
App.config(['cfpLoadingBarProvider', (cfpLoadingBarProvider)-> (
38
cfpLoadingBarProvider.spinnerTemplate = '<div><span class="fa fa-spinner fa-spin"></span>Загружаем список игр</div>';

resources/assets/css/font-awesome.min.css

Lines changed: 0 additions & 4 deletions
This file was deleted.

resources/assets/css/ie8.css

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)