Webframe Developer Tool
npm install webframe-devWebframe developer cli to sync platform changes with the project's source code.
1. Create .webframerc file inside your project's root folder with this content:
``json`
{
"apiKey": "
"apiSecret": "
}
2. Make sure to exclude .webframerc from git version control by adding this to .gitignore:
`gitignore`
.webframerc
3. Create webframe.config.json file with this content:
`json5`
// !IMPORTANT - remove all comment lines in the actual json file
{
"projects": [
{
"id": "projectId1",
// Directory path for saving Webframe generated code (relative to the project's root folder)
"rootDir": "./webframe",
// Monorepository package.json name
"name": "webframe",
// Optional project version number, following semantic versioning (default is "latest")
"version": "^1.0.0"
}
],
// Optional configs - below is the default
"endpoint": "//api.webframe.app",
"typescript": false
}
`shell`Sync the last published project version with the source code in the local repository
npx webframe-dev pull
`shell`Sync the latest project changes with the source code in the local repository
npx webframe-dev sync
`shell``Auto-sync the latest project changes with the source code in the local repository
npx webframe-dev sync --watch