|
|
%!s(int64=5) %!d(string=hai) anos | |
|---|---|---|
| .vscode | %!s(int64=5) %!d(string=hai) anos | |
| app-server | %!s(int64=5) %!d(string=hai) anos | |
| server | %!s(int64=5) %!d(string=hai) anos | |
| src | %!s(int64=5) %!d(string=hai) anos | |
| .babelrc | %!s(int64=5) %!d(string=hai) anos | |
| .editorconfig | %!s(int64=6) %!d(string=hai) anos | |
| .env | %!s(int64=5) %!d(string=hai) anos | |
| .eslintrc.json | %!s(int64=5) %!d(string=hai) anos | |
| .gitignore | %!s(int64=5) %!d(string=hai) anos | |
| README.md | %!s(int64=5) %!d(string=hai) anos | |
| config.xml | %!s(int64=5) %!d(string=hai) anos | |
| index.html | %!s(int64=5) %!d(string=hai) anos | |
| package-lock.json | %!s(int64=5) %!d(string=hai) anos | |
| package.json | %!s(int64=5) %!d(string=hai) anos | |
| webpack.config.js | %!s(int64=5) %!d(string=hai) anos |
git clone https://USERNAME@bitbucket.org/jojolb/twelve-heroes.git! So far all the code I worked on is in the branch named "test" !
cd twelve-heroesAll the new code in on branch "test" so go there :
git checkout test
Create your own branch from this code and name it as you want :
git checkout -b \<name of your branch\> test
To push modifs :
from project root folder ("twelve-heroes/") :
1) git add . ( <-- with '.', it will add all modified files for a commit)
2) git commit -m "description of the change"
3) git push origin \<name of your branch\>
npm install (<-- this will install all dependencies, might take some time)npm run startnpm run dev to launch app in chrome only without server)"scripts": {
"server": "babel-node server/main.js",
"dev": "webpack --watch",
"precor-build": "cordova prepare",
"cor-build": "CORDOVA=true cordova build -- --webpackConfig webpack.config.js",
"cordova": "CORDOVA=true cordova run -- -w webpack.config.js",
"start": "npm-run-all --parallel server dev lint:watch",
"lint": "esw webpack.config.* src --color",
"lint:watch": "npm run lint -- --watch",
"localtunnel": "lt --port 3000",
"share": "npm-run-all --parallel open:src localtunnel",
"test": "mocha --reporter progress \"src/**/*.test.js\"",
"test:watch": "npm run test -- --watch",
"clean": "git clean -fdx -e node_modules"
}
npm run <script name> will run <script name>npm start is a shortcut for npm run startnpm run script-name it will first run prescript-name, then script-name, and finally postscript-namenpm run server
npm run dev
npm cor-build
npm run cordova
npm run start or npm start
npm run lint
npm run lint:watch
npm run localtunnel
npm start or npm run devnpm run share
npm run test
npm run test:watch
npm run clean
https://drive.google.com/open?id=11j-IW2OL5ZOaeF3YGyvXjFDLz7BJdpW_