Skip to content

Commit 71f8343

Browse files
committed
🏗 Rename package
1 parent 05f3c6b commit 71f8343

File tree

8 files changed

+101
-82
lines changed

8 files changed

+101
-82
lines changed

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = tab
6+
indent_size = 4
7+
end_of_line = lf
8+
charset = utf-8
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
# Overwrite for MarkDown
13+
[*.md]
14+
indent_style = space
15+
indent_size = 2
16+
trim_trailing_whitespace = false

.gitignore

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
1-
.DS_Store
1+
# Dependencies
22
node_modules/
3-
/dist/
3+
4+
/dist
5+
6+
# Log files
7+
logs
8+
*.log
49
npm-debug.log*
510
yarn-debug.log*
611
yarn-error.log*
7-
/tests/unit/coverage
8-
/tests/e2e/reports
9-
selenium-debug.log
10-
/src/config/
12+
package-lock.json*
1113

1214
# Editor directories and files
15+
.DS_Store
1316
.idea
17+
.vscode
1418
*.suo
1519
*.ntvs*
1620
*.njsproj
1721
*.sln
22+
*.sw?

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ To create enhancement suggestions, [create a new issue](#submitting-a-good-bug-r
3030

3131
You can look for issues labelled with `help-wanted` if you're not sure where to start!
3232

33-
#### Commit guidelines
33+
### Commit guidelines
3434

3535
Look at the previous commits for inspiration! But you need it to be explicit, and it should follow these rules:
3636

@@ -40,6 +40,6 @@ Look at the previous commits for inspiration! But you need it to be explicit, an
4040
- Capitalize the subject line
4141
- Use the imperative mood
4242

43-
#### Pull requests
43+
### Pull requests
4444

4545
When creating a pull request, follow and complete the provided template.

README.md

Lines changed: 65 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,110 +1,106 @@
11
<p align="center">
2-
<a
3-
href="https://assurance-maladie-digital.github.io/vue-cli-plugin-proxy/"
4-
target="_blank"
5-
rel="noopener noreferrer"
6-
>
7-
<img
8-
width="280"
9-
src="https://unpkg.com/@cnamts/vue-cli-plugin-proxy@2.1.2/docs/img/vue.js.svg"
10-
alt="VueDot"
11-
>
12-
</a>
2+
<img
3+
width="280"
4+
src="https://user-images.githubusercontent.com/10298932/59419196-af91f800-8dca-11e9-9ea8-de5567e9e471.png"
5+
alt=""
6+
>
137
</p>
148
15-
<h1 align="center">CNAM – Vue CLI plugin proxy</h1>
9+
<h1 align="center">Vue CLI proxy plugin</h1>
1610

1711
<p align="center">This plugin is meant to provide all <a href="https://www.npmjs.com/package/http-proxy-middleware">http-proxy-middleware</a> options to vue-cli.</p>
1812

1913
<p align="center">
20-
<a href="https://www.npmjs.com/package/@cnamts/vue-cli-plugin-proxy">
21-
<img
22-
src="https://img.shields.io/npm/v/@cnamts/vue-cli-plugin-proxy.svg?style=flat-square"
23-
alt="NPM Version"
24-
>
25-
</a>
26-
<a href="https://www.npmjs.com/package/@cnamts/vue-cli-plugin-proxy">
27-
<img
28-
src="https://img.shields.io/npm/dw/@cnamts/vue-cli-plugin-proxy.svg?style=flat-square"
29-
alt="NPM Downloads"
30-
>
31-
</a>
32-
<a
33-
href="https://github.com/assurance-maladie-digital/vue-cli-plugin-proxy/blob/master/LICENSE">
34-
<img
35-
src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square"
36-
alt="License"
37-
>
38-
</a>
14+
<a href="https://www.npmjs.com/package/vue-cli-proxy-plugin">
15+
<img
16+
src="https://img.shields.io/npm/v/vue-cli-proxy-plugin.svg?style=flat-square"
17+
alt="NPM Version"
18+
>
19+
</a>
20+
<a href="https://www.npmjs.com/package/vue-cli-proxy-plugin">
21+
<img
22+
src="https://img.shields.io/npm/dw/vue-cli-proxy-plugin.svg?style=flat-square"
23+
alt="NPM Downloads"
24+
>
25+
</a>
26+
<a
27+
href="https://github.com/assurance-maladie-digital/vue-cli-plugin-proxy/blob/master/LICENSE">
28+
<img
29+
src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square"
30+
alt="License"
31+
>
32+
</a>
3933
</p>
4034

4135
## Issue
4236

4337
See [the issue than initiated this plugin (#2320)](https://github.com/vuejs/vue-cli/issues/2320)
4438

45-
## As Easy as 1, 2, 3
46-
47-
### Install
39+
## Installation
4840

4941
``` bash
50-
yarn add @cnamts/vue-cli-plugin-proxy # OR npm install @cnamts/vue-cli-plugin-proxy
42+
yarn add vue-cli-proxy-plugin
43+
# OR npm install vue-cli-proxy-plugin
5144
```
5245

53-
### Use
46+
## Usage
5447

55-
``` js
48+
```js
5649
// vue.config.js
5750
module.exports = {
58-
pluginOptions: {
59-
proxy: {
60-
enabled: true,
61-
context: '',
62-
options: {
63-
// ...
64-
}
65-
}
66-
}
51+
pluginOptions: {
52+
proxy: {
53+
enabled: true,
54+
context: '',
55+
options: {
56+
// ...
57+
}
58+
}
59+
}
6760
}
6861
```
6962

70-
### You're done! 🎉
63+
## Options
7164

7265
See [http-proxy-middleware](https://www.npmjs.com/package/http-proxy-middleware#tldr) for `options` object to pass to the plugin.
7366

74-
#### Object examples
67+
### Object examples
7568

7669
* First example of the docs:
7770

78-
``` js
71+
```js
7972
// vue.config.js
8073
module.exports = {
81-
pluginOptions: {
82-
proxy: {
83-
enabled: true,
84-
context: '/api',
85-
options: {
86-
target: 'http://www.example.org',
87-
changeOrigin: true
88-
}
89-
}
90-
}
74+
pluginOptions: {
75+
proxy: {
76+
enabled: true,
77+
context: '/api',
78+
options: {
79+
target: 'http://www.example.org',
80+
changeOrigin: true
81+
}
82+
}
83+
}
9184
}
9285
```
9386

9487
* v1.0.0 default:
9588

96-
``` js
89+
```js
9790
// vue.config.js
9891
module.exports = {
99-
pluginOptions: {
100-
proxy: {
101-
enabled: true,
102-
context: ['/**', '!/dist/**'],
103-
options: {
104-
target: 'http://127.0.0.1:8000',
105-
}
106-
}
107-
}
92+
pluginOptions: {
93+
proxy: {
94+
enabled: true,
95+
context: [
96+
'/**',
97+
'!/dist/**'
98+
],
99+
options: {
100+
target: 'http://127.0.0.1:8000'
101+
}
102+
}
103+
}
108104
}
109105
```
110106

docs/img/vue.js.svg

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

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var proxy = require('http-proxy-middleware');
1+
const proxy = require('http-proxy-middleware');
22

33
module.exports = (api, options) => {
44
const opts = options.pluginOptions && options.pluginOptions.proxy;

logo.png

-1.26 KB
Binary file not shown.

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@cnamts/vue-cli-plugin-proxy",
2+
"name": "vue-cli-proxy-plugin",
33
"version": "2.2.1",
44
"description": "Provide all http-proxy-middleware options to vue-cli",
55
"keywords": [
@@ -11,10 +11,13 @@
1111
"homepage": "https://github.com/assurance-maladie-digital/vue-cli-plugin-proxy/blob/master/README.md",
1212
"bugs": {
1313
"url": "https://github.com/assurance-maladie-digital/vue-cli-plugin-proxy/issues",
14-
"email": "deraw@outlook.fr"
14+
"email": "me@deraw.dev"
1515
},
1616
"license": "MIT",
17-
"author": "Dylan Broussard <deraw@outlook.fr>",
17+
"author": {
18+
"name": "Dylan Broussard",
19+
"email": "me@deraw.dev"
20+
},
1821
"main": "index.js",
1922
"repository": {
2023
"type": "git",

0 commit comments

Comments
 (0)