Skip to content

Commit 8946912

Browse files
author
fabianmoronzirfas
committed
feat(grrrrr): tricking the semantic-release foo
1 parent edfe352 commit 8946912

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

index.js

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,49 +6,49 @@ var prependify = require('prependify');
66
var fs = require('fs');
77

88
extendscriptr
9-
.version(packageJson.version)
10-
.usage('[options]')
11-
.option('-s, --script <path>', 'The input file to compile into an executable extendscript')
12-
.option('-o, --output <path>', 'The path to the wished compiled output file')
13-
.option('-t, --target [targetApp]', 'The Adobe Application the script is intended for. i.e. InDesign [targetApp]')
14-
.parse(process.argv);
9+
.version(packageJson.version)
10+
.usage('[options]')
11+
.option('-s, --script <path>', 'The input file to compile into an executable extendscript')
12+
.option('-o, --output <path>', 'The path to the wished compiled output file')
13+
.option('-t, --target [targetApp]', 'The Adobe Application the script is intended for. i.e. InDesign [targetApp]')
14+
.parse(process.argv);
1515

1616
console.log('Running extendscriptr with following options:');
1717
extendscriptr.options.forEach(function(opt) {
18-
if (opt.long === '--version') return;
19-
var optionName = opt.long.replace('--', '');
20-
console.log(
21-
opt.long + ': ' +
22-
extendscriptr[optionName] +
23-
(opt.optional === 0 ? '' : ' (optional)')
24-
);
18+
if (opt.long === '--version') return;
19+
var optionName = opt.long.replace('--', '');
20+
console.log(
21+
opt.long + ': ' +
22+
extendscriptr[optionName] +
23+
(opt.optional === 0 ? '' : ' (optional)')
24+
);
2525
});
2626

2727
var prototypePolyfills = fs.readFileSync('./node_modules/extendscript.prototypes/lib/extendscript.prototypes.js', 'utf8');
2828
var browserifyPlugins = [ [ prependify, prototypePolyfills ] ];
2929

3030
var adobeTarget = String(extendscriptr.target).toLowerCase();
3131
if ( adobeTarget &&
32-
(adobeTarget.indexOf('indesign') >= 0 ||
33-
adobeTarget.indexOf('photoshop') >= 0 ||
34-
adobeTarget.indexOf('illustrator') >= 0 ||
35-
adobeTarget.indexOf('aftereffects') >= 0)) {
36-
browserifyPlugins.push([ prependify, '#target ' + extendscriptr.target + '\n' ]);
32+
(adobeTarget.indexOf('indesign') >= 0 ||
33+
adobeTarget.indexOf('photoshop') >= 0 ||
34+
adobeTarget.indexOf('illustrator') >= 0 ||
35+
adobeTarget.indexOf('aftereffects') >= 0)) {
36+
browserifyPlugins.push([ prependify, '#target ' + extendscriptr.target + '\n' ]);
3737
}
3838

3939
var b = browserify({
40-
entries: [ extendscriptr.script ],
41-
transform: [['babelify', {
42-
presets: [
43-
'es2015'
44-
],
45-
plugins: [
46-
'babel-plugin-transform-es3-member-expression-literals',
47-
'babel-plugin-transform-es3-property-literals',
48-
'babel-plugin-transform-es5-property-mutators'
49-
]
50-
}]],
51-
plugin: browserifyPlugins
40+
entries: [ extendscriptr.script ],
41+
transform: [['babelify', {
42+
presets: [
43+
'es2015'
44+
],
45+
plugins: [
46+
'babel-plugin-transform-es3-member-expression-literals',
47+
'babel-plugin-transform-es3-property-literals',
48+
'babel-plugin-transform-es5-property-mutators'
49+
]
50+
}]],
51+
plugin: browserifyPlugins
5252
});
5353

5454
b.bundle().pipe(fs.createWriteStream(extendscriptr.output));

0 commit comments

Comments
 (0)