Skip to content

Commit

Permalink
feat(general): updated the whole extension approach
Browse files Browse the repository at this point in the history
re #2
  • Loading branch information
ghaschel committed Nov 24, 2023
1 parent 9312f9c commit 7198095
Show file tree
Hide file tree
Showing 157 changed files with 21,010 additions and 12,297 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Please provide the maximum amount of information in order for me to be able to f

**List of installed/enabled extensions**
Provide a list of installed/enabled extensions. Also, try to pinpoint which extension might be conflicting with the current one if that's the case.
- Provide an extension list screenshot of extensions ids [e.g. `ghaschel.vscode-angular-html`]
- Provide an extension list screenshot of extensions ids [e.g. `ghaschel.vscode-angular-html-inline`]

**OS (please provide the following information):**
- OS and Version: [e.g. Windows 10/11, Ubuntu 18.04, MacOS Catalina]
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ node_modules
.hushlogin
test/externalGrammars/*.json
test/externalGrammars/*.plist
.history/*
!test/externalGrammars/source.postcss.tmLanguage.plist
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run compile-json;
npm run compile
npm test;
npx pretty-quick --staged
306 changes: 236 additions & 70 deletions README.md

Large diffs are not rendered by default.

Binary file added assets/angular-control-flow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/angular-directives.gif
Binary file not shown.
Binary file added assets/angular-directives.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/angular-html.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/angular-inline.png
Binary file not shown.
Binary file modified assets/angular-interpolations.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/angular-structural-tags.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/aria-attributes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/comments.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/custom-components.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/data-attributes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/deprecated-html-tags.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/deprecated-tags.png
Binary file not shown.
Binary file modified assets/doctype.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/dom-events.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/enable-disable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/generic-attributes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/html-entities.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/invalid-attributes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/link-tag-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/prime-ng-tags.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/regex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/script-tag-coffeescript.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/script-tag-dart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/script-tag-javascript-fallback.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/script-tag-javascript.png
Binary file added assets/script-tag-typescript.png
Binary file removed assets/script-tag.png
Diff not rendered.
Binary file added assets/settings-example.png
Binary file added assets/side-menu.png
Binary file added assets/style-inline-colorize.png
Binary file added assets/style-inline-normal.png
Binary file removed assets/style-inline.png
Diff not rendered.
Binary file added assets/style-tag-css-fallback.png
Binary file added assets/style-tag-css.png
Binary file added assets/style-tag-less.png
Binary file added assets/style-tag-postcss.png
Binary file added assets/style-tag-sass.png
Binary file added assets/style-tag-scss.png
Binary file added assets/style-tag-stylus.png
Binary file removed assets/style-tag.png
Diff not rendered.
Binary file added assets/svg-deprecated-attributes.png
Binary file added assets/svg-deprecated-tags.png
Binary file added assets/svg-processing.png
Binary file added assets/tag-differentiation.png
Binary file added assets/xml-dtd-namespace.png
Binary file added assets/xml-stylesheet.png
29 changes: 14 additions & 15 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ const prettierConfig = require('./.prettierrc.json');
const scopes = package.contributes.grammars.map(scope => scope.scopeName);

function watch() {
return gulp.watch('./src/**/*.json5', gulp.series(['compile-json']));
return gulp.watch('./src/grammar/**/*.json5', gulp.series(['compile:grammar']));
}

gulp.task('compile', async done => {
gulp.task('compile', done => {
scopes.forEach(scope => {
gulp
.src('./src/**/*.json5')
.src('./src/grammar/**/*.json5')
.pipe(
merge({
fileName: `${scope}.json`,
Expand All @@ -39,26 +39,25 @@ gulp.task('compile', async done => {
done();
});

gulp.task('copy', async done => {
gulp.task('copy', done => {
scopes.forEach(scope => {
gulp
.src(`./syntaxes/${scope}.json`)
.pipe(gulp.dest(`${homedir}/.vscode/extensions/ghaschel.vscode-angular-ts-${package.version}/syntaxes`));
.pipe(gulp.dest(`${homedir}/.vscode/extensions/ghaschel.vscode-angular-html-${package.version}/syntaxes`));
});

gulp
.src(['./out/**/*'])
.pipe(gulp.dest(`${homedir}/.vscode/extensions/ghaschel.vscode-angular-html-${package.version}/out`));

gulp
.src(`./package.json`)
.pipe(gulp.dest(`${homedir}/.vscode/extensions/ghaschel.vscode-angular-ts-${package.version}`));
.pipe(gulp.dest(`${homedir}/.vscode/extensions/ghaschel.vscode-angular-html-${package.version}`));

done();
});

gulp.task('compile-json', gulp.series(['compile', 'copy']));

gulp.task('watch', () => {
return watch();
});

gulp.task('default', () => {
return watch();
});
gulp.task('copy', gulp.series(['copy']));
gulp.task('compile:grammar', gulp.series(['compile']));
gulp.task('watch', () => watch());
gulp.task('default', () => watch());
Loading

0 comments on commit 7198095

Please sign in to comment.