Skip to content

Commit

Permalink
Add copyright language.
Browse files Browse the repository at this point in the history
  • Loading branch information
beth-panx committed Jan 18, 2017
1 parent 074fd60 commit b017bba
Show file tree
Hide file tree
Showing 43 changed files with 183 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
# See LICENSE in the project root for license information.

# Created by https://www.gitignore.io/api/osx,windows

### OSX ###
Expand Down
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
# See LICENSE in the project root for license information.

!generators/**
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
# See LICENSE in the project root for license information.

sudo: false
language: node_js
cache:
Expand Down
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

{
"name": "generator-office",
"version": "1.0.0-beta.1",
"description": "",
"repository": "/generator-office",
"scripts": {
"copy": "cpx \"src/app/templates/**/*.*\" generators/app/templates",
"copy-watch": "cpx \"src/app/templates/**/*.*\" generators/app/templates --watch",
"tsc": "tsc -p tsconfig.json",
"start": "rimraf generators && concurrently \"tsc -p tsconfig.json -w\" \"cpx \"src/app/templates/**/*.*\" generators/app/templates --watch\"",
"tsc-watch": "tsc -p tsconfig.json -w",
"start": "rimraf generators && concurrently \"npm run tsc-watch\" \"npm run copy-watch\"",
"build": "rimraf generators && concurrently \"npm run tsc\" \"npm run copy\"",
"test": "mocha -r ts-node/register generators/test/**.js",
"postinstall": "typings install"
Expand Down
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,5 @@ Specifying `--js` tells the generator to use Javascript.
- Type: Boolean
- Default: False
- Optional

Copyright (c) 2017 Microsoft Corporation. All rights reserved.
5 changes: 5 additions & 0 deletions src/app/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

import * as fs from 'fs';
import * as path from 'path';
import * as appInsights from 'applicationinsights';
Expand Down
5 changes: 5 additions & 0 deletions src/app/templates/js/angular/app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

'use strict';

(function(){
Expand Down
5 changes: 5 additions & 0 deletions src/app/templates/js/angular/controllers/home.controller.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

'use strict';

(function () {
Expand Down
3 changes: 3 additions & 0 deletions src/app/templates/js/angular/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. -->
<!-- See LICENSE in the project root for license information -->

<!DOCTYPE html>
<html>

Expand Down
5 changes: 5 additions & 0 deletions src/app/templates/js/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

{
"name": "<%= projectInternalName %>",
"description": "",
Expand Down
5 changes: 5 additions & 0 deletions src/app/templates/js/angular/services/data.service.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

'use strict';

(function () {
Expand Down
3 changes: 3 additions & 0 deletions src/app/templates/js/base/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
# See LICENSE in the project root for license information.

# Created by https://www.gitignore.io/api/osx,windows

### OSX ###
Expand Down
5 changes: 4 additions & 1 deletion src/app/templates/js/base/app.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/* Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See full license in root of repo. */
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

html,
body {
Expand Down
5 changes: 5 additions & 0 deletions src/app/templates/js/base/bsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

{
"ui": {
"port": 3000
Expand Down
5 changes: 5 additions & 0 deletions src/app/templates/js/jquery/app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

'use strict';

(function () {
Expand Down
3 changes: 3 additions & 0 deletions src/app/templates/js/jquery/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. -->
<!-- See LICENSE in the project root for license information -->

<!DOCTYPE html>
<html>

Expand Down
5 changes: 5 additions & 0 deletions src/app/templates/js/jquery/package.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

{
"name": "<%= projectInternalName %>",
"description": "",
Expand Down
3 changes: 3 additions & 0 deletions src/app/templates/manifest-only/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
# See LICENSE in the project root for license information.

# Created by https://www.gitignore.io/api/osx,windows

### OSX ###
Expand Down
5 changes: 5 additions & 0 deletions src/app/templates/manifest-only/package.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

{
"name": "<%= projectInternalName %>",
"description": "",
Expand Down
3 changes: 3 additions & 0 deletions src/app/templates/manifest/excel.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. -->
<!-- See LICENSE in the project root for license information -->

<?xml version="1.0" encoding="UTF-8"?>
<OfficeApp
xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
Expand Down
3 changes: 3 additions & 0 deletions src/app/templates/manifest/onenote.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. -->
<!-- See LICENSE in the project root for license information -->

<?xml version="1.0" encoding="UTF-8"?>
<OfficeApp
xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
Expand Down
3 changes: 3 additions & 0 deletions src/app/templates/manifest/outlook.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. -->
<!-- See LICENSE in the project root for license information -->

<?xml version="1.0" encoding="UTF-8"?>
<OfficeApp
xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
Expand Down
3 changes: 3 additions & 0 deletions src/app/templates/manifest/powerpoint.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. -->
<!-- See LICENSE in the project root for license information -->

<?xml version="1.0" encoding="UTF-8"?>
<OfficeApp
xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
Expand Down
3 changes: 3 additions & 0 deletions src/app/templates/manifest/project.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. -->
<!-- See LICENSE in the project root for license information -->

<?xml version="1.0" encoding="UTF-8"?>
<OfficeApp
xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
Expand Down
3 changes: 3 additions & 0 deletions src/app/templates/manifest/word.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. -->
<!-- See LICENSE in the project root for license information -->

<?xml version="1.0" encoding="UTF-8"?>
<OfficeApp
xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
Expand Down
5 changes: 5 additions & 0 deletions src/app/templates/ts/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

{
"name": "<%= projectInternalName %>",
"description": "",
Expand Down
5 changes: 5 additions & 0 deletions src/app/templates/ts/angular/src/app.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

declare var angular: any;

(function(){
Expand Down
5 changes: 5 additions & 0 deletions src/app/templates/ts/angular/src/data.service.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

(function () {
angular
.module('<%= projectInternalName %>')
Expand Down
5 changes: 5 additions & 0 deletions src/app/templates/ts/angular/src/index.controller.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

(function () {
angular
.module('<%= projectInternalName %>')
Expand Down
3 changes: 3 additions & 0 deletions src/app/templates/ts/angular/src/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. -->
<!-- See LICENSE in the project root for license information -->

<!DOCTYPE html>
<html>

Expand Down
5 changes: 5 additions & 0 deletions src/app/templates/ts/angular/typings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

{
"globalDependencies": {
"office-js": "registry:dt/office-js#0.0.0+20161213215240"
Expand Down
3 changes: 3 additions & 0 deletions src/app/templates/ts/base/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
# See LICENSE in the project root for license information.

# Created by https://www.gitignore.io/api/osx,windows

### OSX ###
Expand Down
5 changes: 5 additions & 0 deletions src/app/templates/ts/base/bsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

{
"ui": {
"port": 3000
Expand Down
5 changes: 4 additions & 1 deletion src/app/templates/ts/base/src/app.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/* Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See full license in root of repo. */
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

html,
body {
Expand Down
5 changes: 5 additions & 0 deletions src/app/templates/ts/base/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

{
"compilerOptions": {
"target": "es5",
Expand Down
5 changes: 5 additions & 0 deletions src/app/templates/ts/jquery/package.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

{
"name": "<%= projectInternalName %>",
"description": "",
Expand Down
5 changes: 5 additions & 0 deletions src/app/templates/ts/jquery/src/app.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

(() => {
// The initialize function must be run each time a new page is loaded
Office.initialize = (reason) => {
Expand Down
5 changes: 5 additions & 0 deletions src/app/templates/ts/jquery/typings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

{
"globalDependencies": {
"jquery": "registry:dt/jquery#1.10.0+20170104155652",
Expand Down
5 changes: 5 additions & 0 deletions src/test/existing-project.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

let helpers = require('yeoman-test');
let assert = require('yeoman-assert');
import * as path from 'path';
Expand Down
5 changes: 5 additions & 0 deletions src/test/new-project.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

let helpers = require('yeoman-test');
let assert = require('yeoman-assert');
import * as path from 'path';
Expand Down
5 changes: 5 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

{
"compilerOptions": {
"target": "es6",
Expand Down
5 changes: 5 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

{
"rules": {
"no-reference": true,
Expand Down
5 changes: 5 additions & 0 deletions typings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/

{
"globalDependencies": {
"applicationinsights": "registry:dt/applicationinsights#0.15.12+20161119044246",
Expand Down

0 comments on commit b017bba

Please sign in to comment.