Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Commit 28990d4

Browse files
committed
move artifacts to match native module
1 parent 7910906 commit 28990d4

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
node_modules
22
.DS_Store
3-
build
3+
4+
# build artifacts
5+
contrib
6+
externs
7+
jscomp.js

build.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@
1919

2020
const spawn = require('child_process').spawnSync;
2121
const ncp = require('ncp');
22-
const fs = require('fs');
23-
24-
try {
25-
fs.mkdirSync('./build');
26-
} catch (e) {
27-
// ignore, probably exists
28-
}
2922

3023
const moduleName = 'com.google.javascript:closure-compiler-gwt';
3124
const compilerBuild = spawn('mvn', ['-DskipTests', '-pl', moduleName], {
@@ -38,12 +31,12 @@ if (compilerBuild.status !== 0) {
3831
}
3932

4033
const targetPath = './closure-compiler/target/closure-compiler-gwt-1.0-SNAPSHOT/jscomp/jscomp.js';
41-
ncp(targetPath, './build/compile.js', err => {
34+
ncp(targetPath, './jscomp.js', err => {
4235
if (err) {
4336
throw new Error(err);
4437
}
4538
['contrib', 'externs'].forEach(name => {
46-
ncp('./closure-compiler/' + name, './build/' + name, function(err) {
39+
ncp('./closure-compiler/' + name, './' + name, function(err) {
4740
if (err) {
4841
throw new Error(err);
4942
}

compile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
'use strict';
2323

24-
const compile = require('./build/compile.js');
24+
const compile = require('./jscomp.js');
2525

2626
let externs;
2727

0 commit comments

Comments
 (0)