jaspero / cli Goto Github PK
View Code? Open in Web Editor NEWCLI Tool for JMS
Home Page: https://github.com/Jaspero/jms
CLI Tool for JMS
Home Page: https://github.com/Jaspero/jms
jaspero jms init
let's put a step in where we ask the user to enable the IAM Service Account Credentials API.Cloud Datastore Import Export Admin
role. We could maybe do this with the cli as well. https://github.com/Jaspero/jms/wiki/Common-Tasks#custom-services-for-modulesWhen creating a static or blog app from jms init
we should also either automatically configure a new firebase site (if possible through the cli) called [project-id]-web
or we should ask the user to configure it before moving forward.
When setting up a new jms project let's ask the user to make basic theme adjustments. The six things that come to mind.
We need to ask for creating an initial user. This needs to happen at the very last step after function deployment so that all the right things trigger.
This is particularly useful because of how we have automated deployment configured to only trigger functions for files that changed initial deployment doesn't trigger functions and this has to happen manually every time
When setting up blog or static with jms init
we need instruct the user to set up github personal access token and ask for it. Then we need to add it to firebase config under ghtoken
.
Upon successful execution of setup (Step Run Setup script?
), prompt once again with Do you want to run initial deploy of Firebase Functions?
.
If true, using fs
enter directory {projectName}/functions
and run:
npm i
npm run deploy
When running jms init
we should change the title of the app in index.html
We should create a FIREBASE_TOKEN
repository secret when running jms init
. Additionally if it's static or blog we should also create a SERVICE_ACCOUNT
.
https://docs.github.com/en/rest/actions/secrets#create-or-update-a-repository-secret
In jms init
we should replace all of the jms references in package.json
with the projects references.
Additionally we should ask if releases are necessary (default to no) and remove all of that if it isn't needed.
Error: HTTP Error: 400, Billing account for project 'projectId' is not found. Billing must be enabled for activation of service(s) 'cloudbuild.googleapis.com,containerregistry.googleapis.com' to proceed.
We don't currently replace dynamic-collections.const.ts
when a new flavor/blog
is initiated
jaspero jms generate module
With predefined templates like:
cool but not too useful (more for docs):
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.