Skip to content

Commit

Permalink
Update the compiler build process to use a submodule reference. Updat…
Browse files Browse the repository at this point in the history
…e to the 20160619 release.
  • Loading branch information
ChadKillingsworth committed Jun 22, 2016
1 parent 9edd1b8 commit e1bfb52
Show file tree
Hide file tree
Showing 131 changed files with 40 additions and 198,268 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules
npm-debug.log
compiler.jar
contrib/
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "compiler"]
path = compiler
url = [email protected]:google/closure-compiler.git
8 changes: 2 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
language: node_js
node_js:
- '6'
- '5'
- '0.12'
branches:
only:
- master
after_success:
- git config user.name "Travis CI"
- git config user.email "[email protected]"
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && ["${TRAVIS_NODE_VERSION}" -ge "5"] && gulp release-if-changed'
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && ["${TRAVIS_NODE_VERSION}" -ge "5"] && git push --follow-tags "https://chadkillingsworth:${GH_TOKEN}@github.com/ChadKillingsworth/closure-compiler-npm.git" HEAD:master'
deploy:
skip_cleanup: true
provider: npm
email: [email protected]
on:
node: '5'
node: '6'
branch: master
api_key:
secure: Tuuebi/+0YTMiDvij1DQh//wXb6pLi0pJgXw+GgawnKQjqSG55BjYtGK7XJ7KPSYXBghXq0gioFSFFWXH1lot9wyhFxtieHhVat6RLsbjq1jHVjLFmC+BuM7tuuuBniBU5ZGnmQPjrCsWYLDU7u9RDzWD5jmi1xM3ujzkghVBsxxEDo5mIveN4f3rt2Ph4NE7Sp8JTe7eKMV8EN5LFiS7lJpQeBYYLqEIx2iQCpdjVTVHkU56d+w81Emvi+F7tXEHgMFtGF1KfbBtp6L3jlCjA8sSdUN/oiJ/6xO+znwHFJYCBALCL+ooEuq5uK85WasJvJ4AOeFuFlWtIM7nMUJJbOweiF6ktKBPgELII4qn7ItTWkVeQkoOGGKSmlNZ1D4eKhjnj8XQZ7PDkLd2mEnEs3dimVCFrPYnb++BH7OjAKskQ+6CT4bLTBKXCf5slMYgfYVmYvF12tIxgo5reFyGlqO8K/VhqNFOw4lJHnB9fDtP8uvfZr8msYwo46xT5i34yXUxzyg4nSIOdZmCiheyrcXxDkrGoWbW+SDzWm1gozhYGcoAoiXADqEfdJEYVAfTz5bsbOykqiUbSzNCuWz4EclzW3VvJtG7ulc2weZYR6Fi0MvA4r1hIAp4UrKVLb+h6aJC92Nm+VCbJ4B+VbR71p2E9Y2C/fRLDaG5qGxgaQ=
26 changes: 26 additions & 0 deletions build_compiler.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env node
'use strict';

var spawn = require('child_process').spawnSync;
var ncp = require('ncp');

var compilerBuild = spawn('ant', ['jar'], {
cwd: './compiler',
stdio: 'inherit'
});

if (compilerBuild.status !== 0) {
throw new Error('compiler build failed');
}

ncp('./compiler/build/compiler.jar', './compiler.jar', function (err) {
if (err) {
throw new Error(err);
}

ncp('./compiler/contrib', './contrib', function(err) {
if (err) {
throw new Error(err);
}
});
});
1 change: 1 addition & 0 deletions compiler
Submodule compiler added at b18d29
Binary file removed compiler.jar
Binary file not shown.
Loading

0 comments on commit e1bfb52

Please sign in to comment.