Skip to content

Commit

Permalink
Packaging task for the brackets plugin that is ready to upload
Browse files Browse the repository at this point in the history
  • Loading branch information
SpencerPark committed Dec 3, 2016
1 parent 5337e39 commit ee97317
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 263 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
**/node_modules/
**/build/
**/package/

.idea/
14 changes: 11 additions & 3 deletions brackets-plugin/gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const del = require('del');
const del = require('del'),
zip = require('gulp-archiver');

module.exports = function (gulp) {
return {
name: "brackets-plugin",
tasks: {
"build": {
dependencies: ["clean"],
require: ["codemirror:build"],
func: function (codemirrorBuild) {
codemirrorBuild()
Expand All @@ -15,9 +15,17 @@ module.exports = function (gulp) {
.pipe(gulp.dest('brackets-plugin/build/'));
}
},
"package": {
dependencies: ['clean', 'build'],
func: function () {
return gulp.src('brackets-plugin/build/**')
.pipe(zip('mellowd-lang-support.zip'))
.pipe(gulp.dest('brackets-plugin/package/'));
}
},
"clean": {
func: function () {
return del(['brackets-plugin/build/*'])
return del(['brackets-plugin/build/*', 'brackets-plugin/package/*'])
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion brackets-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"name": "mellowd-lang-support:brackets-plugin",
"name": "spencer-park.mellowd-lang-support",
"title": "MellowD Syntax Highlighter",
"description": "Add syntax highlighting support in Brackets for the MellowD language.",
"categories": "language",
"keywords": [".mlod", "MellowD", "language", "highlight"],
"homepage": "https://github.com/SpencerPark/mellowd-lang-support",
"version": "1.0.0",
"author": "Spencer Park",
Expand Down
1 change: 0 additions & 1 deletion codemirror/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ module.exports = function (gulp) {
name: "codemirror",
tasks: {
"build": {
dependencies: ["clean"],
func: function () {
var tsProject = ts.createProject("./codemirror/tsconfig.json");
return tsProject.src()
Expand Down
243 changes: 0 additions & 243 deletions codemirror/mellowd.js

This file was deleted.

1 change: 0 additions & 1 deletion codemirror/mellowd.js.map

This file was deleted.

Loading

0 comments on commit ee97317

Please sign in to comment.