-
Notifications
You must be signed in to change notification settings - Fork 14
Conversation
Changes Unknown when pulling fc285dc on RAINCATCH-1021-release-process into ** on master**. |
1 similar comment
Changes Unknown when pulling fc285dc on RAINCATCH-1021-release-process into ** on master**. |
scripts/publish-app.js
Outdated
var ghpages = require('gh-pages'); | ||
var path = require('path'); | ||
var fs = require('fs'); | ||
var args = require('yargs') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work! Great to have command line tool for publishing packages.
scripts/publish-app.js
Outdated
var appName = args._[0]; | ||
|
||
var appInfo = { | ||
server: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Suggestion] It will be cool to have this as separate json later.
Nothing really needed. Just suggestion.
scripts/publish-app.js
Outdated
add: true, | ||
remote: 'origin', | ||
repo: target.repo, | ||
user: { name: "Wojciech Trocki", email: "wtrocki@redhat.com" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I put my names to check if github user will be mapped (it works).
We may allow to override that? I'm not sure as mostly releases will be done by single person.
scripts/publish-app.js
Outdated
branch: version, | ||
dotfiles: true, | ||
//Only add, and never remove existing files | ||
add: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was just using this for spike how repo size will change. add: true
adds additional commit on top of the current changes. This will allow developers to see differences between releases. Not sure if we need it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 considering we'll use branches named by version I don't think there's much difference in not having the add flag
@@ -0,0 +1,38 @@ | |||
#!/bin/bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯 Awesome change! Really really good that we can test publishing without populating npm!
scripts/publish-app.js
Outdated
repo: 'git@github.com:feedhenry-templates/wfm-server.git' | ||
}, | ||
mobile: { | ||
path: 'demo/mobile', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How this path is being executed? Curious as mobile is outside this repository.
Do you see us moving mobile to this repo by the time ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was only testing this with demo/server for now, I was hoping that if we reuse this same script from ~/raincatcher-angularjs/core/scripts
, we mess around with the pwd so the relative path is correct.
4899bb9
to
66d7ad8
Compare
96423b9
to
968f3b1
Compare
To verify: NPM publish for packages:
Templates publishing for apps
|
@wtrocki this is ready for verification |
@@ -150,20 +150,21 @@ We recommend users to write their code in TypeScript, especially if their new Ra | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing update to common
folder in folder structure
@@ -1,6 +1,6 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Package is missing gitignore. js files are staged after release process.
}, | ||
"publish": { | ||
"ignore": "@raincatcher/demo-server", | ||
"exact": true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
scripts/publish-prepare.sh
Outdated
@@ -0,0 +1,10 @@ | |||
#!/bin/bash | |||
set -ev | |||
npm run clean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should also remove node_modules here and install stuff again to make sure that everything is clear.
@paolobueno I coudn't verify second part due to
|
Changes Unknown when pulling 262aa58 on RAINCATCH-1021-release-process into ** on master**. |
Motivation
Setup publishing to feedhenry templates for apps and npm publishing for modules
Progress