diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index 6824e4b356..0000000000 --- a/.appveyor.yml +++ /dev/null @@ -1,21 +0,0 @@ -environment: - matrix: - - nodejs_version: "6" - -matrix: - fast_finish: true - -install: - - ps: Install-Product node $env:nodejs_version - - npm install -g npm@~5.6.0 - - npm install - -test_script: - - node --version - - npm --version - - npm run test - -build: off - -cache: - - node_modules -> package-lock.json diff --git a/.bazelrc b/.bazelrc deleted file mode 100644 index 7eb0155fb7..0000000000 --- a/.bazelrc +++ /dev/null @@ -1,9 +0,0 @@ -# Make TypeScript compilation fast, by keeping a few copies of the compiler -# running as daemons, and cache SourceFile AST's to reduce parse time. -build --strategy=TypeScriptCompile=worker - -# Performance: avoid stat'ing input files -build --watchfs - -# Do not generate the symbolic links bazel-*. -build --symlink_prefix=/ diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 52a61c4400..0000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,93 +0,0 @@ -version: 2 - -_defaults: &defaults - working_directory: ~/ng - docker: - - image: angular/ngcontainer:0.1.0 - -_post_checkout: &post_checkout - post: git pull --ff-only origin "refs/pull/${CI_PULL_REQUEST//*pull\//}/merge" - -jobs: - lint: - <<: *defaults - steps: - - checkout: - <<: *post_checkout - - restore_cache: - key: angular_devkit-{{ checksum "package-lock.json" }} - - - run: npm install --no-save - - run: npm run lint - - validate: - <<: *defaults - steps: - - checkout - - restore_cache: - key: angular_devkit-{{ checksum "package-lock.json" }} - - - run: npm install --no-save - - run: npm run validate - - test: - <<: *defaults - steps: - - checkout: - <<: *post_checkout - - restore_cache: - key: angular_devkit-{{ checksum "package-lock.json" }} - - - run: npm install --no-save - - run: npm run test -- --code-coverage --full - - integration: - <<: *defaults - steps: - - checkout: - <<: *post_checkout - - restore_cache: - key: angular_devkit-{{ checksum "package-lock.json" }} - - restore_cache: - key: angular_devkit-integration-simple-{{ checksum "tests/@angular_devkit/build_optimizer/webpack/simple-app/package-lock.json" }} - - restore_cache: - key: angular_devkit-integration-aio-{{ checksum "tests/@angular_devkit/build_optimizer/webpack/aio-app/package-lock.json" }} - - - run: npm install --no-save - - run: xvfb-run -a npm run integration - - - save_cache: - key: angular_devkit-integration-simple-{{ checksum "tests/@angular_devkit/build_optimizer/webpack/simple-app/package-lock.json" }} - paths: - - "tests/@angular_devkit/build_optimizer/webpack/simple-app/node_modules" - - save_cache: - key: angular_devkit-integration-aio-{{ checksum "tests/@angular_devkit/build_optimizer/webpack/aio-app/package-lock.json" }} - paths: - - "tests/@angular_devkit/build_optimizer/webpack/aio-app/node_modules" - - build: - <<: *defaults - steps: - - checkout: - <<: *post_checkout - - restore_cache: - key: angular_devkit-{{ checksum "package-lock.json" }} - - - run: bazel run @nodejs//:npm install - - run: bazel build //packages/... - - - save_cache: - key: angular_devkit-{{ checksum "package-lock.json" }} - paths: - - "node_modules" - - -workflows: - version: 2 - default_workflow: - jobs: - - lint - - validate - - build - - test - - integration diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index b53765a86c..0000000000 --- a/.editorconfig +++ /dev/null @@ -1,14 +0,0 @@ -# http://editorconfig.org - -root = true - -[*] -charset = utf-8 -indent_style = space -indent_size = 2 -insert_final_newline = true -trim_trailing_whitespace = true - -[*.md] -insert_final_newline = false -trim_trailing_whitespace = true diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000000..3e79d39591 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,17 @@ +/packages/_/ @hansl @clydin +/packages/angular/pwa @hansl @Brocco +/packages/angular_devkit/architect/ @filipesilva @hansl +/packages/angular_devkit/architect_cli/ @filipesilva @hansl +/packages/angular_devkit/build_angular/ @filipesilva @clydin +/packages/angular_devkit/build_ng_packagr/ @filipesilva @clydin +/packages/angular_devkit/build_optimizer/ @filipesilva @clydin +/packages/angular_devkit/core/ @hansl @clydin +/packages/angular_devkit/schematics/ @hansl @Brocco +/packages/angular_devkit/schematics_cli/ @hansl @Brocco +/packages/ngtools/webpack/ @hansl @filipesilva @clydin +/packages/schematics/angular/ @hansl @Brocco +/packages/schematics/package_update/ @hansl @Brocco +/packages/schematics/schematics/ @hansl @Brocco +/packages/schematics/update/ @hansl @Brocco +/rules/ @hansl @clydin +/scripts/ @hansl @clydin diff --git a/.gitignore b/.gitignore index fb6668f33a..e6c63302db 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # Outputs bazel-* +test-project-host-* dist/ # IDEs @@ -16,6 +17,7 @@ node_modules/ tmp/ npm-debug.log* yarn-error.log* +.ng_pkg_build/ # Mac OSX Finder files. **/.DS_Store diff --git a/.mailmap b/.mailmap new file mode 100644 index 0000000000..bf8640d5de --- /dev/null +++ b/.mailmap @@ -0,0 +1,50 @@ +# Please keep this file in alphabetical order, per section. + + +################################################################################ +# Angular Team +################################################################################ +Hans Larsen +Igor Minar + Igor Minar + + +################################################################################ +# Angular CLI Team +################################################################################ +Charles Lyding + Charles Lyding <19598772+clydin@users.noreply.github.com> +Filipe Silva +Mike Brocchi + + +################################################################################ +# OpenSource Contributors +################################################################################ +Ashok Tamang + Ashok Tamang +Bram Borggreve +Carlo Dapor + +Cédric Exbrayat + Cédric Exbrayat +Chris Pearce + Chris Pearce +Dominic Watson + Dominic Watson +Jeremy Wells +Jan Kuri +Jim Cummins + Jim Cummins +John Papa + John Papa +Meligy +Michał Gołębiowski-Owczarek +Preston Van Loon + Preston Van Loon +Rodric Haddad +Shai Reznik + Shai Reznik + Shai Reznik +Stephen Cavaliere + Stephen Cavaliere diff --git a/.monorepo.json b/.monorepo.json deleted file mode 100644 index 2df50a1c95..0000000000 --- a/.monorepo.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "badges": [ - [ - { - "image": "https://img.shields.io/circleci/project/github/angular/devkit/master.svg?label=circleci", - "label": "CircleCI branch", - "url": "https://circleci.com/gh/angular/devkit" - }, - { - "title": "![Dependency Status](https://david-dm.org/angular/devkit.svg)", - "url": "https://david-dm.org/angular/devkit" - }, - { - "title": "![devDependency Status](https://david-dm.org/angular/devkit/dev-status.svg)", - "url": "https://david-dm.org/angular/devkit?type=dev" - } - ], - [ - { - "label": "License", - "image": "https://img.shields.io/npm/l/@angular-devkit/core.svg", - "url": "https://github.com/angular/devkit/blob/master/LICENSE" - } - ], - [ - { - "label": "GitHub forks", - "image": "https://img.shields.io/github/forks/angular/devkit.svg?style=social&label=Fork", - "url": "https://github.com/angular/devkit/fork" - }, - { - "label": "GitHub stars", - "image": "https://img.shields.io/github/stars/angular/devkit.svg?style=social&label=Star", - "url": "https://github.com/angular/devkit" - } - ] - ], - "links": { - "Gitter": "https://gitter.im/angular/angular-cli", - "Contributing": "https://github.com/angular/devkit/blob/master/CONTRIBUTING.md", - "Angular CLI": "http://github.com/angular/angular-cli" - }, - "packages": { - "@_/benchmark": { - "version": "0.0.18", - "hash": "b1f9f2d8e1eca2a865d39263f0ca5a38" - }, - "@angular-devkit/build-optimizer": { - "name": "Build Optimizer", - "links": [ - { - "label": "README", - "url": "https://github.com/angular/devkit/blob/master/packages/angular_devkit/build_optimizer/README.md" - } - ], - "version": "0.0.36", - "hash": "718b816298c9ab7b7b12bd4c2f56423b" - }, - "@angular-devkit/core": { - "name": "Core", - "version": "0.0.23", - "hash": "45c3c8b7d60b038bbedd3000ebca1b88" - }, - "@angular-devkit/schematics": { - "name": "Schematics", - "links": [ - { - "label": "README", - "url": "https://github.com/angular/devkit/blob/master/packages/angular_devkit/schematics/README.md" - } - ], - "version": "0.0.42", - "hash": "33e9d31bdce777d0010265fcf99b8469" - }, - "@angular-devkit/schematics-cli": { - "name": "Schematics CLI", - "version": "0.0.0", - "hash": "" - }, - "@schematics/angular": { - "name": "Angular Schematics", - "section": "Schematics", - "version": "0.1.11", - "hash": "94b15bcd6aafddd2cfa32c10bf1d46ab" - }, - "@schematics/schematics": { - "name": "Schematics Schematics", - "version": "0.0.11", - "section": "Schematics", - "hash": "e5e524d6f6c523d4aed505bd7e6344cf" - }, - "@schematics/package-update": { - "name": "Package JSON Update Schematics", - "version": "0.0.1", - "section": "Schematics", - "hash": "" - } - } -} diff --git a/.nvmrc b/.nvmrc deleted file mode 100644 index 62f9457511..0000000000 --- a/.nvmrc +++ /dev/null @@ -1 +0,0 @@ -6 \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d4cdd89768..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,27 +0,0 @@ -dist: trusty - -language: node_js - -env: - global: - - DBUS_SESSION_BUS_ADDRESS=/dev/null - -matrix: - fast_finish: true - include: - - node_js: "6" - os: linux - env: SCRIPT=lint - - node_js: "6" - os: linux - env: SCRIPT=test - -before_install: - # Install yarn. - - curl -o- -L https://yarnpkg.com/install.sh | bash - - export PATH="$HOME/.yarn/bin:$PATH" - - yarn config set spin false - - yarn config set progress false - -script: - - if [[ "$SCRIPT" ]]; then npm run $SCRIPT; fi diff --git a/BUILD b/BUILD deleted file mode 100644 index 4f999acd21..0000000000 --- a/BUILD +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright Google Inc. All Rights Reserved. -# -# Use of this source code is governed by an MIT-style license that can be -# found in the LICENSE file at https://angular.io/license -package(default_visibility = ["//visibility:public"]) - -licenses(["notice"]) # MIT License - -exports_files([ - "LICENSE", - "tsconfig.json" # @external -]) - -# NOTE: this will move to node_modules/BUILD in a later release -# @external_begin -filegroup( - name = "node_modules", - srcs = glob(["node_modules/**/*"]) -) -# @external_end diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index 4008bb6cb8..0000000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,246 +0,0 @@ -# Contributing to Angular DevKit - -We would love for you to contribute to DevKit and help make it even better -than it is today! As a contributor, here are the guidelines we would like you -to follow: - - - [Code of Conduct](#coc) - - [Question or Problem?](#question) - - [Issues and Bugs](#issue) - - [Feature Requests](#feature) - - [Submission Guidelines](#submit) - - [Coding Rules](#rules) - - [Commit Message Guidelines](#commit) - - [Signing the CLA](#cla) - -## Code of Conduct -Help us keep Angular open and inclusive. Please read and follow our [Code of Conduct][coc]. - -## Got a Question or Problem? - -Please, do not open issues for the general support questions as we want to keep GitHub issues for bug reports and feature requests. You've got much better chances of getting your question answered on [StackOverflow](https://stackoverflow.com/questions/tagged/angular-devkit) where the questions should be tagged with tag `angular-devkit`. - -StackOverflow is a much better place to ask questions since: - -- there are thousands of people willing to help on StackOverflow -- questions and answers stay available for public viewing so your question / answer might help someone else -- StackOverflow's voting system assures that the best answers are prominently visible. - -To save your and our time we will be systematically closing all the issues that are requests for general support and redirecting people to StackOverflow. - -If you would like to chat about the question in real-time, you can reach out via [our gitter channel][gitter]. - -## Found an Issue? -If you find a bug in the source code or a mistake in the documentation, you can help us by -[submitting an issue](#submit-issue) to our [GitHub Repository][github]. Even better, you can -[submit a Pull Request](#submit-pr) with a fix. - -## Want a Feature? -You can *request* a new feature by [submitting an issue](#submit-issue) to our [GitHub -Repository][github]. If you would like to *implement* a new feature, please submit an issue with -a proposal for your work first, to be sure that we can use it. -Please consider what kind of change it is: - -* For a **Major Feature**, first open an issue and outline your proposal so that it can be -discussed. This will also allow us to better coordinate our efforts, prevent duplication of work, -and help you to craft the change so that it is successfully accepted into the project. -* **Small Features** can be crafted and directly [submitted as a Pull Request](#submit-pr). - -## Submission Guidelines - -### Submitting an Issue - -Before you submit an issue, please search the issue tracker, maybe an issue for your problem already exists and the discussion might inform you of workarounds readily available. - -We want to fix all the issues as soon as possible, but before fixing a bug we need to reproduce and confirm it. Having a reproducible scenario gives us wealth of important information without going back & forth to you with additional questions like: - -- version of Angular DevKit used -- `.angular-cli.json` configuration -- 3rd-party libraries and their versions -- and most importantly - a use-case that fails - -A minimal reproduce scenario using allows us to quickly confirm a bug (or point out coding problem) as well as confirm that we are fixing the right problem. - -We will be insisting on a minimal reproduce scenario in order to save maintainers time and ultimately be able to fix more bugs. Interestingly, from our experience users often find coding problems themselves while preparing a minimal repository. We understand that sometimes it might be hard to extract essentials bits of code from a larger code-base but we really need to isolate the problem before we can fix it. - -Unfortunately we are not able to investigate / fix bugs without a minimal reproduction, so if we don't hear back from you we are going to close an issue that don't have enough info to be reproduced. - -You can file new issues by filling out our [new issue form](https://github.com/angular/devkit/issues/new). - - -### Submitting a Pull Request (PR) -Before you submit your Pull Request (PR) consider the following guidelines: - -* Search [GitHub](https://github.com/angular/devkit/pulls) for an open or closed PR - that relates to your submission. You don't want to duplicate effort. -* Please sign our [Contributor License Agreement (CLA)](#cla) before sending PRs. - We cannot accept code without this. -* Make your changes in a new git branch: - - ```shell - git checkout -b my-fix-branch master - ``` - -* Create your patch, **including appropriate test cases**. -* Follow our [Coding Rules](#rules). -* Run the full Angular DevKit test suite, as described in the [developer documentation][dev-doc], - and ensure that all tests pass (coming soon). -* Commit your changes using a descriptive commit message that follows our - [commit message conventions](#commit). Adherence to these conventions - is necessary because release notes are automatically generated from these messages. - - ```shell - git commit -a - ``` - Note: the optional commit `-a` command line option will automatically "add" and "rm" edited files. - -* Push your branch to GitHub: - - ```shell - git push origin my-fix-branch - ``` - -* In GitHub, send a pull request to `devkit:master`. -* If we suggest changes then: - * Make the required updates. - * Re-run the Angular DevKit test suites to ensure tests are still passing. - * Rebase your branch and force push to your GitHub repository (this will update your Pull Request): - - ```shell - git rebase master -i - git push -f - ``` - -That's it! Thank you for your contribution! - -#### After your pull request is merged - -After your pull request is merged, you can safely delete your branch and pull the changes -from the main (upstream) repository: - -* Delete the remote branch on GitHub either through the GitHub web UI or your local shell as follows: - - ```shell - git push origin --delete my-fix-branch - ``` - -* Check out the master branch: - - ```shell - git checkout master -f - ``` - -* Delete the local branch: - - ```shell - git branch -D my-fix-branch - ``` - -* Update your master with the latest upstream version: - - ```shell - git pull --ff upstream master - ``` - -## Coding Rules -To ensure consistency throughout the source code, keep these rules in mind as you are working: - -* All features or bug fixes **must be tested** by one or more specs (unit-tests or e2e-tests). -* All public API methods **must be documented**. (Details TBC). -* We follow [Google's JavaScript Style Guide][js-style-guide], but wrap all code at - **100 characters**. - -## Commit Message Guidelines - -We have very precise rules over how our git commit messages can be formatted. This leads to **more -readable messages** that are easy to follow when looking through the **project history**. But also, -we use the git commit messages to **generate the Angular DevKit change log**. - -### Commit Message Format -Each commit message consists of a **header**, a **body** and a **footer**. The header has a special -format that includes a **type**, a **scope** and a **subject**: - -``` -(): - - - -