-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Split trace-anything into its own module
After running `npm install`, trace-anything.js is now a symlink into the node_modules/ folder. This change also replaces the build system with gulp, since it was getting too complicated to update that shell script to create the perfect zip file while dealing with symlinks. Change-Id: I771b0856892454aa6961b408e09565c2150e2bf6
- Loading branch information
1 parent
a3a183d
commit 5d94863
Showing
6 changed files
with
9,056 additions
and
2,236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/** | ||
* Copyright 2021 Google Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* @fileoverview Build system based on Gulp. | ||
*/ | ||
|
||
const gulp = require('gulp'); | ||
const rename = require('gulp-rename'); | ||
const zip = require('gulp-zip'); | ||
|
||
/** | ||
* @return {!Stream} | ||
*/ | ||
function packageExtension() { | ||
const version = require('./manifest.json').version; | ||
|
||
const sources = gulp.src([ | ||
'LICENSE', | ||
'README.md', | ||
'icons/*', | ||
'manifest.json', | ||
'*.js', | ||
'*.html', | ||
], {base: './'}); | ||
|
||
return sources | ||
.pipe(rename((path) => { | ||
path.dirname = `eme_logger/${path.dirname}`; | ||
})) | ||
.pipe(zip(`eme_logger-${version}.zip`)) | ||
.pipe(gulp.dest('.')); | ||
} | ||
|
||
// The default command for this gulpfile is just to package the extension. | ||
exports.default = packageExtension; |
Oops, something went wrong.