mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
chore: remove orphaned bower support (#10746)
This commit is contained in:
@@ -288,7 +288,7 @@ jobs:
|
||||
VERSION=$(node -p "require('./package.json').version")
|
||||
echo "newTag=$VERSION" >> "$GITHUB_OUTPUT"
|
||||
echo "newBranch=release-v1x/version-$VERSION" >> "$GITHUB_OUTPUT"
|
||||
- name: Bump bower etc
|
||||
- name: Run preversion
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: npm run preversion
|
||||
|
||||
@@ -127,12 +127,6 @@ Using npm:
|
||||
$ npm install axios
|
||||
```
|
||||
|
||||
Using bower:
|
||||
|
||||
```bash
|
||||
$ bower install axios
|
||||
```
|
||||
|
||||
Using yarn:
|
||||
|
||||
```bash
|
||||
|
||||
-43
@@ -1,43 +0,0 @@
|
||||
{
|
||||
"name": "axios",
|
||||
"main": "./dist/axios.js",
|
||||
"version": "1.15.0",
|
||||
"homepage": "https://axios-http.com",
|
||||
"authors": [
|
||||
"Matt Zabriskie"
|
||||
],
|
||||
"description": "Promise based HTTP client for the browser and node.js",
|
||||
"moduleType": [
|
||||
"amd",
|
||||
"globals"
|
||||
],
|
||||
"keywords": [
|
||||
"xhr",
|
||||
"http",
|
||||
"ajax",
|
||||
"promise",
|
||||
"node",
|
||||
"browser",
|
||||
"fetch",
|
||||
"rest",
|
||||
"api",
|
||||
"client"
|
||||
],
|
||||
"license": "MIT",
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"*.iml",
|
||||
"examples",
|
||||
"lib",
|
||||
"node_modules",
|
||||
"sandbox",
|
||||
"test",
|
||||
"CONTRIBUTING.md",
|
||||
"COOKBOOK.md",
|
||||
"Gruntfile.js",
|
||||
"index.js",
|
||||
"karma.conf.js",
|
||||
"package.json",
|
||||
"webpack.*.js"
|
||||
]
|
||||
}
|
||||
+2
-16
@@ -13,20 +13,6 @@ const clear = gulp.task('clear', async function () {
|
||||
await fs.emptyDir('./dist/');
|
||||
});
|
||||
|
||||
const bower = gulp.task('bower', async function () {
|
||||
const npm = JSON.parse(await fs.readFile('package.json'));
|
||||
const bower = JSON.parse(await fs.readFile('bower.json'));
|
||||
|
||||
const fields = ['name', 'description', 'version', 'homepage', 'license', 'keywords'];
|
||||
|
||||
for (let i = 0, l = fields.length; i < l; i++) {
|
||||
const field = fields[i];
|
||||
bower[field] = npm[field];
|
||||
}
|
||||
|
||||
await fs.writeFile('bower.json', JSON.stringify(bower, null, 2));
|
||||
});
|
||||
|
||||
async function getContributors(user, repo, maxCount = 1) {
|
||||
const contributors = (
|
||||
await axios.get(
|
||||
@@ -88,6 +74,6 @@ const env = gulp.task('env', async function () {
|
||||
);
|
||||
});
|
||||
|
||||
const version = gulp.series('bower', 'env', 'package');
|
||||
const version = gulp.series('env', 'package');
|
||||
|
||||
export { bower, env, clear, version, packageJSON };
|
||||
export { env, clear, version, packageJSON };
|
||||
|
||||
Reference in New Issue
Block a user