A Javascript library of functions used to manage Data Positioning repositories.
npm install --save-dev @datapos-dev-operations
The following packages are included in the production release. Please refer to 'package.json' and 'LICENSES.json' for version and license details.
Name | References |
---|---|
dotenv | GitHub NPM |
The 'scriptHelpers.js' file exports the following helper functions.
Name | Notes |
---|---|
buildConfig | |
buildPublicDirectoryIndex | |
bumpVersion | |
clearDirectory | |
compilePresenter | |
syncWithGitHub | |
uploadPlugin |
The following list details the repository management commands implementation by this project. For more details, please refer to the scripts section of the 'package.json' file in this project.
Name | Key Code | Notes |
---|---|---|
audit | alt+ctrl+shift+a | Use npm audit to audit the project's dependencies for known security vulnerabilities. |
build | alt+ctrl+shift+b | NOT implemented. The JavaScript is compatible with the latest ECMA version. |
bumpVersion | ||
check | alt+ctrl+shift+c | Use npx npm-check-updates and npm outdated to list the dependencies in the project that are outdated. They return different results. |
document | alt+ctrl+shift+d | Use npm-license-crawler to identify the licenses of the project's direct production dependencies. |
format | alt+ctrl+shift+f | Use prettier to format the code. |
lint | alt+ctrl+shift+l | Use eslint to check the code for potential errors and enforces coding styles. |
publishToNPM | alt+ctrl+shift+n | Use npm publish to publish the package to the npm registry. This action will publish the last synchronised version. Use the command line command 'npm publish' when publishing for the first time. |
release | alt+ctrl+shift+r | Synchronise the local repository with the main GitHub repository and publish the package to the npm registry. |
syncWithGitHub | alt+ctrl+shift+s | Synchronise the local repository with the main GitHub repository. |
test | alt+ctrl+shift+l | NOT implemented. |
updateDependencies | alt+ctrl+shift+l | NOT implemented. |
Set CORS Policy on Firebase Storage Bucket (No-longer publishing to Firebase Storage)
See: https://firebase.google.com/docs/storage/web/download-files#cors_configuration See: https://stackoverflow.com/questions/37760695/firebase-storage-and-access-control-allow-origin/37765371
gsutil cors set cors.json gs://datapos-prod.appspot.com
To list:
gsutil cors get gs://datapos-prod.appspot.com