Install Cloud9 first as [username]
$ su - [username]
$ wget https://github.com/gbraad/ansible-playbooks/raw/master/playbooks/install-c9sdk.yml
$ ansible-playbook install-c9sdk.yml
| { | |
| "completions": | |
| [ | |
| { "trigger": "a", "contents": "<a href=\"$1\">$0</a>" }, | |
| { "trigger": "abbr", "contents": "<abbr>$0</abbr>" }, | |
| { "trigger": "acronym", "contents": "<acronym>$0</acronym>" }, | |
| { "trigger": "cr-closeTab", "contents": "appAPI.tabs.closeTab(tabInfo.tabId);" }, | |
| { "trigger": "cr-createTab", "contents": "appAPI.tabs.create('${1:http://www.example.com}');" }, |
| [ | |
| { | |
| "keys": ["alt+m"], | |
| "command": "markdown_preview", | |
| "args": | |
| { | |
| "target": "browser", | |
| "parser":"markdown" | |
| } | |
| }, |
| const jsdocRegex = /\/\*\*\s*\n([^*]*(\*[^/])?)*\*\//g; | |
| const str4 = '/**\n * Basic accordion component\n * @render react\n * @example\n **/'; | |
| str4.match(jsdocRegex); |
| function* numbers() { | |
| let index = 1; | |
| while(true) { | |
| yield index; | |
| index = index + 1; | |
| if (index > 10) { | |
| break; | |
| } | |
| } | |
| } |
| scope=$1 | |
| if [ -z "$scope" ] | |
| then | |
| echo "please provide scope" | |
| else | |
| components=$(bit ls ${scope} -j | jq -r '.[].id' | sed 's/\[Deprecated]//g') | |
| num_components=$(echo "$components" | wc -w | xargs) | |
| echo "found $num_components in scope $scope" | |
| bit import $components | |
| fi |
| const COMPONENT_ORIGINS = { | |
| IMPORTED: 'IMPORTED', | |
| AUTHORED: 'AUTHORED', | |
| NESTED: 'NESTED' // which is a nested dependency | |
| }; | |
| ComponentOrigin = $Keys<typeof COMPONENT_ORIGINS>; | |
| type PathOsBased = string; // OS based format. On Windows it's Windows format, on Linux it's Linux format. | |
| type PathOrDSL = PathOsBased | string; // can be a path or a DSL, e.g: tests/{PARENT}/{FILE_NAME} | |
| type Warnings = { |
| //IMPORTANT - install this before: npm i child-process-promise --save-dev | |
| /* | |
| put this in your package.json script: | |
| "install-collection": "node install-collection.js" | |
| npm run install-collection <user>.<collection> | |
| */ | |
| const exec = require('child-process-promise').exec; | |
| const args = process.argv; | |
| const remote = args[2]; |
| const { GraphQLClient, gql } = require('graphql-request'); | |
| const scopes = ['your-scopes']; | |
| const uri = `https://symphony.bit.dev/graphql`; | |
| const token = 'your-token'; | |
| const graphQLClient = new GraphQLClient(uri, { | |
| headers: { | |
| authorization: `Bearer ${token}` | |
| } | |
| }); | |
| const deleteScopeQuery = gql` |