Skip to content

Commit 6c1318c

Browse files
author
featherless
authored
Merge pull request #15 from rodydavis/master
Migrate to NPM and Typescript
2 parents d980ea0 + 7663f66 commit 6c1318c

File tree

678 files changed

+97704
-1358
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

678 files changed

+97704
-1358
lines changed

.bowerrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
app/js/

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./node_modules/gts/"
3+
}

.github/workflows/tests.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
name: Test
3+
on:
4+
push:
5+
branches:
6+
- master
7+
jobs:
8+
build:
9+
name: Build
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@master
14+
run: npm i
15+
run: npm run test

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
bower_components
2+
node_modules
23
*.pyc
3-
4+
.vscode
45
.DS_Store
5-
6+
app/js/*.js
67
config.js
78
config.yaml
89

.prettierrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"bracketSpacing": false,
3+
"singleQuote": true,
4+
"trailingComma": "es5",
5+
"arrowParens": "avoid"
6+
}

README.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Direct
22

3+
[![Code Style: Google](https://img.shields.io/badge/code%20style-google-blueviolet.svg)](https://github.com/google/gts)
4+
35
Direct is a tool that helps motion designers provide clear, precise motion direction for engineers.
46

57
As motion design becomes more and more prominent in apps, it’s becoming increasingly important to develop a standard for communicating direction from motion designers. Once an animation is finalized, simply handing off a video file to engineers makes it very difficult for them to recreate. Animations take a lot of engineering time to implement and there are a lot of subtleties that could get lost in translation. As designers, it’s our responsibility to make sure that engineers have everything they need to quickly recreate this motion.
@@ -12,33 +14,27 @@ Disclaimer: This is not an officially supported Google product.
1214

1315
2. Install [node.js and npm](https://nodejs.org/)
1416

15-
3. Install bower
16-
17-
``` shell
18-
npm install -g bower
19-
```
20-
21-
4. Install dependencies
17+
3. Install dependencies
2218

2319
``` shell
24-
bower install
20+
npm i
2521
```
2622

27-
5. Populate config files
23+
4. Populate config files
2824

2925
Rename `config_sample.yaml` to `config.yaml`
3026

3127
(this file can be left blank for most users)
3228

3329

34-
Rename `app/js/config_sample.js` to `app/js/config.js`
30+
Rename `app/ts/config_sample.ts` to `app/ts/config.ts`
3531

3632
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.
3733

3834

39-
6. Run a local instance
35+
5. Run a local instance
4036
``` shell
41-
dev_appserver.py .
37+
npm run start
4238
```
4339

44-
7. View the server at http://localhost:8080/
40+
6. View the server at http://localhost:8080/

app.yaml

Lines changed: 40 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -17,59 +17,62 @@ api_version: 1
1717
threadsafe: yes
1818

1919
handlers:
20-
# Testing
21-
- url: /test
22-
static_files: test/index.html
23-
upload: test/index.html
20+
# Testing
21+
- url: /test
22+
static_files: test/index.html
23+
upload: test/index.html
2424

25-
# Tutorial
26-
- url: /tutorial
27-
static_dir: tutorial
25+
# Tutorial
26+
- url: /tutorial
27+
static_dir: tutorial
2828

29-
- url: /tutorial
30-
static_files: tutorial/index.html
31-
upload: tutorial/index.html
29+
- url: /tutorial
30+
static_files: tutorial/index.html
31+
upload: tutorial/index.html
3232

33-
# App Routing
34-
- url: /favicon\.ico
35-
static_files: favicon.ico
36-
upload: favicon\.ico
33+
# App Routing
34+
- url: /favicon\.ico
35+
static_files: favicon.ico
36+
upload: favicon\.ico
3737

38-
- url: /robots.txt
39-
static_files: robots.txt
40-
upload: robots.txt
38+
- url: /robots.txt
39+
static_files: robots.txt
40+
upload: robots.txt
4141

42-
- url: /app
43-
static_dir: app
42+
- url: /app
43+
static_dir: app
4444

45-
- url: /bower_components
46-
static_dir: bower_components
45+
- url: /node_modules
46+
static_dir: node_modules
4747

48-
- url: /css
49-
static_dir: app/css
48+
- url: /third_party
49+
static_dir: third_party
5050

51-
- url: /img
52-
static_dir: app/img
51+
- url: /css
52+
static_dir: app/css
5353

54-
- url: /js
55-
static_dir: app/js
54+
- url: /img
55+
static_dir: app/img
5656

57-
- url: /partials
58-
static_dir: app/partials
57+
- url: /js
58+
static_dir: app/js
5959

60-
- url: .*
61-
script: main.app
60+
- url: /partials
61+
static_dir: app/partials
62+
63+
- url: .*
64+
script: main.app
6265

6366
# Libraries
6467
libraries:
65-
- name: webapp2
66-
version: "2.5.2"
68+
- name: webapp2
69+
version: "2.5.2"
6770

68-
- name: jinja2
69-
version: latest
71+
- name: jinja2
72+
version: latest
7073

71-
- name: pycrypto
72-
version: "2.6"
74+
- name: pycrypto
75+
version: "2.6"
7376

7477
# Don't Upload
7578
skip_files: |

app/js/app.js

Lines changed: 0 additions & 96 deletions
This file was deleted.

app/js/baseCtrl.js

Lines changed: 0 additions & 94 deletions
This file was deleted.

0 commit comments

Comments
 (0)