Compare commits

..

4 Commits

7 changed files with 16 additions and 10 deletions

4
app/package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "mcopy-app",
"version": "1.7.1",
"version": "1.7.5",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "mcopy-app",
"version": "1.7.1",
"version": "1.7.2",
"hasInstallScript": true,
"license": "MIT",
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "mcopy-app",
"version": "1.7.1",
"version": "1.7.5",
"description": "GUI for the mcopy small gauge film optical printer platform",
"main": "main.js",
"scripts": {

View File

@ -1,5 +1,5 @@
{
"version": "1.7.1",
"version": "1.7.5",
"ext_port": 1111,
"profiles": {
"mcopy": {
@ -185,8 +185,8 @@
"camera_capper_projectors_identifier": "0",
"capper_on": "A",
"capper_off": "B",
"takeup_forward" : "D",
"takeup_backward" : "E"
"takeup_forward": "D",
"takeup_backward": "E"
}
}
}

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "mcopy",
"version": "1.7.1",
"version": "1.7.5",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "mcopy",
"version": "1.7.1",
"version": "1.7.5",
"license": "MIT",
"dependencies": {
"arduino": "file:app/lib/arduino",

View File

@ -1,6 +1,6 @@
{
"name": "mcopy",
"version": "1.7.1",
"version": "1.7.4",
"description": "Small gauge film optical printer platform",
"main": "build.js",
"directories": {

3
scripts/pre_commit.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
npm run patch

View File

@ -6,10 +6,13 @@ npm version --no-git-tag-version ${1}
version=$(jq -r '.version' ./package.json)
echo "VERSION: $version"
declare -a fileArr=("./data/cfg.json" "./app/package.json")
fit add ./package.json
declare -a fileArr=("./package-lock.json" "./data/cfg.json" "./app/package.json" "./app/package-lock.json")
for i in "${fileArr[@]}"
do
tmp=$(mktemp)
VERSION="$version" jq '.version = env.VERSION' "$i" > "$tmp" && mv "$tmp" "$i"
git add "$i"
done