-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[changed] transpile straight to bin/release
- Loading branch information
Showing
4 changed files
with
15 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
.DS_Store | ||
npm-debug.log* | ||
node_modules | ||
lib | ||
bin |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/usr/bin/env node | ||
/* globals cat, config, cp, ls, popd, pushd, pwd, rm, exec, exit */ | ||
/* eslint curly: 0 */ | ||
import 'colors'; | ||
|
@@ -20,17 +21,17 @@ const npmjson = JSON.parse(cat(packagePath)); | |
const bowerRoot = path.join(repoRoot, (npmjson.bowerRoot || 'amd/')); | ||
const tmpBowerRepo = path.join(repoRoot, (npmjson.tmpBowerRepo || 'tmp-bower-repo')); | ||
|
||
let bowerRepo; | ||
if (npmjson.bowerRepo) { | ||
bowerRepo = npmjson.bowerRepo; | ||
} else { | ||
let match = npmjson.repository.url.match(/^git@github\.com:(.*)\.git$/); | ||
match = match || npmjson.repository.url.match(/^git\+https:\/\/github\.com\/(.*)\.git$/); | ||
let gitUrlBase = match && match[1]; | ||
gitUrlBase = gitUrlBase || npmjson.repository.url; | ||
bowerRepo = `[email protected]:${gitUrlBase}-bower.git`; | ||
} | ||
|
||
// let bowerRepo; | ||
// if (npmjson.bowerRepo) { | ||
// bowerRepo = npmjson.bowerRepo; | ||
// } else { | ||
// let match = npmjson.repository.url.match(/^git@github\.com:(.*)\.git$/); | ||
// match = match || npmjson.repository.url.match(/^git\+https:\/\/github\.com\/(.*)\.git$/); | ||
// let gitUrlBase = match && match[1]; | ||
// gitUrlBase = gitUrlBase || npmjson.repository.url; | ||
// bowerRepo = `[email protected]:${gitUrlBase}-bower.git`; | ||
// } | ||
const bowerRepo = npmjson.bowerRepo; // if it is not set, then there is no bower repo | ||
|
||
//------------------------------------------------------------------------------ | ||
// command line options | ||
|