Comments (4)
I have to concern all of workflow of development of ChromeApps and compatibility of yeoman workflow of other generators. I think that using vulcanize is make little bit conflict with current workflow. I want to make it so nicely but... It might be a solution that make other workflow via sub-generator yo chromeapp:polymer
but I'd like to keep in yeoman basic workflow. If Chrome supports HTML Imports in natively We don't have to use vulcanized(am I right?)
If we support new workflow? new directory structures is might be:
app-root\
\src\
\debug\ debug version files, vulcanized, compiled, not minified and optimized
\release\ release version files vulcanized, compiled, minified and optimized.
....
User must be build before load a ChromeApps and has changed. we can watch src path to build automatically by monitor task.
Here is my suggestion, If we have to use vulcanize so workflow has been changed? We can make the generator to must be use Polymer. Polymer is default to make ChromeApps. the generator provides a few default project like a Polymer samples when project created. It seems like that create a OS/Android Project on their IDE
Here is sample:
yo chromeapp
Choose a template for your new project:
- Master - Detail Application
- Single view Application
- Tabbed Application
from generator-chromeapp.
"If Chrome supports HTML Imports in natively We don't have to use vulcanized(am I right?)"
I don't think that's correct. The issue is the CSP imposed by chrome on packaged apps - it restricts the inline script (and style?) that is used in so many of the examples, eg my-element.html :
<link rel="import" href="/components/polymer/polymer.html">
<!-- could be many imports, depending on what elements are used as part of this element -->
<polymer-element name="my-element">
<template>
<!-- style element -->
<style>...</style>
<!-- html elements defining element -->
</template>
<script>
Polymer('proto-element', {
ready: function() {
//...
}
});
</script>
</polymer-element>
The vulcanize tool extracts the <script> into a separate file.
It would be nice to get an additional build step in there, not only for things like vulcanize, but also any of the other pre-processors; but I can see how it presents a problem.
The problem with the leaving it up to the user to strip out <script>
into a separate file is that the pre-built polymer elements (bower install Polymer/core-elements
, for example) use these inline scripts.
I imagine it is only a simple use of polymer (eg where you use polymer to encapsulate your own elements) that relying on the dev to separate <script>
into a separate file would work - anything more than simple and there needs to be vulcanize step.
Max.
[0] http://www.polymer-project.org/resources/faq.html#csp
from generator-chromeapp.
You're right. we should be used vulcanize with csp options to extracts scripts
from generator-chromeapp.
Close this issue. I will use PSK for this #59
from generator-chromeapp.
Related Issues (20)
- Grunt (bowerInstall) fails to download bower components HOT 3
- grunt test fails due to not downloaded bower components in test folder HOT 3
- debug target doesn't update page on chromeos+crouton HOT 4
- Grunt does not launch app in Chrome App container HOT 1
- Failed to load resource: net::ERR_FILE_NOT_FOUND background.js HOT 2
- cannot found a 'manifest.json' in chrome-apps-samples
- Remove unless postfix 'dev'
- Change intent 4 to 2
- Port conflict problems with grunt connect HOT 4
- chromeapp:samples "Client ID is below specific application key" HOT 4
- Filter google-chrome samples
- investigate errors on testing Travis CI HOT 5
- Applying Polymer, gulp and cca HOT 7
- Cannot find module '../manifest' HOT 1
- Drop CoffeeScript in favor of ES6 (Babel) HOT 5
- Using PSK as default application HOT 9
- `grunt debug` doesn't update output files HOT 3
- npm error: [email protected] requires a peer of generator-mocha@>=0.1.6 but none was installed HOT 5
- NPM issue with installing the generator HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from generator-chromeapp.