|
@@ -96,7 +96,7 @@ parts:
|
|
- npm
|
|
- npm
|
|
- curl
|
|
- curl
|
|
- execstack
|
|
- execstack
|
|
- prepare: |
|
|
|
|
|
|
+ override-build: |
|
|
echo "Cleaning environment first"
|
|
echo "Cleaning environment first"
|
|
rm -rf ~/.meteor ~/.npm /usr/local/lib/node_modules
|
|
rm -rf ~/.meteor ~/.npm /usr/local/lib/node_modules
|
|
# Node Fibers 100% CPU usage issue:
|
|
# Node Fibers 100% CPU usage issue:
|
|
@@ -133,7 +133,6 @@ parts:
|
|
git clone --depth 1 -b master https://github.com/meteor-useraccounts/core.git meteor-useraccounts-core
|
|
git clone --depth 1 -b master https://github.com/meteor-useraccounts/core.git meteor-useraccounts-core
|
|
sed -i 's/api\.versionsFrom/\/\/api.versionsFrom/' meteor-useraccounts-core/package.js
|
|
sed -i 's/api\.versionsFrom/\/\/api.versionsFrom/' meteor-useraccounts-core/package.js
|
|
cd ..
|
|
cd ..
|
|
- build: |
|
|
|
|
rm -rf package-lock.json .build
|
|
rm -rf package-lock.json .build
|
|
meteor add standard-minifier-js --allow-superuser
|
|
meteor add standard-minifier-js --allow-superuser
|
|
meteor npm install --allow-superuser
|
|
meteor npm install --allow-superuser
|
|
@@ -145,7 +144,6 @@ parts:
|
|
cd ../../../../
|
|
cd ../../../../
|
|
npm install
|
|
npm install
|
|
meteor npm install --save bcrypt
|
|
meteor npm install --save bcrypt
|
|
- install: |
|
|
|
|
cp -r .build/bundle/* $SNAPCRAFT_PART_INSTALL/
|
|
cp -r .build/bundle/* $SNAPCRAFT_PART_INSTALL/
|
|
cp .build/bundle/.node_version.txt $SNAPCRAFT_PART_INSTALL/
|
|
cp .build/bundle/.node_version.txt $SNAPCRAFT_PART_INSTALL/
|
|
rm $SNAPCRAFT_PART_INSTALL/lib/node_modules/wekan
|
|
rm $SNAPCRAFT_PART_INSTALL/lib/node_modules/wekan
|