Skip to content

Commit

Permalink
refactor: rename package to @admin-bro/express
Browse files Browse the repository at this point in the history
BREAKING CHANGE: now you should use @admin-bro/express
  • Loading branch information
wojtek-krysiak committed Jul 27, 2020
1 parent 9e8bb98 commit 695beef
Show file tree
Hide file tree
Showing 8 changed files with 1,075 additions and 964 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
access=public
4 changes: 2 additions & 2 deletions examples/auth.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const AdminBro = require('admin-bro')
const AdminBro = require('@admin-bro/core')
const express = require('express')
const mongoose = require('mongoose')

AdminBro.registerAdapter(require('admin-bro-mongoose'))
AdminBro.registerAdapter(require('@admin-bro/mongoose'))

const AdminBroExpress = require('../index')

Expand Down
4 changes: 2 additions & 2 deletions examples/simple.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const AdminBro = require('admin-bro')
const AdminBro = require('@admin-bro/core')
const express = require('express')
const mongoose = require('mongoose')

AdminBro.registerAdapter(require('admin-bro-mongoose'))
AdminBro.registerAdapter(require('@admin-bro/mongoose'))

const AdminBroExpress = require('../index')

Expand Down
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* ## Installation
*
* ```sh
* npm install admin-bro-expressjs
* npm install @admin-bro/express
* ```
*
* It has 2 peerDependencies: `express-formidable` and `express`,
Expand All @@ -21,7 +21,7 @@
* ## Usage
*
* ```
* const AdminBroExpress = require('admin-bro-expressjs')
* const AdminBroExpress = require('@admin-bro/express')
* ```
*
* It exposes 2 methods that create an Express Router, which can be attached
Expand All @@ -39,8 +39,8 @@
* ## Example without an authentication
*
* ```
* const AdminBro = require('admin-bro')
* const AdminBroExpress = require('admin-bro-expressjs')
* const AdminBro = require('@admin-bro/core')
* const AdminBroExpress = require('@admin-bro/express')
*
* const express = require('express')
* const app = express()
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "admin-bro-expressjs",
"name": "@admin-bro/express",
"version": "2.0.5",
"description": "This is an official AdminBro plugin which integrates it to expressjs framework",
"main": "index.js",
Expand All @@ -26,7 +26,7 @@
},
"homepage": "https://github.com/SoftwareBrothers/admin-bro-expressjs#readme",
"peerDependencies": {
"admin-bro": ">=2.0.0",
"@admin-bro/core": ">=3.0.0-beta.1",
"express": ">=4.16.4",
"express-formidable": "^1.2.0",
"express-session": ">=1.15.6"
Expand All @@ -39,8 +39,8 @@
"devDependencies": {
"@types/express": "^4.17.4",
"@types/mocha": "^7.0.2",
"admin-bro": ">=2.0.0",
"admin-bro-mongoose": "^0.1.4",
"@admin-bro/core": ">=3.0.0-beta.1",
"@admin-bro/mongoose": "^1.0.0-beta.1",
"chai": "^4.2.0",
"eslint": "^5.10.0",
"eslint-config-airbnb-base": "^13.1.0",
Expand Down
2 changes: 1 addition & 1 deletion plugin.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const express = require('express')
const AdminBro = require('admin-bro')
const AdminBro = require('@admin-bro/core')

const path = require('path')
const formidableMiddleware = require('express-formidable')
Expand Down
2 changes: 1 addition & 1 deletion spec/plugin.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const express = require('express')
const AdminBro = require('admin-bro')
const AdminBro = require('@admin-bro/core')
const plugin = require('../plugin')

describe('plugin', function () {
Expand Down
Loading

0 comments on commit 695beef

Please sign in to comment.