Skip to content

Commit

Permalink
feat(syntax): grammer support for Aurelia attributes and elements
Browse files Browse the repository at this point in the history
* feat(syntax): initial cleanup & adding test cases

* fix(bindable): scope bindable attribute as bindable.attribute.html.au

* fix(containerless): scope containerless as containerless.attribute.html.au

* test(containerless): extend test cases

* refactor(containerless): move test to seperate file

* refactor(view-model): move test to seperate file

* refactor(router-view): move test to seperate file

* refactor(compose): move test to seperate file

* refactor(repeat.for): move test to seperate file

* refactor(model): move test to seperate file

* refactor(view): move test to seperate file

* refactor(controller): move test to seperate file

* refactor(if): move test to seperate file

* refactor(if): move over rest of test cases

* refactor(show): move test to seperate file

* refactor(string interpolation): move test to seperate file

* refactor(bindable): move test to seperate file

* refactor(generic html): move test to seperate file

* fix(ref): tokenizing ref attribute with ref.attribute.html.au instead of ref.html.au

* fix(databindings): tokenizing databindigs attributes with databinding.attribute.html.au instead of databinding.html.au

* fix(invoke): tokenizing invoking attributes with invoke.attribute.html.au instead of invoke.html.au

* fix(compose): tokenize compose with compose.element.html.au instead of compose.html.au

* fix(router-view): tokenize begin and end as meta

* fix(tag.other): shift order of compose & router-view and remove not check on tag other

* fix(compose): tokenize begin and end as meta

* feat(theme): update themes to match the element & attribute html.au scopes

* refactor(test): fixup test names

* style(test): tslint
  • Loading branch information
Erik Lieben authored Oct 2, 2016
1 parent 9ece36a commit 68de504
Show file tree
Hide file tree
Showing 27 changed files with 2,293 additions and 73 deletions.
172 changes: 102 additions & 70 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,70 +1,102 @@
{
"name": "aurelia-vscode-extension",
"version": "0.1.0",
"description": "A VS Code extension for Aurelia.",
"keywords": [
"aurelia",
"vscode",
"extension"
],
"homepage": "http://aurelia.io",
"bugs": {
"url": "https://github.com/aurelia/vscode-extension/issues"
},
"license": "MIT",
"author": "",
"publisher": "Aurelia",
"repository": {
"type": "git",
"url": "https://github.com/aurelia/vscode-extension"
},
"engines": {
"vscode": "^1.4.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:extension.auNew",
"onCommand:extension.auGenerate",
"onCommand:extension.auTest",
"onCommand:extension.auBuild"
],
"main": "./dist/src/extension",
"contributes": {
"commands": [
{
"command": "extension.auNew",
"title": "au new"
},
{
"command": "extension.auGenerate",
"title": "au generate"
},
{
"command": "extension.auBuild",
"title": "au build"
},
{
"command": "extension.auTest",
"title": "au test"
}
]
},
"scripts": {
"vscode:prepublish": "node ./node_modules/vscode/bin/compile",
"compile": "node ./node_modules/vscode/bin/compile -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"lint": "node ./node_modules/tslint/lib/tslint-cli.js -c tslint.json --project tsconfig.json",
"changelog": "node ./node_modules/conventional-changelog-cli/cli.js -p angular -i doc/CHANGELOG.md -s"
},
"devDependencies": {
"conventional-changelog-cli": "^1.2.0",
"tslint": "^3.15.1",
"typescript": "^2.0.3",
"vscode": "^0.11.18"
},
"dependencies": {
"run-in-terminal": "0.0.3"
}
}
{
"name": "aurelia-vscode-extension",
"version": "0.1.0",
"description": "A VS Code extension for Aurelia.",
"keywords": [
"aurelia",
"vscode",
"extension"
],
"homepage": "http://aurelia.io",
"bugs": {
"url": "https://github.com/aurelia/vscode-extension/issues"
},
"license": "MIT",
"author": "",
"publisher": "Aurelia",
"repository": {
"type": "git",
"url": "https://github.com/aurelia/vscode-extension"
},
"engines": {
"vscode": "^1.4.0"
},
"categories": [
"Languages",
"Themes"
],
"activationEvents": [
"onLanguage:html",
"onCommand:extension.auNew",
"onCommand:extension.auGenerate",
"onCommand:extension.auTest",
"onCommand:extension.auBuild"
],
"main": "./dist/src/extension",
"contributes": {
"grammars": [
{
"language": "html",
"scopeName": "au.html",
"path": "./syntaxes/html.json"
}
],
"commands": [
{
"command": "extension.auNew",
"title": "au new"
},
{
"command": "extension.auGenerate",
"title": "au generate"
},
{
"command": "extension.auBuild",
"title": "au build"
},
{
"command": "extension.auTest",
"title": "au test"
}
],
"themes": [
{
"label": "Aurelia Dark+",
"uiTheme": "vs-dark",
"path": "./themes/dark_plus.json"
},
{
"label": "Aurelia Dark",
"uiTheme": "vs-dark",
"path": "./themes/dark_vs.json"
},
{
"label": "Aurelia Light+",
"uiTheme": "vs",
"path": "./themes/light_plus.json"
},
{
"label": "Aurelia Light",
"uiTheme": "vs",
"path": "./themes/light_vs.json"
}
]
},
"scripts": {
"vscode:prepublish": "node ./node_modules/vscode/bin/compile",
"compile": "node ./node_modules/vscode/bin/compile -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"lint": "node ./node_modules/tslint/lib/tslint-cli.js -c tslint.json --project tsconfig.json",
"changelog": "node ./node_modules/conventional-changelog-cli/cli.js -p angular -i doc/CHANGELOG.md -s"
},
"devDependencies": {
"conventional-changelog-cli": "^1.2.0",
"tslint": "^3.15.1",
"typescript": "^2.0.3",
"vscode": "^0.11.18",
"vscode-textmate": "^2.2.0"
},
"dependencies": {
"run-in-terminal": "0.0.3"
}
}
Loading

0 comments on commit 68de504

Please sign in to comment.