Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Feat safari homescreen #15

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 26 additions & 17 deletions _gulpfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,45 @@ const clientTsProject = ts.createProject('src/client/tsconfig.json', {

const clientRoot = 'src/client';
const distClientRoot = 'dist/client';
const clientTsTree = [`${clientRoot}/app/**/*.ts`];
const clientVendorDeps = [
'node_modules/angular2/**/*.js',
'node_modules/systemjs/**/*.js',
'node_modules/rxjs/**/*.js',
'node_modules/zone.js/dist/*.js',
'node_modules/reflect-metadata/Reflect.js'
];
const clientHtmlTree = [`${clientRoot}/**/*.html`];
const paths = {
client: {
ts: `${clientRoot}/app/**/*.ts`,
html: `${clientRoot}/**/*.html`,
images: `${clientRoot}/**/*.+(png|jpg|gif|ico)`,
firebaseConfig: `${clientRoot}/firebase.json`,
vendorDeps: [
'node_modules/angular2/**/*.js',
'node_modules/systemjs/**/*.js',
'node_modules/rxjs/**/*.js',
'node_modules/zone.js/dist/*.js',
'node_modules/reflect-metadata/Reflect.js'
]
}
};

gulp.task('clean', (done) => {
return fse.remove('dist', done);
});

gulp.task('build:client', ['clean'], () => {
return merge2([
gulp.src(clientTsTree.concat('typings/browser/ambient/**/*.ts'))
gulp.src([
paths.client.ts,
'typings/browser/ambient/**/*.ts'
])
.pipe(ts(clientTsProject))
.pipe(gulp.dest(`${distClientRoot}/app`)),
gulp.src(clientHtmlTree)
gulp.src([
paths.client.html,
paths.client.firebaseConfig,
paths.client.images
])
.pipe(gulp.dest(distClientRoot)),
gulp.src(`${clientRoot}/firebase.json`)
.pipe(gulp.dest(distClientRoot)),
gulp.src(clientVendorDeps, {base: 'node_modules'})
gulp.src(paths.client.vendorDeps, {base: 'node_modules'})
.pipe(gulp.dest(`${distClientRoot}/vendor`))
]);
});



gulp.task('enforce-format', function() {
return doCheckFormat().on('warning', function(e) {
console.log("ERROR: You forgot to run clang-format on your change.");
Expand All @@ -61,7 +70,7 @@ gulp.task('lint', function() {
"variable-name": false
}
};
return gulp.src(clientTsTree)
return gulp.src(paths.client.ts)
.pipe(tslint({
tslint: require('tslint').default,
configuration: tslintConfig,
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"test": "karma start --single-run; gulp enforce-format; gulp lint",
"postinstall": "typings install",
"start": "cd dist/client; firebase serve"
"start": "cd dist/client; firebase serve",
"build_and_deploy": "gulp build:client; cd dist/client; firebase deploy"
},
"repository": {
"type": "git",
Expand Down
9 changes: 8 additions & 1 deletion src/client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@
<head>
<meta charset="utf-8">
<title>Issue Zero</title>
<base href="/">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta id="theme-color" name="theme-color" content="#999999">
<base href="/">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="apple-touch-icon" href="/touch-icon.png">
<link rel="apple-touch-icon" sizes="76x76" href="/touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="120x120" href="/touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="152x152" href="/touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="167x167" href="/touch-icon-167x167.png">
<link rel="apple-touch-icon" sizes="180x180" href="/touch-icon-180x180.png">
</head>
<body>
<issue-zero-app></issue-zero-app>
Expand Down
Binary file added src/client/touch-icon-120x120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/client/touch-icon-152x152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/client/touch-icon-167x167.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/client/touch-icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/client/touch-icon-76x76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/client/touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/media/logo.graffle
Binary file not shown.