Browse Source

Added package and Docker scripts

master
David Ludwig 3 years ago
parent
commit
8aab3ac013
3 changed files with 26 additions and 0 deletions
  1. +9
    -0
      docker/scripts/export_builds.sh
  2. +9
    -0
      docker/scripts/export_deps.sh
  3. +8
    -0
      package.json

+ 9
- 0
docker/scripts/export_builds.sh View File

@ -0,0 +1,9 @@
#!/bin/sh
# Create the exported directory
mkdir -p build
# Locate services/packages and grab only the built files + package.json
for file in $(find . -regex '.\/\(services\|packages\)\/.*\/\(dist\|lib\)'); do
cp --parents -R $file build;
done

+ 9
- 0
docker/scripts/export_deps.sh View File

@ -0,0 +1,9 @@
#!/bin/sh
# Create the exported directory
mkdir -p build
# Locate services/packages and grab only the built files + package.json
for file in $(find . -regex '.\/\(services\|packages\)\/.*\/\(package.json\|node_modules\)'); do
cp --parents -R $file build;
done

+ 8
- 0
package.json View File

@ -5,6 +5,14 @@
"repository": "ssh://git@git.dlii.tech:222/Autoplex/autoplex.git", "repository": "ssh://git@git.dlii.tech:222/Autoplex/autoplex.git",
"author": "David Ludwig <davidludwigii@gmail.com>", "author": "David Ludwig <davidludwigii@gmail.com>",
"license": "MIT", "license": "MIT",
"scripts": {
"build": "lerna run build",
"build:packages": "lerna run build --scope=@ldt/package-*",
"build:services": "lerna run build --scope=@ldt/service-*",
"export": "rimraf ./build && yarn run export:deps && yarn run export:builds",
"export:deps": "/bin/sh ./docker/scripts/export_deps.sh",
"export:builds": "/bin/sh ./docker/scripts/export_builds.sh"
},
"devDependencies": { "devDependencies": {
"@types/chai": "^4.3.0", "@types/chai": "^4.3.0",
"@types/mocha": "^9.1.0", "@types/mocha": "^9.1.0",


Loading…
Cancel
Save