From a2781804712f248f92bed94555b72d223dd16c4f Mon Sep 17 00:00:00 2001 From: Matthias Rohmer Date: Wed, 16 Jan 2019 18:15:58 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A5=20Start=20splitting=20up=20platfor?= =?UTF-8?q?m=20package?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #1349 --- platform/.gcloudignore => .gcloudignore | 17 +++++++++++++++-- platform/app.yaml => app.yaml | 0 platform/package.json => package.json | 14 +++++++------- 3 files changed, 22 insertions(+), 9 deletions(-) rename platform/.gcloudignore => .gcloudignore (70%) rename platform/app.yaml => app.yaml (100%) rename platform/package.json => package.json (74%) diff --git a/platform/.gcloudignore b/.gcloudignore similarity index 70% rename from platform/.gcloudignore rename to .gcloudignore index a3f0c766722..b1ce2aa2529 100644 --- a/platform/.gcloudignore +++ b/.gcloudignore @@ -6,12 +6,25 @@ # For more information, run: # $ gcloud topic gcloudignore # + .gcloudignore + # If you would like to upload your .git directory, .gitignore file or files # from your .gitignore file, remove the corresponding line # below: .git .gitignore +.github + +node_modules/ +yarn.lock +package-lock.json +LICENSE +MAINTENANCE.md +README.md +CONTRIBUTING.md -# Node.js dependencies: -node_modules/ \ No newline at end of file +# The complete frontend, pages and examples packages aren't needed on App Engine +frontend/ +pages/ +examples/ diff --git a/platform/app.yaml b/app.yaml similarity index 100% rename from platform/app.yaml rename to app.yaml diff --git a/platform/package.json b/package.json similarity index 74% rename from platform/package.json rename to package.json index 1d3808ae33f..3e0685dde28 100644 --- a/platform/package.json +++ b/package.json @@ -5,17 +5,17 @@ "repository": "git@github.com:ampproject/docs.git", "main": "serve.js", "scripts": { - "develop": "node build.js", + "develop": "cd platform && node build.js", "lint": "npm-run-all lint:*", - "lint:grow": "node lib/pipeline/growReferenceChecker.js", + "lint:grow": "cd platform && node lib/pipeline/growReferenceChecker.js", "lint:node": "eslint \"**/*.js\" --ignore-path ../.gitignore", "fix:node": "eslint \"**/*.js\" --fix --ignore-path ../.gitignore", - "build:playground": "cd ../playground && npm run build", - "build:local": "NODE_ENV=local node build.js", - "build:staging": "NODE_ENV=staging node build.js", + "build:playground": "cd playground && npm run build", + "build:local": "NODE_ENV=local cd platform && node build.js", + "build:staging": "NODE_ENV=staging cd platform && node build.js", "deploy": "gcloud app deploy", - "start:local": "NODE_ENV=local node serve.js", - "start": "NODE_ENV=staging node serve.js" + "start:local": "NODE_ENV=local cd platform && node serve.js", + "start": "NODE_ENV=staging cd platform && node serve.js" }, "keywords": [ "amphtml",