Skip to content

Commit 2cec1af

Browse files
committed
update gulpfile
1 parent d292f8c commit 2cec1af

File tree

4 files changed

+21
-8
lines changed

4 files changed

+21
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ css/app.css
99
.yo-rc.json
1010
.DS_Store
1111
.idea
12+
.env.js

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
# ps-rmd-plugin
2-
Responsive Metadata Plugin for Adobe Photoshop
2+
3+
A prototype of a responsive metadata plugin for Adobe Photoshop.
4+
5+
The plugin supports the [RMD standard](https://github.com/universalimages/rmd)
6+
promoted by the [W3C Universal Image Community Group](https://www.w3.org/community/universalimages/).

gulpfile.js

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ var gulp = require('gulp-help')(require('gulp')),
22
jshint = require('gulp-jshint'),
33
gutil = require('gulp-util'),
44
inject = require('gulp-inject'),
5+
env = require('gulp-env'),
56
shell = require('gulp-shell'),
67
sourcemaps = require('gulp-sourcemaps'),
78
sass = require('gulp-sass'),
@@ -36,12 +37,16 @@ var allSrcFiles = [
3637
'bower_components/**/*'
3738
],
3839
// The selfSigned certificate used to compile the extension
39-
certPath = path.join('./bin', 'testCert.p12'),
40+
certPath = path.join('./bin', 'TestCert.p12'),
4041
// The path and name of the compiled ZXP file
41-
zxpPath = path.join('./build', 'test.zxp'),
42+
zxpPath = path.join('./build', 'universalimages.zxp'),
4243
// The path to the zxpSignCmd binary
4344
binPath = path.join('./bin', 'ZXPSignCmd');
4445

46+
env({
47+
file: '.env'
48+
});
49+
4550
gulp.task('hint', 'Run JSHint against your project files', function () {
4651
return gulp.src(allSrcFiles)
4752
.pipe(jshint())
@@ -87,12 +92,12 @@ gulp.task('watch', 'Build based on file changes', function () {
8792
gulp.task('cert', 'Create a signing cert for your extension', shell.task([
8893
InsertSpaces(binPath,
8994
'-selfSignedCert',
90-
'US',
95+
'CH',
9196
'NA',
9297
'company',
93-
'test',
94-
'01189998819991197253',
95-
path.join('./bin', 'testCert.p12'))
98+
'Universalimages',
99+
'"'+process.env.TEST_CERT_PW+'"',
100+
certPath)
96101
]));
97102

98103
gulp.task('build', 'Compile the bundled ZXP', function (cb) {
@@ -124,7 +129,9 @@ gulp.task('build:compile', false, shell.task([
124129
'./dist',
125130
zxpPath,
126131
certPath,
127-
'01189998819991197253')
132+
'"'+process.env.TEST_CERT_PW+'"'
133+
// '-tsa http://tsa.safecreative.org'
134+
)
128135
]));
129136

130137
function InsertSpaces () {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"fs-extra": "^0.26.2",
1010
"gulp": "^3.9.0",
1111
"gulp-concat": "^2.6.0",
12+
"gulp-env": "^0.4.0",
1213
"gulp-help": "^1.3.4",
1314
"gulp-inject": "^1.2.0",
1415
"gulp-jshint": "^1.9.4",

0 commit comments

Comments
 (0)