kbsh / nuxt-firebase-blog

0 stars 1 forks source link

init command #1

Closed kbsh closed 4 years ago

kbsh commented 4 years ago

npx create-nuxt-app

$ npx create-nuxt-app ./

create-nuxt-app v2.12.0
✨  Generating Nuxt.js project in nuxt-firebase-blog
? Project name nuxt-firebase-blog
? Project description Nuxt + Firebase blog
? Author name kbsh
? Choose the package manager Npm
? Choose UI framework Vuetify.js
? Choose custom server framework None (Recommended)
? Choose Nuxt.js modules Progressive Web App (PWA) Support
? Choose linting tools ESLint
? Choose test framework Jest
? Choose rendering mode Universal (SSR)
? Choose development tools jsconfig.json (Recommended for VS Code)

Choose the package manager Npm

Choose UI framework Vuetify.js

Choose custom server framework None (Recommended)

Choose Nuxt.js modules Progressive Web App (PWA) Support

Choose linting tools ESLint

リンターはこだわりないのでシンプルに

Choose test framework Jest

テストツール。慣れてるやつ

Choose rendering mode Universal (SSR)

Choose development tools jsconfig.json (Recommended for VS Code)

よくわかってないが、VS Code使うので推奨通りに

kbsh commented 4 years ago

firebase init

$ firebase init

     ######## #### ########  ######## ########     ###     ######  ########
     ##        ##  ##     ## ##       ##     ##  ##   ##  ##       ##
     ######    ##  ########  ######   ########  #########  ######  ######
     ##        ##  ##    ##  ##       ##     ## ##     ##       ## ##
     ##       #### ##     ## ######## ########  ##     ##  ######  ########

You're about to initialize a Firebase project in this directory:

  /Users/xxxxx/dev/github.com/kbsh/nuxt-firebase-blog

? Which Firebase CLI features do you want to set up for this folder? Press Space to select features, then Enter to confirm your choice
s. Firestore: Deploy rules and create indexes for Firestore, Functions: Configure and deploy Cloud Functions, Hosting: Configure and d
eploy Firebase Hosting sites, Emulators: Set up local emulators for Firebase features

=== Project Setup

First, let's associate this project directory with a Firebase project.
You can create multiple project aliases by running firebase use --add,
but for now we'll just set up a default project.

? Please select an option: Use an existing project
? Select a default Firebase project for this directory: kbsh-vue-blog (kbsh-vue-blog)
i  Using project xxxxxx (xxxxxx)

=== Firestore Setup

Firestore Security Rules allow you to define how and when to allow
requests. You can keep these rules in your project directory
and publish them with firebase deploy.

? What file should be used for Firestore Rules? firestore.rules

Firestore indexes allow you to perform complex queries while
maintaining performance that scales with the size of the result
set. You can keep index definitions in your project directory
and publish them with firebase deploy.

? What file should be used for Firestore indexes? firestore.indexes.json

=== Functions Setup

A functions directory will be created in your project with a Node.js
package pre-configured. Functions can be deployed with firebase deploy.

? What language would you like to use to write Cloud Functions? TypeScript
? Do you want to use TSLint to catch probable bugs and enforce style? No
✔  Wrote functions/package.json
✔  Wrote functions/tsconfig.json
✔  Wrote functions/src/index.ts
✔  Wrote functions/.gitignore
? Do you want to install dependencies with npm now? Yes

> protobufjs@6.8.8 postinstall /Users/xxxxx/dev/github.com/kbsh/nuxt-firebase-blog/functions/node_modules/protobufjs
> node scripts/postinstall

npm notice created a lockfile as package-lock.json. You should commit this file.
added 264 packages from 184 contributors and audited 823 packages in 14.166s
found 0 vulnerabilities

=== Hosting Setup

Your public directory is the folder (relative to your project directory) that
will contain Hosting assets to be uploaded with firebase deploy. If you
have a build process for your assets, use your build's output directory.

? What do you want to use as your public directory? dist
? Configure as a single-page app (rewrite all urls to /index.html)? No
✔  Wrote dist/404.html
✔  Wrote dist/index.html

=== Emulators Setup
? Which Firebase emulators do you want to set up? Press Space to select emulators, then Enter to confirm your choices. Functions, Fire
store, Hosting, Pubsub
? Which port do you want to use for the functions emulator? 5001
? Which port do you want to use for the firestore emulator? 8080
? Which port do you want to use for the hosting emulator? 5000
? Which port do you want to use for the pubsub emulator? 8085
? Would you like to download the emulators now? Yes

i  Writing configuration info to firebase.json...
i  Writing project information to .firebaserc...

✔  Firebase initialization complete!

Which Firebase CLI features do you want to set up for this folder? Press Space to select features, then Enter to confirm your choices. Firestore: Deploy rules and create indexes for Firestore, Functions: Configure and deploy Cloud Functions, Hosting: Configure and deploy Firebase Hosting sites, Emulators: Set up local emulators for Firebase features

Please select an option: Use an existing project

What file should be used for Firestore Rules? firestore.rules

What file should be used for Firestore indexes? firestore.indexes.json

What language would you like to use to write Cloud Functions? TypeScript

Do you want to use TSLint to catch probable bugs and enforce style? No

Do you want to install dependencies with npm now? Yes

What do you want to use as your public directory? dist

Configure as a single-page app (rewrite all urls to /index.html)? No

Which Firebase emulators do you want to set up? Press Space to select emulators, then Enter to confirm your choices. Functions, Firestore, Hosting, Pubsub