зеркало из https://github.com/GoogleChrome/kino.git
9e4b68c3b2 | ||
---|---|---|
.github | ||
public | ||
src | ||
.babelrc | ||
.editorconfig | ||
.eslintrc.json | ||
.gitignore | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
ENGINEERING.md | ||
LICENSE | ||
README.md | ||
SECURITY.md | ||
firebase.json | ||
package-lock.json | ||
package.json | ||
rollup.config.js |
README.md
Please note: This app is being developed. There may be bugs, and everything is subject to change.
App Name @todo
Description @todo
Running the site locally
Start by creating a new Firebase project from the console and then setup the Firebase CLI.
Important: This project uses a local Firebase emulator, which mean you need to install the Firebase CLI globally.
npm install -g firebase-tools
Clone this repository:
git clone git@github.com:xwp/web-dev-media.git
Go to the project folder:
cd web-dev-media
Login to Firebase:
firebase login
Initialize Firebase:
firebase init
Install the dependencies:
npm install
Start the Firebase emulator:
npm start
Build process
Project uses Rollup to build the main application JS file and the Service Worker file. No transpilation is done, the tooling exists mostly just to resolve ES Modules in the Service Worker context. Usage:
npm run build
: Build the/public/js/index.js
and/public/sw.js
files.npm run watch
: Watch for changes to files in/src
and rebuild files as necessary on the fly.