Skip to content

Commit d906073

Browse files
committed
🚚 chore(README.md): update package name and CDN link
📝 docs(README.md): update installation instructions and add new animateCSSPath option 🚀 chore(package.json): update package name The package name has been updated to include the organization name "@ossph". The installation instructions have been updated to reflect the new package name. The CDN link has also been updated to reflect the new package name. A new animateCSSPath option has been added to allow users to specify a local path to the animate.css file. 🐛 fix(webpack.config.js): add missing semicolons and fix indentation The commit fixes the indentation and adds missing semicolons in the webpack.config.js file. This improves the readability of the code and ensures that it is consistent with the project's coding standards.
1 parent 391aa7f commit d906073

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ If you like this project, please give it a star :star: , and consider following
1313
### Installation using **NPM** <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/npm/npm-original-wordmark.svg" width="30" height="30">
1414

1515
```shell
16-
npm install v-animate-css --save
16+
npm install @ossph/v-animate-css --save
1717
```
1818

1919
### OR
2020

2121
### Installation using **YARN** <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/yarn/yarn-original.svg" width="30" height="30">
2222

2323
```shell
24-
yarn add v-animate-css
24+
yarn add @ossph/v-animate-css
2525
```
2626

2727
### Or just **import** this to project without installing
@@ -30,7 +30,7 @@ yarn add v-animate-css
3030
### Using **CDN**
3131

3232
```script
33-
https://unpkg.com/v-animate-css/dist/v-animate-css.js
33+
https://unpkg.com/@ossph/v-animate-css/dist/v-animate-css.js
3434
```
3535

3636
## **Getting Started**
@@ -39,14 +39,14 @@ https://unpkg.com/v-animate-css/dist/v-animate-css.js
3939

4040
```javascript
4141
import Vue from 'vue';
42-
import VAnimateCss from 'v-animate-css';
42+
import VAnimateCss from '@ossph/v-animate-css';
4343

4444
Vue.use(VAnimateCss);
4545
```
4646

4747
```html
4848
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.4.4/vue.js"></script>
49-
<script src="https://unpkg.com/v-animate-css/dist/v-animate-css.js"></script>
49+
<script src="https://unpkg.com/@ossph/v-animate-css/dist/v-animate-css.js"></script>
5050

5151
<script>
5252
Vue.use(VAnimateCss.default);
@@ -61,7 +61,7 @@ You can do it using the new animateCSSPath option.
6161

6262
```js
6363
import Vue from 'vue';
64-
import VAnimateCss from 'v-animate-css';
64+
import VAnimateCss from '@ossph/v-animate-css';
6565

6666
Vue.use(VAnimateCss, { animateCSSPath: './local-animate-css-file.css' });
6767

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "v-animate-css",
2+
"name": "@ossph/v-animate-css",
33
"version": "1.0.1",
44
"description": "Animate CSS for Vue.js 3",
55
"main": "index.js",

webpack.config.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
const path = require('path');
22
const webpack = require('webpack');
33

4-
function createConfig(target) {
5-
var name = 'index.js';
4+
function createConfig (target) {
5+
let name = 'index.js';
66

7-
if(target !== 'commonjs2') {
8-
name = 'v-animate-css.js'
7+
if (target !== 'commonjs2') {
8+
name = 'v-animate-css.js';
99
}
1010

11-
var output = {
11+
let output = {
1212
library: 'VAnimateCss',
1313
libraryTarget: target,
1414
path: path.resolve(__dirname, 'dist'),
15-
filename: name
16-
}
15+
filename: name,
16+
};
1717

18-
if(typeof target === 'undefined') {
18+
if (typeof target === 'undefined') {
1919
name = 'vue-animate-css.js';
2020
output = {
2121
path: path.resolve(__dirname, 'dist'),
22-
filename: name
23-
}
22+
filename: name,
23+
};
2424
}
2525

2626
return {
2727
name: target,
2828
entry: './src',
29-
output: output,
29+
output,
3030
module: {
3131
rules: [
3232
{
@@ -35,16 +35,16 @@ function createConfig(target) {
3535
use: {
3636
loader: 'babel-loader',
3737
options: {
38-
presets: ['env']
39-
}
40-
}
41-
}
42-
]
43-
}
44-
}
38+
presets: ['env'],
39+
},
40+
},
41+
},
42+
],
43+
},
44+
};
4545
}
4646

4747
module.exports = [
4848
createConfig('var'),
49-
createConfig('commonjs2')
50-
]
49+
createConfig('commonjs2'),
50+
];

0 commit comments

Comments
 (0)