-
Notifications
You must be signed in to change notification settings - Fork 12k
refactor(all): Repackaging #2056
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
7ef73a7
refactor: make sure every TS files now build, and turn out the build …
hansl 6251be6
enabling build on travis
hansl 6a283c8
moving files around
hansl 386420e
moving more files and making link work
hansl 5fcfb47
re-adding karma plugin when linking
hansl 2fd381d
fixes and fixing
hansl 0c6f68f
build fixes
hansl 617aa14
e2e enabling
hansl 8ee55b3
applying patch for building
hansl 0861f85
lint fix
hansl 0668c8d
patch fix
hansl 1b81b45
patch fix
hansl 549ba1a
build is now a script
hansl d4f554a
linting fix
hansl 6dfc674
specs
hansl 0203c20
build
hansl 135e0ca
build
hansl 0dc4681
acceptance tests
hansl 71454a6
fix copying resources
hansl f4015e5
fix build
hansl 45f7824
fixing comments
hansl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* jshint node: true */ | ||
'use strict'; | ||
|
||
const config = require('../models/config'); | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
name: 'ng2', | ||
|
||
config: function () { | ||
this.project.ngConfig = this.project.ngConfig || config.CliConfig.fromProject().config; | ||
}, | ||
|
||
blueprintsPath: function () { | ||
return path.join(__dirname, '../blueprints'); | ||
}, | ||
|
||
includedCommands: function () { | ||
return { | ||
'build': require('../commands/build').default, | ||
'serve': require('../commands/serve').default, | ||
'new': require('../commands/new').default, | ||
'generate': require('../commands/generate').default, | ||
'init': require('../commands/init').default, | ||
'test': require('../commands/test').default, | ||
'e2e': require('../commands/e2e').default, | ||
'help': require('../commands/help').default, | ||
'lint': require('../commands/lint').default, | ||
'version': require('../commands/version').default, | ||
'completion': require('../commands/completion').default, | ||
'doc': require('../commands/doc').default, | ||
'github-pages-deploy': require('../commands/github-pages-deploy').default, | ||
|
||
// Easter eggs. | ||
'make-this-awesome': require('../commands/easter-egg').default, | ||
|
||
// Configuration. | ||
'set': require('../commands/set').default, | ||
'get': require('../commands/get').default | ||
}; | ||
} | ||
}; |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/usr/bin/env node | ||
'use strict'; | ||
|
||
// Provide a title to the process in `ps` | ||
process.title = 'angular-cli'; | ||
|
||
const resolve = require('resolve'); | ||
const exit = require('exit'); | ||
const packageJson = require('../package.json'); | ||
const Leek = require('leek'); | ||
|
||
|
||
resolve('angular-cli', { basedir: process.cwd() }, | ||
function (error, projectLocalCli) { | ||
var cli; | ||
if (error) { | ||
// If there is an error, resolve could not find the ng-cli | ||
// library from a package.json. Instead, include it from a relative | ||
// path to this script file (which is likely a globally installed | ||
// npm package). Most common cause for hitting this is `ng new` | ||
cli = require('../lib/cli'); | ||
} else { | ||
// No error implies a projectLocalCli, which will load whatever | ||
// version of ng-cli you have installed in a local package.json | ||
cli = require(projectLocalCli); | ||
} | ||
|
||
if ('default' in cli) { | ||
cli = cli['default']; | ||
} | ||
|
||
cli({ | ||
cliArgs: process.argv.slice(2), | ||
inputStream: process.stdin, | ||
outputStream: process.stdout, | ||
Leek: CustomLeek | ||
}).then(function (result) { | ||
var exitCode = typeof result === 'object' ? result.exitCode : result; | ||
exit(exitCode); | ||
}); | ||
|
||
function CustomLeek(options) { | ||
options.trackingCode = packageJson.trackingCode; | ||
options.globalName = packageJson.name; | ||
options.name = packageJson.name; | ||
options.version = packageJson.version; | ||
return new Leek(options); | ||
} | ||
}); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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
File renamed without changes.
File renamed without changes.
This file contains hidden or 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
File renamed without changes.
File renamed without changes.
This file contains hidden or 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
File renamed without changes.
This file contains hidden or 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
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
addon/ng2/models/config.ts → packages/angular-cli/models/config.ts
This file contains hidden or 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 hidden or 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
File renamed without changes.
This file contains hidden or 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing help command
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oopsie. done.