Replace bower packages by NPM packages.

In the issue akveo/ng2-admin#162, search should be made to be sure of non regression.
This commit is contained in:
Geoffrey Roguelon 2016-08-18 12:45:44 -05:00
parent 174fef85cc
commit a30c41a11d
8 changed files with 4 additions and 41 deletions

View file

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

View file

@ -17,7 +17,6 @@ install:
- npm install -g npm@3 - npm install -g npm@3
- npm install -g webpack - npm install -g webpack
- npm install -g typescript - npm install -g typescript
- npm install -g bower
- npm install - npm install

View file

@ -4,8 +4,7 @@ RUN git clone https://github.com/akveo/ng2-admin.git /var/www \
&& cd /var/www \ && cd /var/www \
&& npm install --global rimraf \ && npm install --global rimraf \
&& npm run clean \ && npm run clean \
&& npm install --global bower typings webpack webpack-dev-server typescript \ && npm install --global typings webpack webpack-dev-server typescript \
&& bower install --allow-root \
&& npm install \ && npm install \
&& npm run prebuild:prod && npm run build:prod && npm run prebuild:prod && npm run build:prod

View file

@ -1,21 +0,0 @@
{
"name": "ng2-admin",
"version": "0.4.2",
"description": "Angular 2 and Bootstrap 4 Admin Template.",
"author": "akveo",
"homepage": "http://akveo.github.io/ng2-admin/",
"license": "MIT",
"moduleType": [
"es6"
],
"private": true,
"ignore": [
"**/.*",
"node_modules",
"test",
"tests"
],
"dependencies": {
"Ionicons": "ionicons#~2.0.1"
}
}

View file

@ -211,10 +211,6 @@ module.exports = {
allChunks: true allChunks: true
}), }),
new webpack.ResolverPlugin(
new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin('bower.json', ['main'])
),
/* /*
* Plugin: ForkCheckerPlugin * Plugin: ForkCheckerPlugin
* Description: Do type checking in a separate process, so webpack don't need to wait. * Description: Do type checking in a separate process, so webpack don't need to wait.

View file

@ -39,11 +39,6 @@ npm install --global typings
npm install --global typescript npm install --global typescript
``` ```
* bower
```
npm install --global bower
```
## Clone repository and install dependencies ## Clone repository and install dependencies
You will need to clone the source code of ng2-admin GitHub repository: You will need to clone the source code of ng2-admin GitHub repository:
@ -59,7 +54,7 @@ This will setup a working copy of ng2-admin on your local machine.
**Note**: If you have any issues after the installation, additionally run the following: **Note**: If you have any issues after the installation, additionally run the following:
```bash ```bash
typings install && bower install typings install
``` ```
## Running local copy ## Running local copy

View file

@ -54,8 +54,6 @@ ng2-admin/
├──typedoc.json * typescript documentation generator ├──typedoc.json * typescript documentation generator
├──tsconfig.json * config that webpack uses for typescript ├──tsconfig.json * config that webpack uses for typescript
├──typings.json * our typings manager ├──typings.json * our typings manager
├──package.json * what npm uses to manage it's dependencies └──package.json * what npm uses to manage it's dependencies
├──bower.json * DEPRECATED - moving to npm as primary package manager for all dependenties
└──.bowerrc * DEPRECARD - temporary bower configuration
``` ```
In our template we tried to separate theme layer and presentation layer. We believe most of other templates have them combined. That's why when you start developing using them, it gets very hard for you to remove things you don't need. In our template we tried to separate theme layer and presentation layer. We believe most of other templates have them combined. That's why when you start developing using them, it gets very hard for you to remove things you don't need.

View file

@ -32,6 +32,7 @@
"google-maps": "^3.2.1", "google-maps": "^3.2.1",
"http-server": "^0.9.0", "http-server": "^0.9.0",
"ie-shim": "^0.1.0", "ie-shim": "^0.1.0",
"ionicons": "^2.0.1",
"jquery": "^2.2.3", "jquery": "^2.2.3",
"jquery-slimscroll": "^1.3.6", "jquery-slimscroll": "^1.3.6",
"leaflet": "^0.7.7", "leaflet": "^0.7.7",
@ -129,7 +130,6 @@
"gh-pages": "wintersmith build -C docs && gh-pages -d docs/build", "gh-pages": "wintersmith build -C docs && gh-pages -d docs/build",
"start": "npm run server:dev", "start": "npm run server:dev",
"start:hmr": "npm run server:dev:hmr", "start:hmr": "npm run server:dev:hmr",
"postinstall": "bower install",
"version": "npm run build", "version": "npm run build",
"postversion": "git push && git push --tags" "postversion": "git push && git push --tags"
}, },