diff --git a/.gitignore b/.gitignore index d58f498a..91ee0be7 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,34 @@ # .nfs files are created when an open file is removed but is still being accessed .nfs* +### macOS ### +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + ### Node template node_modules # Logs @@ -80,7 +108,7 @@ typings/ # User-specific stuff: .idea/**/workspace.xml .idea/**/tasks.xml -.idea/dictionaries +#.idea/dictionaries # Sensitive or high-churn files: .idea/**/dataSources/ diff --git a/.idea/dictionaries/ghetto.xml b/.idea/dictionaries/ghetto.xml new file mode 100644 index 00000000..c7afac6a --- /dev/null +++ b/.idea/dictionaries/ghetto.xml @@ -0,0 +1,47 @@ + + + + addfeature + arcgis + bingmaps + declutter + deinit + docsify + drawend + drawstart + geoloc + hidpi + imageloadend + imageloaderror + imageloadstart + jsdelivr + jsnext + mapbox + modifyend + modifystart + moveend + movestart + openstreetmap + pluggable + pointerdrag + postcompose + postrender + precompose + proj + propertychange + removefeature + rendercomplete + reprojection + singleclick + tilecache + tileloadend + tileloaderror + tileloadstart + unpkg + vershinin + vuelayers + vuep + wmts + + + \ No newline at end of file diff --git a/build/rollup.js b/build/rollup.js index 64a1addd..75a0de37 100644 --- a/build/rollup.js +++ b/build/rollup.js @@ -62,13 +62,25 @@ function getAllPackages () { globName: config.fullname, amdName: config.name, }, + { + entry: utils.resolve('src/mixin/index.js'), + jsName: 'mixin', + pkgName: 'mixin', + }, + { + entry: utils.resolve('src/ol-ext/index.js'), + jsName: 'ol-ext', + pkgName: 'ol-ext', + }, + { + entry: utils.resolve('src/rx-ext/index.js'), + jsName: 'rx-ext', + pkgName: 'rx-ext', + }, ] return Promise.all([ packagesFromPath(utils.resolve('src/component'), utils.resolve('src/component')), - packagesFromPath(utils.resolve('src/mixin'), srcPath), - packagesFromPath(utils.resolve('src/ol-ext'), srcPath), - packagesFromPath(utils.resolve('src/rx-ext'), srcPath), packagesFromPath(utils.resolve('src/util'), srcPath), ]).then(otherPackages => { return packages.concat(otherPackages.reduce((all, packages) => all.concat(packages), [])) @@ -132,8 +144,11 @@ function bundleOptions (format, package, env = 'development') { return false } // embeddable - const embeddableRegExp = /(\.\/|src\/)(install)/i - if (embeddableRegExp.test(id)) { + const embeddableRegExp = /\/(mixin|ol-ext|rx-ext)\//i + if ( + embeddableRegExp.test(parentId) && + (/^\.\//.test(id) || embeddableRegExp.test(id)) + ) { return false } // check internal component imports @@ -174,17 +189,17 @@ function bundleOptions (format, package, env = 'development') { options.output.globals = (id) => { if (id === 'vue') return 'Vue' - if (ol[id] != null) { - return ol[id] - } + // if (ol[id] != null) { + // return ol[id] + // } } options.input.external = (id, parent, resolved) => { if (['vue'].includes(id)) return true - if (!resolved && /^ol\/.+/.test(id)) { - ol[id] = id.replace(/\//g, '.') - return true - } + // if (!resolved && /^ol\/.+/.test(id)) { + // ol[id] = id.replace(/\//g, '.') + // return true + // } return false } diff --git a/docs/home.md b/docs/home.md index aa367f52..e47c6e62 100644 --- a/docs/home.md +++ b/docs/home.md @@ -7,10 +7,10 @@ [![License](https://img.shields.io/github/license/ghettovoice/vuelayers.svg)](https://github.com/ghettovoice/vuelayers/blob/master/LICENSE) + frameborder="0" scrolling="0" class="github-button vld-github-btn" width="140px" height="30px"> + frameborder="0" scrolling="0" class="github-button vld-github-btn" width="140px" height="30px"> ## Overview diff --git a/docs/index.html b/docs/index.html index 7a7b0d55..8cb07597 100644 --- a/docs/index.html +++ b/docs/index.html @@ -22,7 +22,7 @@ - +