-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b9feac
commit ab1fc58
Showing
5 changed files
with
9,854 additions
and
2,641 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: CLI npm publish | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
cli: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./cli | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm ci | ||
- run: npm run build | ||
- run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
{ | ||
"commands": { | ||
"clone": { | ||
"aliases": [], | ||
"args": { | ||
"componentName": { | ||
"description": "(required) The name of the component in the Jewl Component Library", | ||
"name": "componentName", | ||
"required": true | ||
}, | ||
"newName": { | ||
"description": "The name of the newly created component. Defaults to COMPONENTNAME", | ||
"name": "newName", | ||
"required": false | ||
} | ||
}, | ||
"description": "Clone components from the Jewl Component Library to your local project", | ||
"examples": [ | ||
"$ jewl clone Header", | ||
"$ jewl clone Header HeaderLarge", | ||
"$ jewl clone NotFound NotFoundPage --container", | ||
"$ jewl clone Base BasePage --layout" | ||
], | ||
"flags": { | ||
"container": { | ||
"name": "container", | ||
"allowNo": false, | ||
"type": "boolean" | ||
}, | ||
"help": { | ||
"description": "Show CLI help.", | ||
"name": "help", | ||
"allowNo": false, | ||
"type": "boolean" | ||
}, | ||
"layout": { | ||
"name": "layout", | ||
"allowNo": false, | ||
"type": "boolean" | ||
} | ||
}, | ||
"hasDynamicHelp": false, | ||
"hiddenAliases": [], | ||
"id": "clone", | ||
"pluginAlias": "@frojdagency/jewl-cli", | ||
"pluginName": "@frojdagency/jewl-cli", | ||
"pluginType": "core", | ||
"strict": true, | ||
"enableJsonFlag": false, | ||
"isESM": false, | ||
"relativePath": [ | ||
"dist", | ||
"commands", | ||
"clone.js" | ||
] | ||
}, | ||
"init": { | ||
"aliases": [], | ||
"args": {}, | ||
"description": "Initialize or update settings for your Jewl project. Creates a config file in your current working directory. If file already exists, this command overwrites the properties changed in the interactive cli interface", | ||
"examples": [ | ||
"$ jewl-cli init" | ||
], | ||
"flags": {}, | ||
"hasDynamicHelp": false, | ||
"hiddenAliases": [], | ||
"id": "init", | ||
"pluginAlias": "@frojdagency/jewl-cli", | ||
"pluginName": "@frojdagency/jewl-cli", | ||
"pluginType": "core", | ||
"strict": true, | ||
"enableJsonFlag": false, | ||
"isESM": false, | ||
"relativePath": [ | ||
"dist", | ||
"commands", | ||
"init.js" | ||
] | ||
}, | ||
"list": { | ||
"aliases": [], | ||
"args": {}, | ||
"description": "Lists available components in the Jewl Component Library", | ||
"examples": [ | ||
"$ jewl list" | ||
], | ||
"flags": {}, | ||
"hasDynamicHelp": false, | ||
"hiddenAliases": [], | ||
"id": "list", | ||
"pluginAlias": "@frojdagency/jewl-cli", | ||
"pluginName": "@frojdagency/jewl-cli", | ||
"pluginType": "core", | ||
"strict": true, | ||
"enableJsonFlag": false, | ||
"isESM": false, | ||
"relativePath": [ | ||
"dist", | ||
"commands", | ||
"list.js" | ||
] | ||
}, | ||
"update": { | ||
"aliases": [], | ||
"args": {}, | ||
"description": "Sync the latest changes from the Jewl Component Library", | ||
"examples": [ | ||
"$ jewl-cli update" | ||
], | ||
"flags": {}, | ||
"hasDynamicHelp": false, | ||
"hiddenAliases": [], | ||
"id": "update", | ||
"pluginAlias": "@frojdagency/jewl-cli", | ||
"pluginName": "@frojdagency/jewl-cli", | ||
"pluginType": "core", | ||
"strict": true, | ||
"enableJsonFlag": false, | ||
"isESM": false, | ||
"relativePath": [ | ||
"dist", | ||
"commands", | ||
"update.js" | ||
] | ||
} | ||
}, | ||
"version": "0.0.5" | ||
} |
Oops, something went wrong.