forked from geo-frontend/nlmaps
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a working build-all script and nec. config in each package
- Loading branch information
Showing
28 changed files
with
10,800 additions
and
1,915 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const { exec } = require('child_process'); | ||
|
||
//sanity check for process.argv[2]? | ||
let pkgs = ['nlmaps-leaflet', 'nlmaps-openlayers', 'nlmaps-googlemaps', 'nlmaps']; | ||
for (let i = 0; i < pkgs.length; i++) { | ||
let pkg = pkgs[i]; | ||
let bundleName = `${pkg}.iife.js`; | ||
exec(`rollup -c config/rollup.cjs.js && rollup -c config/rollup.es.js && rollup -c config/rollup.iife.js && cp build/${bundleName} ../../dist/`, {cwd: `./packages/${pkg}`}, (error, stdout, stderr) => { | ||
if (error) { | ||
console.error(`exec error: ${error}`); | ||
return; | ||
} | ||
console.log(`stdout: ${stdout}`); | ||
console.log(`stderr: ${stderr}`); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.