-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename repo; rename directories; improve backup and dist scripts; add…
… Traktor desktop image
- Loading branch information
1 parent
31feb50
commit 737c454
Showing
16 changed files
with
80 additions
and
27 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "traktor-pro", | ||
"name": "control-traktor", | ||
"version": "1.2.1", | ||
"description": "A collection of settings and Max4Live devices which speed up aspects of my DJing and jamming workflows.", | ||
"description": "A collection of settings and Max4Live devices for improved control over Traktor Pro.", | ||
"main": "README.md", | ||
"engines": { | ||
"node": "18.7.0", | ||
|
@@ -12,21 +12,20 @@ | |
"email": "[email protected]" | ||
}, | ||
"scripts": { | ||
"backup": "cp ./dist/*.amxd ./src/patches", | ||
"build": "npm run backup && npm run lint && npm run compile", | ||
"backup": "./scripts/backup.sh", | ||
"build": "npm run backup && npm run lint && rm -r dist && mkdir dist && ./scripts/dist.sh", | ||
"changelog": "git log --pretty='* [%h] %s' --no-merges $(git describe --tags --abbrev=0 @^)..@ > CHANGELOG.md", | ||
"compile": "babel ./src/js/*.js -d ./dist", | ||
"postinstall": "mkdir dist && cp ./src/patches/*.amxd ./dist && cp ./src/presets/*.adg ./dist && cp ./src/sets/*.als ./dist && cp ./src/traktor/*.tsi ./dist && npm run build", | ||
"reinstall": "rm -r dist && mkdir dist && cp ./src/patches/*.amxd ./dist && cp ./src/presets/*.adg ./dist && cp ./src/sets/*.als ./dist && cp ./src/traktor/*.tsi ./dist && npm run build", | ||
"postinstall": "chmod a+x scripts/*sh && mkdir dist && npm run build", | ||
"reinstall": "rm -r dist && mkdir dist && npm run build", | ||
"lint": "eslint './src/js/*.js'", | ||
"prepare": "husky install", | ||
"release": "npm run changelog && cp ./README.md ./release && cp ./dist/* ./release", | ||
"release": "npm run build && npm run changelog && cp ./dist/* ./release", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"watch": "nodemon" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/dotherightthing/traktor-pro.git" | ||
"url": "git+https://github.com/dotherightthing/control-traktor.git" | ||
}, | ||
"keywords": [ | ||
"m4l", | ||
|
@@ -35,9 +34,9 @@ | |
"author": "", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/dotherightthing/traktor-pro/issues" | ||
"url": "https://github.com/dotherightthing/control-traktor/issues" | ||
}, | ||
"homepage": "https://github.com/dotherightthing/traktor-pro#readme", | ||
"homepage": "https://github.com/dotherightthing/control-traktor#readme", | ||
"devDependencies": { | ||
"@babel/cli": "^7.18.10", | ||
"@babel/core": "^7.19.1", | ||
|
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,23 @@ | ||
#!/bin/bash | ||
|
||
# File: ./scripts/backup.sh | ||
# Description: Backup files that are created and managed externally | ||
# | ||
# Note: | ||
# chmod a+x = Change access permissions of this file, to 'e[x]ecutable' for '[a]ll users' | ||
# | ||
# Example: | ||
# --- | ||
# chmod a+x scripts/*.sh | ||
# --- | ||
|
||
# e: exit the script if any statement returns a non-true return value | ||
# v: print shell input lines as they are read (including all comments!) | ||
set -e | ||
|
||
cd "$INIT_CWD" \ | ||
&& echo "Copying files from ./dist to ./src/patches" \ | ||
&& cp ./dist/*.amxd ./src/patches \ | ||
&& echo "Copying files from 'Library/Application Support/Loopback' to ./src/Loopback" \ | ||
&& cp ~/Library/Application\ Support/Loopback/*.plist ./src/loopback \ | ||
&& echo "Backup task complete" |
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,31 @@ | ||
#!/bin/bash | ||
|
||
# File: ./scripts/dist.sh | ||
# Description: Copy relevant files to the dist folder | ||
# | ||
# Note: | ||
# chmod a+x = Change access permissions of this file, to 'e[x]ecutable' for '[a]ll users' | ||
# | ||
# Example: | ||
# --- | ||
# chmod a+x scripts/*.sh | ||
# --- | ||
|
||
# e: exit the script if any statement returns a non-true return value | ||
# v: print shell input lines as they are read (including all comments!) | ||
set -e | ||
|
||
cd "$INIT_CWD" \ | ||
&& echo "Compiling JavaScript" \ | ||
&& babel ./src/js/*.js -d ./dist \ | ||
&& echo "Copying files from ./src/Loopback to 'Library/Application Support/Loopback'" \ | ||
&& cp ./src/loopback/*.plist ~/Library/Application\ Support/Loopback \ | ||
&& echo "Copying files from ./src to ./dist" \ | ||
&& cp ./src/patches/*.amxd ./dist \ | ||
&& cp ./src/presets/*.adg ./dist \ | ||
&& cp ./README.md ./dist \ | ||
&& cp ./src/sets/*.als ./dist \ | ||
&& cp ./src/streamdeck-xl/profiles/Traktor.streamDeckProfile ./dist \ | ||
&& cp ./src/traktor/*.png ./dist \ | ||
&& cp ./src/traktor/*.tsi ./dist \ | ||
&& echo "Dist task complete" |
Binary file not shown.
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.