swint-builder-polymer

2.2.10 • Public • Published

swint-builder-polymer

Greenkeeper badge Polymer web copmonent builder for Swint

Warning: This is not the final draft yet, so do not use this until its official version is launched

Installation

$ npm install --save swint-builder-polymer

Options

  • name : String, default: Project
  • inDir : String, default: path.dirname(require.main.filename)
  • imgMetaDir : String, default: path.join(path.dirname(require.main.filename), '../imgMeta')
  • outDir : String, default: path.join(path.dirname(require.main.filename), '../out')
  • variables : Object, default: {}

Usage

buildPolymer({
	name: 'Test',
	inDir: path.join(__dirname, 'elements', 'target'),
	imgMetaDir: path.join(__dirname, 'imgMeta'),
	outDir: path.join(__dirname, 'out'),
	variables: {}
}, function() {
	// Build complete
});

Disclaimer

  • You should write your code like <img source="..."> instead of <img src="..."> in order to use src attribute in HTML due to the path processing in vulcanize.
  • If you do not want this, you can either write like <link rel="import" href="path/to/img.svg">.

Package Sidebar

Install

npm i swint-builder-polymer

Weekly Downloads

16

Version

2.2.10

License

MIT

Unpacked Size

69.8 kB

Total Files

26

Last publish

Collaborators

  • knowre