If you want to use rbenv/pyenv/etc to manage versions of tools,
there's a fix.sh
script which may be what you'd like to install
dependencies.
This project uses overcommit for
quality checks. bundle exec overcommit --install
will install it.
This project uses direnv to manage environment variables used during
development. See the .envrc
file for detail.
- Run 'make' to create the bundle with webpack, or 'make start' to start webpack in watch mode.
- Go to chrome://extensions/
- Make sure 'Developer mode' is flipped on in the upper right.
- Click the 'Load unpacked' button.
- Choose the dist/chrome-extension directory
make
yarn install
(only needed once)- You should now see the workflow show up in Alfred's configuration.
- Save off the configured Asana client object in asana-base.ts#fetchClient():
const w: any = window; w.savedClient = fetchedClient;
2. Open up Extensions | Upvoter for Asana
3. Click reload icon
4. Invoke filer on something
5. Save off the client in the Chrome DevTools console before the background session expires:
```TypeScript
client = savedClient;
- You can now invoke the methods from node-asana:
stories = await client.stories.getStoriesForTask('1234);
Related backlog tasks:
- Do npm Alfred release of cookiecutter-multicli projects in CircleCI (after other tests pass)
First, run these commands:
git stash && git checkout main && git pull && make
last_released_version=$(npm version --json | jq -r '."alfred-upvoter-for-asana"')
git log v${last_released_version:?}..
update_type= # patch/minor/major
npm version ${update_type:?}
git push
git push --tags
npm publish
alfy-cleanup
Now, remove your current installation from Alfred on your machine.
Then, install the newly published version via npm:
npm install --location=global alfred-upvoter-for-asana --upgrade
Verify the version installed matches what you just published:
npm list --location=global | grep alfred-upvoter-for-asana
Then, load Alfred | Preferences | Workflows | Upvoter for Asana | right click | Export ... | (type in version from CLI output) | Export | choose this directory | Export
Once done, make a GitHub release with the exported file (do this in a new tab):
cd ../upvoter-for-asana
new_release=$(npm version --json | jq -r '."alfred-upvoter-for-asana"')
gh release create --generate-notes v${new_release:?} 'Upvoter for Asana.alfredworkflow'
Delete your current installation in Alfred again.
open 'Upvoter for Asana.alfredworkflow' | configure as prompted | Import
packal | Login if needed | Dashboard | Upvoter for Asana | Edit current | Workflow File | Remove | Choose File | (.alfredworkflow file) | Upload | Version | (update) | (scroll to bottom) | Submit
- Go through at least the screenshot generation steps of 'Initial release to Chrome Web Store'
- Note down what the existing screenshots are, including the existing
left and right sides of split screen images:
open docs/screenshot-*.png
- Plan out what additional screenshots you'd like to have in the gallery and what will be reused.
- Generate 1280x800 (or scaled up) screenshots and save as
docs/screenshot-n-raw.png
and so on - Stage the screenshot raw files in git.
- Add any annotations and save
docs/screenshot-n.paint
and so on. Open a similar.paint
from a sibling project to copy and paste the annotation text to keep to the same style. - Stage the screenshot paint files in git.
- File | Save As... | png |
docs/screenshot-n.png
(and so on) | Save - Image | Adjust Size... | Scale proportionally ☑ | Resample image ☑ | Get to 1280x800 (or just under if ratio isn't right) | OK
- Use adjust size to add transparent border until exactly as 1200x800 (don't 'Scale proportionally' or 'Resample image' this time) | OK
- Stage
screenshot-n.png
(and so on) in git. - Ensure
docs/screenshot-n.png
is scaled to 1280x800 withfile
command - Go to the form
- Workflow Name: Upvoter for Asana
- Version: (take latest version from package.json)
- Bundle ID: cc.broz.asana.upvoter-for-asana
- Short description: (take short description from README, drop mention of Alfred or Chrome Extension)
- Icon: (upload static/chrome-extension/apiology-128x128.png) | Upload
- Workflow file (upload latest release from GitHub) | Upload
- Worfklow Description: select Text format | markdown | Copy the one sentence blurb entered above, then the usage instructions (you may need to merge the Chrome and Alfred instructions)
- Alfred Forum Link | (leave empty for now)
- Github URL:
https://github.com/apiology/upvoter-for-asana
- Categories: (fill in)
- Tags: (fill in - e.g., asana)
- Applications: (fill in - probably blank)
- Webservices: (fill in - e.g. Asana)
- Packal Documentation Page: Leave blank
- Submit
- Update screenshots in
docs/
for any new features - Update README.md with new screenshots
- PR screenshot updates in
git stash && git checkout main && git pull
- Bump the version in
static/chrome-extension/manifest.json
locally. git commit -m "Bump version" static/chrome-extension/manifest.json
git push && make clean && make
- Update package.zip in developer dashboard as
apiology-cws
user. - Upload any new screenshots
- Update description to match current README.md - manually translate from markdown to text.
- Save draft
- ... | Preview
- Publish