-
Notifications
You must be signed in to change notification settings - Fork 8
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
Can't follow instructions for repackage usage #2
Comments
@brecke - Thanks for opening this issue, I'm actively developing on these projects daily and you are the first beta tester. =) Documentation is weak at the moment since the interfaces may change but I am using both this boilerplate and repackage in production systems and will be improving their documentation. I'll give some inline documentation for its current state here that can serve as the basis for expanded documentation on the next release. Jump to bottom if you don't care about the details. repackageFor now the best way to use repackage is to install it globally At this time, repackage expects that you have a .repackagerc { "username": "cchamberlain"
, "organization": "cchamberlain"
, "full": "Cole Chamberlain"
, "email": "[email protected]"
} This file is used to configure package.json settings specific to the library author. I plan to make this file optional / auto-generated and also allow it to be placed in your home directory but I haven't gotten there yet. For now just drop that into the project root (feel free to modify in your fork to match your github info). Once this file exists you should be able to run I'd be grateful for any feedback you could provide as I want to improve this user experience. TL;DR;
From root of repo in CLI:
|
It looks like its having some sort of failure in transpiling given the references to traceur (I use babel across the board so the traceur bit stands out as strange). I'll try and get a fix out for this this weekend, in the meantime can you replace the scripts section of your package.json with the following linux formatted version and attempt to run "scripts": {
"prebuild-package": "rimraf package",
"build-package": "babel src/package -d package",
"prebuild-webpack": "rimraf webpack && npm run copy-config-client && npm run copy-config-server && npm run build-package && npm run build-config-client && npm run build-config-server",
"build-webpack": "babel src/config.client.js -o config.client.js && babel src/config.server.js -o config.server.js && babel src/webpack.config.js -o webpack.config.js && babel src/webpack.static.config.js -o webpack.static.config.js && babel src/webpack -d webpack",
"prebuild-public": "rimraf public && npm run build-webpack && npm run build-package",
"build-public": "ncp src/public public && webpack --config webpack.static.config.js --progress --profile --colors",
"prebuild-app": "npm run build-public",
"build-app": "webpack --config webpack.config.js --progress --profile --colors",
"prebuild-bin": "rimraf bin",
"build-bin": "babel src/bin -d bin",
"watch-bin": "babel src/bin -d bin --watch",
"prebuild-lib": "rimraf lib",
"build-lib": "babel src/lib -d lib",
"watch-lib": "babel src/lib -d lib --watch",
"prebuild-test": "rimraf test",
"build-test": "babel src/test -d test",
"watch-test": "babel src/test -d test --watch",
"precopy-config-client": "rimraf config-client.json",
"copy-config-client": "ncp src/config-client.json config-client.json",
"precopy-config-server": "rimraf config-server.json",
"copy-config-server": "ncp src/config-server.json config-server.json",
"prebuild-config-client": "rimraf config.client.js",
"build-config-client": "babel src/config.client.js -o config.client.js",
"prebuild-config-server": "rimraf config.client.js",
"build-config-server": "babel src/config.client.js -o config.client.js",
"precopy-app": "rimraf public/vendor",
"copy-app": "ncp src/app/vendor public/vendor",
"transform": "transform-package",
"link-dev": "npm link ../redux-addons ../redux-blueprint ../redux-idle-monitor ../react-redux-idle-monitor ../redux-grid ../redux-grid-view ../redux-middleware ../redux-mux ../save-as",
"postbuild-app": "npm run copy-app",
"build-lib-dev": "NODE_ENV=development npm run build-lib",
"build-lib-prod": "NODE_ENV=production npm run build-lib",
"build-lib-prod-osx": "NODE_ENV=production npm run build-lib",
"build-prod": "NODE_ENV=production npm run build-app && npm run build-lib-prod && npm run build-bin",
"build-dev": "NODE_ENV=development npm run build-app && npm run build-lib-dev && npm run build-bin",
"build-hot": "NODE_ENV=hot npm run build-app && npm run build-lib-dev && npm run build-bin",
"start-hot": "NODE_ENV=hot npm run build-hot && node bin/run",
"start": "NODE_ENV=production npm run build-prod && node bin/run",
"build": "npm run build-app && npm run build-bin && npm run build-lib",
"watch": "npm run watch-build",
"predoc": "rimraf doc",
"doc": "esdoc -c ./esdoc.json",
"prerelease": "npm run build",
"release": "npm version patch && npm publish",
"postrelease": "npm run release-doc",
"prerelease-doc": "npm run doc",
"release-doc": "git subtree push --prefix public origin gh-pages",
"postrelease-doc": "git commit -am \"doc-release\" && git push --follow-tags",
"test": "karma start"
} |
Hi, It works 99%, I'm getting a css loading error
But other than that, seems to be working. Will try to figure it out later. |
Thinking it must be NODE_ENV related, can you try from command line Most my testing has been on Windows so thinking that may be where the diff is. |
Hey there,
I was just trying out this boilerplate but I can't follow the instructions on the site namely the ones regarding the usage of
repackage
. Here's what I got:I'm definitely a noob in jsland so any help is appreciated. Thanks!
The text was updated successfully, but these errors were encountered: