Skip to content

Commit

Permalink
Chrome extension: Automate manifest.json generation. Provide better i…
Browse files Browse the repository at this point in the history
…nstructions
  • Loading branch information
G. Grau committed Mar 10, 2016
1 parent 22f1a99 commit 3e981e1
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ node_modules
/.extractedApi.md
*.sublime-project
*.sublime-workspace
/chromeExtension/*.zip

# GIT extras
/lib
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ node_modules
/.extractedApi.md
*.sublime-project
*.sublime-workspace
/chromeExtension/*.zip

# NPM extras
/docs
Expand Down
3 changes: 2 additions & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
+ [ ] More tests
+ [ ] Separate wsClient listener in two: one only for WS, the other for just relaying client logs. Refactor the common parts

- [ ] Chrome extension
- [ ] Chrome extension:
+ [ ] When disconnected, send periodic pings. Check: open the Chrome extension and then navigate to a Storyboard app
+ [ ] Add setting: collapseAllNewStories. It will imply cross-state between storyReducer and settingsReducer!
- [ ] Forget logs and (closed) stories...
32 changes: 18 additions & 14 deletions chromeExtension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
{
"manifest_version": 2,

"name": "Storyboard",
"short_name": "Storyboard",
"description": "End-to-end, hierarchical, real-time, colorful stories",
"name": "Storyboard DevTools",
"short_name": "Storyboard DevTools",
"description": "Gives you access to end-to-end stories (logs) for Storyboard-equipped applications",
"author": "Guillermo Grau Panea",
"version": "0.0.1",

"content_scripts": [{
"matches": ["<all_urls>"],
"js": ["contentScript.js"],
"run_at": "document_start"
}],

"version": "0.0.3",
"content_scripts": [
{
"matches": [
"<all_urls>"
],
"js": [
"contentScript.js"
],
"run_at": "document_start"
}
],
"background": {
"scripts": ["background.js"],
"scripts": [
"background.js"
],
"persistent": false
},

"devtools_page": "devTools.html"
}
27 changes: 26 additions & 1 deletion package.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ specs =
"cross-env": "1.0.7"
"uglifyjs": "2.4.10"


#-================================================================
# ## Build package.json
#-================================================================
Expand All @@ -183,3 +182,29 @@ specs.dependencies = _sortDeps specs.dependencies
specs.devDependencies = _sortDeps specs.devDependencies
packageJson = JSON.stringify(specs, null, ' ') + '\n'
require('fs').writeFileSync "package.json", packageJson

#-================================================================
# ## Build manifest.json
#-================================================================
manifest =
manifest_version: 2

name: "Storyboard DevTools"
short_name: "Storyboard DevTools"
description: "Gives you access to end-to-end stories (logs) for Storyboard-equipped applications"
author: "Guillermo Grau Panea"
version: specs.version

content_scripts: [
matches: ["<all_urls>"]
js: ["contentScript.js"]
run_at: "document_start"
]

background:
scripts: ["background.js"]
persistent: false

devtools_page: "devTools.html"
manifestJson = JSON.stringify(manifest, null, ' ') + '\n'
require('fs').writeFileSync "chromeExtension/manifest.json", manifestJson
2 changes: 1 addition & 1 deletion src/chromeExtension/components/005-app.cjsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ App = React.createClass

renderConnecting: ->
extra = if @props.fTakingLong then \
<div>If this seems to be taking a long time, please verify your URL</div>
<div>Navigate to your Storyboard-equipped app (and log in if needed)</div>
<LargeMessage>
Connecting to Storyboard...
{extra}
Expand Down

0 comments on commit 3e981e1

Please sign in to comment.