Include the full build in the ol package
This commit is contained in:
@@ -71,9 +71,9 @@ echo "Building API docs for ${version}"
|
||||
npm run apidoc
|
||||
mv build/apidoc ${build}/en/${version}/
|
||||
|
||||
echo "Building the legacy build for ${version}"
|
||||
npm run build-legacy
|
||||
mv build/legacy ${build}/en/${version}/
|
||||
echo "Building the package ${version}"
|
||||
npm run build-package
|
||||
mv build/ol ${build}/en/${version}/
|
||||
|
||||
if [[ "${latest}" == "${version}" ]] ; then
|
||||
echo "Copying to en/latest"
|
||||
@@ -84,7 +84,7 @@ if [[ "${latest}" == "${version}" ]] ; then
|
||||
zip -r ${OLDPWD}/build/${version}-site.zip . -x "en/${version}/*"
|
||||
popd
|
||||
|
||||
pushd ${build}/en/${version}/legacy
|
||||
zip -r ${OLDPWD}/build/${version}-legacy.zip .
|
||||
pushd ${build}/en/${version}/ol
|
||||
zip -r ${OLDPWD}/build/${version}-package.zip .
|
||||
popd
|
||||
fi
|
||||
|
||||
@@ -5,6 +5,8 @@ import {fileURLToPath} from 'url';
|
||||
|
||||
const baseDir = dirname(fileURLToPath(import.meta.url));
|
||||
const buildDir = path.resolve(baseDir, '../build/ol');
|
||||
const fullBuildSource = path.resolve(baseDir, '../build/full/ol.js');
|
||||
const fullBuildDest = path.join(buildDir, 'dist/index.js');
|
||||
|
||||
async function main() {
|
||||
const pkg = await fse.readJSON(path.resolve(baseDir, '../package.json'));
|
||||
@@ -37,6 +39,9 @@ async function main() {
|
||||
path.resolve(baseDir, '../LICENSE.md'),
|
||||
path.join(buildDir, 'LICENSE.md')
|
||||
);
|
||||
|
||||
await fse.ensureDir(dirname(fullBuildDest));
|
||||
await fse.copyFile(fullBuildSource, fullBuildDest);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user