1
0
mirror of https://github.com/angular/angular-cli.git synced 2025-05-20 05:24:57 +08:00

46 Commits

Author SHA1 Message Date
Hans Larsen
6fdeca33fa
build: fix deploy script condition (take 8) 2017-06-06 15:31:39 -07:00
Hans Larsen
e8949c27d6
build: fix deploy script condition (take 5) 2017-06-06 15:08:41 -07:00
Hans Larsen
1e7631b5bd
build: fix deploy script condition (take 4) 2017-06-06 11:23:54 -07:00
Hans Larsen
9dfcdcecfd build: add credentials for the github builds repo 2017-06-05 12:22:09 -07:00
Sumit Arora
93424b19a4 feat(@angular/cli): adding git builds script 2017-06-02 12:32:35 -07:00
Filipe Silva
ff83b449de ci: fix branch comparison () 2017-05-15 17:29:57 -04:00
Filipe Silva
5905e9ab1c ci: fix commit check on branches 2017-05-08 14:51:39 +01:00
Hans Larsen
3a6699580f ci: remove the branch check from the commit validation 2017-05-03 17:20:31 -07:00
Hans Larsen
6015a03cc1 ci: fixes for validate-commit-message 2017-05-02 09:39:54 -07:00
Hans Larsen
646c1b0c38
fix: add support for branch-only commit message types. 2017-04-26 14:26:08 -07:00
Hans Larsen
c9d82438fe build: use actual list of packages for commit message
Also add the tool type, which should be used for tooling.
2017-03-27 17:34:39 -07:00
Hans Larsen
d928c1c8d4 tool(publish): adding a new tool infrastructure with a publish tool. 2017-03-27 17:34:39 -07:00
Hans Larsen
fe69b5b110 ci: add option to ignore imports/requires from dependencies
It needs to be in the file itself where the require/import is made.
2017-03-20 09:20:03 -07:00
Filipe Silva
1e476577c1 fix(@angular/cli): don't fail install due to node-sass ()
This change should reduce the amount of problems on npm installs.

It makes the `node-sass` dependency optional, and so install will not fail when it cannot be installed.

For projects that do not use sass, there is no side-effect of an failed node-sass install.

For projects that do use node-sass and the install failed, they should see the following self-explanatory error message:

```
ERROR in ./src/app/app.component.scss
Module build failed: Error: Missing binding D:\sandbox\master-project\node_modules\node-sass\vendor\win32-x64-51\binding.node
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 7.x

Found bindings for the following environments:

This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass` to build the binding for your current environment.
    at module.exports (D:\sandbox\master-project\node_modules\node-sass\lib\binding.js:15:13)
    at Object.<anonymous> (D:\sandbox\master-project\node_modules\node-sass\lib\index.js:14:35)
```

Fix 
2017-03-16 20:02:51 +00:00
Filipe Silva
48324d11cb test: fix commit message test for branches ()
For travis runs on branches, local master never exists there's no branch
tracking origin/master.

This causes `git fetch origin master` to fetch into `FETCH_HEAD` instead
of master.

This PR will explicitely fetch origin master into local master, and use
that for the log comparison.
2017-03-03 15:24:28 +00:00
Filipe Silva
68cd1c7bb8 build: fix docs publish on windows () 2017-02-25 08:39:41 -08:00
clydin
fd1296a357 test: validate commit messages () 2017-02-22 14:05:04 -08:00
Hans Larsen
b521ae5db2
refactor: fix more issues with docs scripts 2017-02-21 18:10:07 -08:00
Hans
783dd72916 ci: fix travis () 2017-02-21 17:45:50 -08:00
Hans
8cec3ce769 refactor: fix issues with docs scripts () 2017-02-21 16:24:01 -08:00
Filipe Silva
a2e819a8dd fix(@angular/cli): fix css url processing ()
Fixing component css in  uncovered errors in CSS url processing.

This PR correctly composes absolute urls when using `--base-href` and/or `--deploy-url`.

It also fixes asset output on `--aot` mode.

Fix 
Fix 
Fix 
2017-02-20 13:18:21 +00:00
Filipe Silva
6d5dfa01c0 test: add license test ()
* test: add license test

* only check prod dependencies

* remove findup dep

* also check dev deps

* add map-stream to ignore list

* remove license-checker

* add comment

* use logger

* fix lint errors
2017-02-17 14:49:04 +00:00
Sumit Arora
42faa198f0 docs: add script for pushing docs to wiki () 2017-02-16 15:07:17 -08:00
Alex Rickabaugh
cb2e418d58
feat: add support for @angular/service-worker and manifest generation
Adds the flag 'serviceWorker' to angular-cli.json that enables support for @angular/service-worker.

When this flag is true, production builds will be set up with a service worker. A ngsw-manifest.json file
will be generated (or augmented) in the dist/ root, and the service worker script will be copied there.
A short script will be added to index.html to register the service worker.

@angular/service-worker is a dependency of @angular/cli, but not of generated projects. It is desirable
for users to be able to update the version of @angular/service-worker used in their apps independently
of the CLI version. Thus, the CLI will error if serviceWorker=true but @angular/service-worker is not
installed in the application's node_modules, as it pulls all the service worker scripts from there.

If the flag is false the effect on the CLI is minimal - the webpack plugins associated with the SW are
not even require()'d.

Closes 
2017-02-09 15:16:48 -08:00
Hans
601f9b38f8 feat(@angular/cli): move angular-cli to @angular/cli ()
This release is otherwise identical to beta.28.
2017-02-01 18:19:50 -08:00
Hans Larsen
9b56edc46c
release: v1.0.0-beta.27 2017-02-01 12:16:09 -08:00
Filipe Silva
38e43ced98 build: support paths with spaces on Windows ()
Fix 
2017-01-30 14:51:19 -08:00
Hans
74f7cddf9e feat(@ngtools/json-schema): Introduce a separate package for JSON schema. ()
This is the same code we used before, but:

1. its in a separate package,
2. it also support new serialization to .d.ts,
3. OneOf is now supported entirely (instead of the previous hack).

Also, removed the schema.d.ts file and generate it before building the package. It is not git ignored and changing it will not work (it will be overwritten).
2017-01-10 16:19:42 -08:00
clydin
2f795c205a chore(lint): fix lint error in build script () 2017-01-10 15:02:42 +00:00
Hans
979e4f96da chore(license): add LICENSE files to all packages () 2017-01-09 18:07:35 -08:00
Hans
e3b48da4b2 feat(@ngtools/logger): Implement a reactive logger. ()
It is typescript friendly and ultra performant. Using it in e2e tests for a PoC.
2016-12-28 19:02:55 -08:00
clydin
0c1c3910dc chore(deps): validate root package.json () 2016-12-12 13:20:21 -08:00
Hans
901a64f547 fix(dependencies): reduce the dependencies further. ()
Added a script that tells you if you are missing dependencies and if any dependencies are not needed.
2016-12-08 17:24:29 -08:00
Hans
28925dc3a6 chore(install): move ember cli in our repo and remove everything unnecessary ()
* chore(install): move ember-cli to a directory in angular-cli
* further remove files
2016-11-10 02:34:23 +01:00
Hans
d29677815b feature(compiler): add support for AoT to the CLI. ()
Also adding a new package, webpack, which is a plugin and loader for
webpack that adds support for AoT.

It is behind a `--aot` flag in the CLI that is supported by build and
serve.
2016-09-27 18:59:33 -07:00
Filipe Silva
3102453ec8 fix(test): correctly report packages spec failures () 2016-09-27 19:39:09 +01:00
Hans
5b880b2c9e fix(help): fix a bug where help was not available inside a project. ()
Also adding a bunch of e2e improvements, and fixing another bug where help might not work with our published d.ts and map files.
2016-09-15 12:15:02 -07:00
Hans
21003b1dc3 chore: Adding a check for old version of the CLI () 2016-09-14 16:34:06 -07:00
Hans
0ef8bfcddf copying more files into the package () 2016-09-13 12:04:33 -07:00
Hans
1572270b1c refactor(all): Repackaging ()
Moving Angular-CLI into `packages/` and building the angular-cli.

The published packages will now have JavaScript only (with their d.ts), instead of being a mix of TypeScript and JavaScript, and it won't have the hacks of having a custom require extension to load the TypeScript.

Our development flow will be more streamlined, tools are going to be better (no more undefined symbols that are actually defined), and the npm packages will boot up way faster (since there's no more compilation during runtime).

Locally nothing changes, use `npm link` and run your local `ng`. Using the `npm` releases though it should be all javascript from the release.

The E2E tests also now uses the `dist` folder output to install in the new E2E app, making sure the process works for an app published to npm.

Note: Even though we're following the lerna structure, we won't be using their tool anytime soon.
2016-09-12 13:29:10 -07:00
Hans
8a5e769e28 refactor: move base-href webpack plugin into its own package. () 2016-08-30 18:20:33 -07:00
Hans
b5e86c9fa9 feature: splitting the ast into its own packages () 2016-08-24 19:54:26 -07:00
Hans
022e7f90b9 fix: Fix all versions of dependencies to Angular-CLI ()
* chore: shrinkwrap versions in local development

* chore: adding shrinkwrap script
2016-07-13 14:19:43 -07:00
Hans Larsen
f6b9c0aa17 chore: fix publish script linting errors 2016-07-04 11:57:34 -07:00
Hans Larsen
ecb275b130 chore: making the script executable and adding npm deps 2016-07-04 11:48:52 -07:00
Hans Larsen
1fa0c31c8e chore: adding a changelog script, from Angular 2016-07-04 11:25:45 -07:00