Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to protect remote files #7

Closed
yvele opened this issue Feb 6, 2017 · 3 comments
Closed

Add an option to protect remote files #7

yvele opened this issue Feb 6, 2017 · 3 comments
Assignees

Comments

@yvele
Copy link
Owner

yvele commented Feb 6, 2017

No description provided.

@yvele yvele self-assigned this Feb 6, 2017
@yvele yvele changed the title Add an exclude option Add an option to protect remote files Feb 15, 2017
yvele added a commit that referenced this issue Feb 16, 2017
@yvele yvele closed this as completed Feb 16, 2017
@yvele
Copy link
Owner Author

yvele commented Feb 16, 2017

@vousk Done in v2.0.0 😉

{
  plugins : ["s3"],
  baseDir : "./deploy",
  remote  : "s3-us-west-2.amazonaws.com/my-bucket",

  each: [{
    headers   : { "cache-control": { cacheable: "public" } }
  }, {
    match     : "**/*.{html,css,js}",
    gzip      : true,
    headers   : { "cache-control": { maxAge: "48 hours" } }
  }, {
    match     : "**/*.{jpg,png,gif,ico}",
    gzip      : false,
    headers   : { "cache-control": { maxAge: "1 year" } }
  }, {
    match     : "**/*.html",
    priority  : -1
  }],

+  ignore: [
+    "**/dont-touch-me.html",
+    "dont-touch-me/**"
+  ]
}

@vousk
Copy link

vousk commented Feb 17, 2017

@yvele
I've just updated to 2.0.0.
> npm run deploy -- sync --readonly works perfectly (ignore is successfully taking in account).

But now > npm run deploy -- --readonly gives me the following error :

> @hapticmedia/[email protected] deploy D:\DONNEES\DEV\HM_hapViz3D\Tools\Deploy
> poosh "--readonly"


  error: unknown option `--readonly'


npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\DEV\\nodejs\\node.exe" "C:\\DEV\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "deploy" "--" "--readonly"
npm ERR! node v5.5.0
npm ERR! npm  v3.3.12
npm ERR! code ELIFECYCLE
npm ERR! @hapticmedia/[email protected] deploy: `poosh "--readonly"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @hapticmedia/[email protected] deploy script 'poosh "--readonly"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the @hapticmedia/hapviz-deploy package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     poosh "--readonly"
npm ERR! You can get their info via:
npm ERR!     npm owner ls @hapticmedia/hapviz-deploy
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     D:\DONNEES\DEV\HM_hapViz3D\Tools\Deploy\npm-debug.log

@yvele
Copy link
Owner Author

yvele commented Feb 17, 2017

@vousk --read-only (that's one of the breaking changes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants