2.2.10 • Published 5 years ago
swint-builder-polymer v2.2.10
swint-builder-polymer
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 usesrc
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">
.
2.2.10
5 years ago
2.2.9
6 years ago
2.2.8
7 years ago
2.2.7
7 years ago
2.2.6
7 years ago
2.2.5
7 years ago
2.2.4
7 years ago
2.2.3
7 years ago
2.2.1
7 years ago
2.2.0
7 years ago
2.1.3
8 years ago
2.1.2
8 years ago
2.1.1
8 years ago
2.1.0
8 years ago
2.0.0
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago
0.1.5
8 years ago
0.1.4
8 years ago
0.1.3
8 years ago
0.1.2
9 years ago
0.1.1
9 years ago
0.1.0
9 years ago