As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
configdocs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public - Sep 07, 2020 update docs for
npm version
| const JSZip = require('jszip') | |
| const { parseBuffer } = require('bplist-parser') | |
| const { isObject, each, find } = require('lodash') | |
| const parseArchivedValue = value => { | |
| return parseBuffer(new Buffer(value, 'base64')) | |
| } | |
| const parseArchivedString = obj => { | |
| const { $objects } = parseArchivedValue( |
| import React, { PropTypes } from 'react'; | |
| import styled from 'styled-components' | |
| const Wrapper = styled.div` | |
| // styles here that used to be for .test | |
| ` | |
| const Label = styled.label` | |
| // label styles here | |
| ` |
| const functions = require('firebase-functions'); | |
| const gcs = require('@google-cloud/storage')(); | |
| const sharp = require('sharp') | |
| const _ = require('lodash'); | |
| const path = require('path'); | |
| const os = require('os'); | |
| exports.generateThumbnail = functions.storage.object('uploads/{imageId}').onChange(event => { | |
| const object = event.data; // The Storage object. |
| var async = require('async'); | |
| var Product = require('../model/Product'); | |
| var Category = require('../model/Category'); | |
| var Attribute = require('../model/Attributes'); | |
| // bad idea | |
| exports.index = function() { | |
| Product.find(function(err, products) { | |
| Category.find(function(err, categories) { | |
| Attribute.find(function(err, attributes) { |
| config(['$routeProvider', function ($routeProvider) { | |
| $routeProvider.when('/dash', {templateUrl: 'partials/dash.html', controller: 'DashCtrl', requireLogin: true}); | |
| $routeProvider.when('/user/list', {templateUrl: 'partials/user.list.html', controller: 'UserListCtrl', requireLogin: true}); | |
| $routeProvider.when('/user/new', {templateUrl: 'partials/user.form.html', controller: 'UserNewCtrl', requireLogin: true}); | |
| $routeProvider.when('/user/edit', {templateUrl: 'partials/user.form.html', controller: 'UserEditCtrl', requireLogin: true}); | |
| $routeProvider.when('/user/login', {templateUrl: 'partials/user.login.form.html', controller: 'UserLoginFormCtrl', requireLogin: false}); | |
| $routeProvider.otherwise({redirectTo: '/dash'}); | |
| }]).run(function ($rootScope, $location, Services, Enviroment) { | |
| { | |
| "estados": [ | |
| { | |
| "sigla": "AC", | |
| "nome": "Acre", | |
| "cidades": [ | |
| "Acrelândia", | |
| "Assis Brasil", | |
| "Brasiléia", | |
| "Bujari", |