Skip to content

Commit

Permalink
Merge pull request #3 from rodydavis/es-modules
Browse files Browse the repository at this point in the history
ES Module Support
  • Loading branch information
rodydavis authored Jun 16, 2021
2 parents a852f8c + f2c33b1 commit 33039de
Show file tree
Hide file tree
Showing 23 changed files with 440 additions and 367 deletions.
18 changes: 6 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,24 @@ Disclaimer: This is not an officially supported Google product.
3. Install bower

``` shell
npm install -g bower
npm install
```

4. Install dependencies

``` shell
bower install
```

5. Populate config files
4. Populate config files

Rename `config_sample.yaml` to `config.yaml`

(this file can be left blank for most users)


Rename `app/js/config_sample.js` to `app/js/config.js`
Rename `app/js/config_sample.ts` to `app/js/config.ts`

Fill in values for `window.__directConfig.stagingDomain` and `window.__directConfig.productionDomain` if you intend to use staging and production environments. Otherwise, they can be left as empty strings.


6. Run a local instance
5. Run a local instance
``` shell
dev_appserver.py .
npm run serve
```

7. View the server at http://localhost:8080/
6. View the server at http://localhost:8080/
8 changes: 0 additions & 8 deletions app/js/config.ts

This file was deleted.

7 changes: 0 additions & 7 deletions app/js/config_sample.ts

This file was deleted.

4 changes: 1 addition & 3 deletions app/js/app.ts → app/ts/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ if (window) {
Object.assign(config, window.__directConfig);
}

declare const gapi;
declare const google;
declare const angular;

const app = angular.module("spec", [
export var app = angular.module("spec", [
"ngRoute",
"ngResource",
"ngMaterial",
Expand Down
2 changes: 2 additions & 0 deletions app/js/baseCtrl.ts → app/ts/baseCtrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import { app } from "./app.js";

app.controller(
"baseCtrl",
function ($scope, $http, $window, $location, $mdDialog, Spec) {
Expand Down
Loading

0 comments on commit 33039de

Please sign in to comment.