bower-api: deprecate

This commit is contained in:
Rico Sta. Cruz 2017-09-21 16:32:26 +08:00
parent 294d53dca3
commit 811c2886cc
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
2 changed files with 33 additions and 28 deletions

View File

@ -1,28 +0,0 @@
---
title: Bower API
category: JavaScript libraries
---
require('bower').config
{ cwd: '/Users/rsc',
directory: 'bower_components',
registry:
{ search: [ 'https://bower.herokuapp.com' ],
register: 'https://bower.herokuapp.com',
publish: 'https://bower.herokuapp.com' },
shorthandResolver: 'git://github.com/{{owner}}/{{package}}.git',
tmp: '/var/folders/5y/190gjd_j2c5bfkn563dk2xdr0000gn/T/rsc/bower',
timeout: 30000,
ca: { search: [] },
strictSsl: true,
userAgent: 'node/v0.10.33 darwin x64',
color: true,
storage:
{ packages: '/Users/rsc/.cache/bower/packages',
links: '/Users/rsc/.local/share/bower/links',
completion: '/Users/rsc/.local/share/bower/completion',
registry: '/Users/rsc/.cache/bower/registry',
empty: '/Users/rsc/.local/share/bower/empty' },
interactive: false,
argv: { remain: [], cooked: [], original: [] } }

33
deprecated/bower-api.md Normal file
View File

@ -0,0 +1,33 @@
---
title: Bower API
category: JavaScript libraries
layout: 2017/sheet
---
```js
require('bower').config
```
```js
{ cwd: '/Users/rsc',
directory: 'bower_components',
registry:
{ search: [ 'https://bower.herokuapp.com' ],
register: 'https://bower.herokuapp.com',
publish: 'https://bower.herokuapp.com' },
shorthandResolver: 'git://github.com/{{owner}}/{{package}}.git',
tmp: '/var/folders/5y/190gjd_j2c5bfkn563dk2xdr0000gn/T/rsc/bower',
timeout: 30000,
ca: { search: [] },
strictSsl: true,
userAgent: 'node/v0.10.33 darwin x64',
color: true,
storage:
{ packages: '/Users/rsc/.cache/bower/packages',
links: '/Users/rsc/.local/share/bower/links',
completion: '/Users/rsc/.local/share/bower/completion',
registry: '/Users/rsc/.cache/bower/registry',
empty: '/Users/rsc/.local/share/bower/empty' },
interactive: false,
argv: { remain: [], cooked: [], original: [] } }
```