diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..cb6d2aec --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,12 @@ +{ + "name": "freyr-js-dev", + "image": "mcr.microsoft.com/devcontainers/javascript-node", + "features": { + "ghcr.io/devcontainers/features/docker-in-docker:2": {} + }, + "postCreateCommand": { + "yarn install": "yarn global add freyr", + "install build tools": "sudo apt-get update && sudo apt install cmake -y" + }, + "postStartCommand": "git clone --branch 20210715.151551.e7ad03a --depth 1 https://github.com/wez/atomicparsley $HOME/atomicparsley && cmake -S $HOME/atomicparsley -B $HOME/atomicparsley && cmake --build $HOME/atomicparsley --config Release && sudo ln -s $HOME/atomicparsley/AtomicParsley /usr/bin/AtomicParsley" +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..083fbd94 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,53 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Spotify - Track", + "request": "launch", + "runtimeArgs": [ + "test", + "spotify.track" + ], + "runtimeExecutable": "npm", + "skipFiles": [ + "/**" + ], + "type": "node", + "outputCapture": "std", + "preLaunchTask": "npm: install" + }, + { + "name": "Deezer - Artist", + "request": "launch", + "runtimeArgs": [ + "test", + "deezer.artist" + ], + "runtimeExecutable": "npm", + "skipFiles": [ + "/**" + ], + "type": "node", + "outputCapture": "std", + "preLaunchTask": "npm: install" + }, + { + "name": "Apple Music - Album", + "request": "launch", + "runtimeArgs": [ + "test", + "apple_music.album" + ], + "runtimeExecutable": "npm", + "skipFiles": [ + "/**" + ], + "type": "node", + "outputCapture": "std", + "preLaunchTask": "npm: install" + }, + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 00000000..e6a84b65 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,16 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "npm", + "script": "install", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [], + "label": "npm: install", + "detail": "install dependencies from package" + } + ] +}