2.2.10 • Published 6 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
6 years ago
2.2.9
8 years ago
2.2.8
8 years ago
2.2.7
8 years ago
2.2.6
8 years ago
2.2.5
8 years ago
2.2.4
8 years ago
2.2.3
8 years ago
2.2.1
9 years ago
2.2.0
9 years ago
2.1.3
9 years ago
2.1.2
9 years ago
2.1.1
9 years ago
2.1.0
9 years ago
2.0.0
10 years ago
1.0.1
10 years ago
1.0.0
10 years ago
0.1.5
10 years ago
0.1.4
10 years ago
0.1.3
10 years ago
0.1.2
10 years ago
0.1.1
10 years ago
0.1.0
10 years ago