change package management tool to npm, remove bower

This commit is contained in:
MaysWind 2018-08-26 02:03:57 +08:00
parent bd59e2ac96
commit 57d83d7e2a
8 changed files with 79 additions and 112 deletions

View file

@ -1,3 +0,0 @@
{
"directory": "bower_components"
}

View file

@ -13,7 +13,6 @@ jobs:
- run: npm install
- run: sudo npm install -g bower
- run: sudo npm install -g gulp
- run: bower install
- run: gulp clean build
- save_cache:
key: v1-ariang-{{ .Environment.CIRCLE_SHA1 }}

View file

@ -41,7 +41,6 @@ Latest Daily Build: [https://github.com/mayswind/AriaNg-DailyBuild/archive/maste
Make sure you have [Node.js](https://nodejs.org/), [NPM](https://www.npmjs.com/), [Gulp](https://gulpjs.com/) and [Bower](https://bower.io/) installed. Then download the source code, and follow these steps.
$ npm install
$ bower install
$ gulp clean build
The builds will be placed in the dist directory.

View file

@ -1,62 +0,0 @@
{
"private": true,
"name": "ariang",
"description": "AriaNg, a modern web frontend making aria2 easier to use.",
"main": "index.html",
"authors": [
"MaysWind <i@mayswind.net>"
],
"license": "MIT",
"keywords": [
"aria2",
"Web",
"Frontend",
"UI"
],
"homepage": "http://ariang.mayswind.net/",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"jquery": "3.3.1",
"bootstrap": "3.3.7",
"moment": "2.22.2",
"moment-timezone": "0.5.17",
"echarts": "3.8.5",
"font-awesome": "^4.7.0",
"admin-lte": "2.4.3",
"sweetalert": "^1.1.3",
"awesome-bootstrap-checkbox": "^0.3.7",
"jquery-slimscroll": "^1.3.8",
"bootstrap-contextmenu": "^0.3.4",
"angular": "1.6.10",
"angular-route": "1.6.10",
"angular-sanitize": "1.6.10",
"angular-touch": "1.6.10",
"angular-messages": "1.6.10",
"angular-cookies": "1.6.10",
"angular-animate": "1.6.10",
"angular-translate": "^2.18.1",
"angular-moment": "1.2.0",
"angular-websocket": "^2.0.0",
"angular-utf8-base64": "^0.0.5",
"angular-local-storage": "^0.7.1",
"angular-notification": "775ee861c1737b284588bcb878ba1f4e43c70c97",
"angular-ui-notification": "^0.3.6",
"angular-bittorrent-peerid": "^1.2.0",
"angular-busy": "^4.1.4",
"angular-promise-buttons": "^0.1.23",
"angular-clipboard": "^1.6.2",
"angular-input-dropdown": "mayswind/angular-input-dropdown#68670e39816698b3eb98c0e740a0efe77d5fbdd1",
"angularjs-dragula": "^2.0.0",
"ngSweetAlert": "^1.1.2"
},
"resolutions": {
"jquery": "3.3.1",
"angular": "1.6.10"
}
}

View file

@ -68,7 +68,7 @@ gulp.task('images', function () {
gulp.task('fonts', function () {
return gulp.src([
'bower_components/font-awesome/fonts/fontawesome-webfont.*'
'node_modules/font-awesome/fonts/fontawesome-webfont.*'
]).pipe(gulp.dest('.tmp/fonts'))
.pipe(gulp.dest('dist/fonts'));
});
@ -111,7 +111,7 @@ gulp.task('serve', ['styles', 'scripts', 'fonts'], function () {
server: {
baseDir: ['.tmp', 'src'],
routes: {
'/bower_components': 'bower_components'
'/node_modules': 'node_modules'
}
}
});

View file

@ -3,6 +3,40 @@
"engines": {
"node": ">=6"
},
"dependencies": {
"jquery": "3.3.1",
"bootstrap": "3.3.7",
"moment": "2.22.2",
"moment-timezone": "0.5.17",
"echarts": "3.8.5",
"font-awesome": "^4.7.0",
"admin-lte": "2.4.3",
"sweetalert": "^1.1.3",
"awesome-bootstrap-checkbox": "^0.3.7",
"jquery-slimscroll": "^1.3.8",
"bootstrap-contextmenu": "^1.0.0",
"angular": "1.6.10",
"angular-route": "1.6.10",
"angular-sanitize": "1.6.10",
"angular-touch": "1.6.10",
"angular-messages": "1.6.10",
"angular-cookies": "1.6.10",
"angular-animate": "1.6.10",
"angular-translate": "^2.18.1",
"angular-moment": "1.2.0",
"angular-websocket": "^2.0.0",
"angular-utf8-base64": "^0.0.5",
"angular-local-storage": "^0.7.1",
"angular-notification": "git://github.com/neoziro/angular-notification#775ee861c1737b284588bcb878ba1f4e43c70c97",
"angular-ui-notification": "^0.3.6",
"angular-bittorrent-peerid": "^1.2.0",
"angular-busy": "^4.1.4",
"angular-promise-buttons": "^0.1.23",
"angular-sweetalert": "^1.1.2",
"angular-clipboard": "^1.6.2",
"angular-input-dropdown": "git://github.com/mayswind/angular-input-dropdown#68670e39816698b3eb98c0e740a0efe77d5fbdd1",
"angularjs-dragula": "^2.0.0"
},
"devDependencies": {
"browser-sync": "^2.23.6",
"del": "^3.0.0",

View file

@ -19,18 +19,18 @@
<!--[if IE]><link rel="shortcut icon" href="favicon.ico"><![endif]-->
<link rel="apple-touch-icon" href="touchicon.png">
<!-- build:css css/bootstrap-3.3.7.min.css -->
<link rel="stylesheet" href="../bower_components/bootstrap/dist/css/bootstrap.min.css"/>
<link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.min.css"/>
<!-- endbuild -->
<!-- build:css css/plugins.min.css -->
<link rel="stylesheet" href="../bower_components/font-awesome/css/font-awesome.min.css"/>
<link rel="stylesheet" href="../bower_components/admin-lte/dist/css/AdminLTE.min.css"/>
<link rel="stylesheet" href="../bower_components/sweetalert/dist/sweetalert.css"/>
<link rel="stylesheet" href="../bower_components/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css"/>
<link rel="stylesheet" href="../bower_components/angular/angular-csp.css"/>
<link rel="stylesheet" href="../bower_components/angular-ui-notification/dist/angular-ui-notification.min.css"/>
<link rel="stylesheet" href="../bower_components/angular-busy/dist/angular-busy.min.css"/>
<link rel="stylesheet" href="../bower_components/angular-input-dropdown/inputDropdownStyles.css"/>
<link rel="stylesheet" href="../bower_components/angularjs-dragula/dist/dragula.min.css"/>
<link rel="stylesheet" href="../node_modules/font-awesome/css/font-awesome.min.css"/>
<link rel="stylesheet" href="../node_modules/admin-lte/dist/css/AdminLTE.min.css"/>
<link rel="stylesheet" href="../node_modules/sweetalert/dist/sweetalert.css"/>
<link rel="stylesheet" href="../node_modules/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css"/>
<link rel="stylesheet" href="../node_modules/angular/angular-csp.css"/>
<link rel="stylesheet" href="../node_modules/angular-ui-notification/dist/angular-ui-notification.min.css"/>
<link rel="stylesheet" href="../node_modules/angular-busy/dist/angular-busy.min.css"/>
<link rel="stylesheet" href="../node_modules/angular-input-dropdown/inputDropdownStyles.css"/>
<link rel="stylesheet" href="../node_modules/angularjs-dragula/dist/dragula.min.css"/>
<!-- endbuild -->
<!-- build:css css/aria-ng.min.css -->
<link rel="stylesheet" href="styles/core/core.css">
@ -301,48 +301,48 @@
</div>
<!-- build:js js/jquery-3.3.1.min.js -->
<script src="../bower_components/jquery/dist/jquery.min.js"></script>
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
<!-- endbuild -->
<!-- build:js js/angular-packages-1.6.10.min.js -->
<script src="../bower_components/angular/angular.min.js"></script>
<script src="../bower_components/angular-route/angular-route.min.js"></script>
<script src="../bower_components/angular-sanitize/angular-sanitize.min.js"></script>
<script src="../bower_components/angular-touch/angular-touch.min.js"></script>
<script src="../bower_components/angular-messages/angular-messages.min.js"></script>
<script src="../bower_components/angular-cookies/angular-cookies.min.js"></script>
<script src="../bower_components/angular-animate/angular-animate.min.js"></script>
<script src="../node_modules/angular/angular.min.js"></script>
<script src="../node_modules/angular-route/angular-route.min.js"></script>
<script src="../node_modules/angular-sanitize/angular-sanitize.min.js"></script>
<script src="../node_modules/angular-touch/angular-touch.min.js"></script>
<script src="../node_modules/angular-messages/angular-messages.min.js"></script>
<script src="../node_modules/angular-cookies/angular-cookies.min.js"></script>
<script src="../node_modules/angular-animate/angular-animate.min.js"></script>
<!-- endbuild -->
<!-- build:js js/bootstrap-3.3.7.min.js -->
<script src="../bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="../node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- endbuild -->
<!-- build:js js/moment-with-locales-2.22.2.min.js -->
<script src="../bower_components/moment/min/moment.min.js"></script>
<script src="../bower_components/moment/locale/zh-cn.js"></script>
<script src="../bower_components/moment/locale/zh-tw.js"></script>
<script src="../bower_components/moment-timezone/builds/moment-timezone-with-data-2012-2022.min.js"></script>
<script src="../node_modules/moment/min/moment.min.js"></script>
<script src="../node_modules/moment/locale/zh-cn.js"></script>
<script src="../node_modules/moment/locale/zh-tw.js"></script>
<script src="../node_modules/moment-timezone/builds/moment-timezone-with-data-2012-2022.min.js"></script>
<!-- endbuild -->
<!-- build:js js/echarts-common-3.8.5.min.js -->
<script src="../bower_components/echarts/dist/echarts.common.min.js"></script>
<script src="../node_modules/echarts/dist/echarts.common.min.js"></script>
<!-- endbuild -->
<!-- build:js js/plugins.min.js -->
<script src="../bower_components/admin-lte/dist/js/adminlte.js"></script>
<script src="../bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<script src="../bower_components/sweetalert/dist/sweetalert.min.js"></script>
<script src="../bower_components/bootstrap-contextmenu/bootstrap-contextmenu.js"></script>
<script src="../bower_components/angular-translate/angular-translate.min.js"></script>
<script src="../bower_components/angular-moment/angular-moment.min.js"></script>
<script src="../bower_components/angular-websocket/dist/angular-websocket.min.js"></script>
<script src="../bower_components/angular-utf8-base64/angular-utf8-base64.min.js"></script>
<script src="../bower_components/angular-local-storage/dist/angular-local-storage.min.js"></script>
<script src="../bower_components/angular-notification/angular-notification.js"></script>
<script src="../bower_components/angular-ui-notification/dist/angular-ui-notification.min.js"></script>
<script src="../bower_components/angular-bittorrent-peerid/angular-bittorrent-peerid.min.js"></script>
<script src="../bower_components/angular-busy/dist/angular-busy.min.js"></script>
<script src="../bower_components/angular-promise-buttons/dist/angular-promise-buttons.min.js"></script>
<script src="../bower_components/angular-clipboard/angular-clipboard.js"></script>
<script src="../bower_components/angular-input-dropdown/inputDropdown.js"></script>
<script src="../bower_components/angularjs-dragula/dist/angularjs-dragula.min.js"></script>
<script src="../bower_components/ngSweetAlert/SweetAlert.js"></script>
<script src="../node_modules/admin-lte/dist/js/adminlte.js"></script>
<script src="../node_modules/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<script src="../node_modules/sweetalert/dist/sweetalert.min.js"></script>
<script src="../node_modules/bootstrap-contextmenu/bootstrap-contextmenu.js"></script>
<script src="../node_modules/angular-translate/dist/angular-translate.min.js"></script>
<script src="../node_modules/angular-moment/angular-moment.min.js"></script>
<script src="../node_modules/angular-websocket/dist/angular-websocket.min.js"></script>
<script src="../node_modules/angular-utf8-base64/angular-utf8-base64.js"></script>
<script src="../node_modules/angular-local-storage/dist/angular-local-storage.min.js"></script>
<script src="../node_modules/angular-notification/angular-notification.js"></script>
<script src="../node_modules/angular-ui-notification/dist/angular-ui-notification.min.js"></script>
<script src="../node_modules/angular-bittorrent-peerid/angular-bittorrent-peerid.min.js"></script>
<script src="../node_modules/angular-busy/dist/angular-busy.min.js"></script>
<script src="../node_modules/angular-promise-buttons/dist/angular-promise-buttons.min.js"></script>
<script src="../node_modules/angular-clipboard/angular-clipboard.js"></script>
<script src="../node_modules/angular-input-dropdown/inputDropdown.js"></script>
<script src="../node_modules/angularjs-dragula/dist/angularjs-dragula.min.js"></script>
<script src="../node_modules/angular-sweetalert/SweetAlert.js"></script>
<!-- endbuild -->
<!-- build:js js/aria-ng.min.js -->
<script src="scripts/core/__core.js"></script>

View file

@ -11,7 +11,7 @@
'pascalprecht.translate',
'angularMoment',
'ngWebSocket',
'ab-base64',
'utf8-base64',
'LocalStorageModule',
'notification',
'ui-notification',