├── readme.rst ├── rename.json ├── root ├── Gruntfile.js ├── _gitignore ├── auth.json ├── license.txt ├── package.json ├── project.json ├── src │ ├── component │ │ ├── _template.html │ │ ├── component.js │ │ └── component.less │ └── index.html └── tasks │ ├── build.js │ ├── bundle.js │ ├── connect.js │ ├── lib │ ├── browserify-less.js │ └── browserify-template.js │ ├── publish.js │ └── watch.js └── template.js /readme.rst: -------------------------------------------------------------------------------- 1 | Seattle Times Component Template 2 | ================================ 3 | 4 | (or, The Poor Journalist's Polymer) 5 | ----------------------------------- 6 | 7 | This project is a scaffolding for `grunt-init `__ intended to smooth the process of creating reusable web components. It provides a basic setup process for bundling custom element definitions, along with their templates and styles, into a single .js file for easy use. 8 | 9 | Since these components are meant to be used with IE9 and up with a very small footprint, they do not use all the features of the Web Components "spec," and they do not use Polymer's platform shim. Instead, the following libraries/techniques are used: 10 | 11 | * A LESS plugin for RequireJS packages styles with the component, and automatically adds them on first load, instead of HTML imports 12 | * `doT.js templates `__ are pre-compiled and packaged through a second AMD plugin, instead of using ``