Use yarn instead of npm.
This commit is contained in:
parent
8cccf4d9cd
commit
1967637d98
11
README.md
11
README.md
|
@ -325,15 +325,14 @@ fastd-Key und die MAC-Adresse angeben.
|
|||
|
||||
### Abhängigkeiten
|
||||
|
||||
* node.js + NPM
|
||||
* node.js + yarn
|
||||
* compass (Installation z. B. via Ruby's `gem`)
|
||||
* grunt (Installation z. B. via `npm install grunt-cli`)
|
||||
* ggf. bower (Installation z. B. via `npm install bower`)
|
||||
* ggf. bower (Installation z. B. via `yarn install bower`)
|
||||
|
||||
|
||||
### Build
|
||||
|
||||
`npm run clean && npm run build`
|
||||
`yarn run clean && yarn run build`
|
||||
|
||||
Der Output landet dann unter `dist/`.
|
||||
|
||||
|
@ -341,14 +340,14 @@ Der Output landet dann unter `dist/`.
|
|||
### Server starten
|
||||
|
||||
1. Zunächst eine `config.json` anlegen wie oben unter "Installation / Konfiguration" beschrieben.
|
||||
2. `npm run server:run -- -c config.json`
|
||||
2. `yarn run server:run -- -c config.json`
|
||||
|
||||
Der Server ist dann erreichbar unter [http://localhost:8080](http://localhost:8080).
|
||||
|
||||
|
||||
### Life-Reload vom Client
|
||||
|
||||
`npm client:serve`
|
||||
`yarn client:serve`
|
||||
|
||||
Der Client ist dann erreichbar via [http://localhost:9000](http://localhost:9000), erwartet aber, dass der Server für
|
||||
die REST-API auch läuft (s. o.) und auf Port `8080` erreichbar ist.
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
* Make admin panel part of new frontend package.
|
||||
* Get rid of grunt.
|
||||
* Bluebird for promises?
|
||||
* Yarn instead of NPM?
|
||||
* Use generated type guards.
|
||||
|
||||
## Mid term
|
||||
|
||||
|
|
32963
package-lock.json
generated
32963
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -19,14 +19,14 @@
|
|||
"ffffng": "server/main.js"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "npm run server:test",
|
||||
"build": "npm run server:build && grunt build && rsync -avzL --exclude='*/__mocks__/' --exclude='*.test.*' server-build/ dist/server/",
|
||||
"test": "yarn run server:test",
|
||||
"build": "yarn run server:build && grunt build && rsync -avzL --exclude='*/__mocks__/' --exclude='*.test.*' server-build/ dist/server/",
|
||||
"clean": "rm -rf server-build/ && grunt clean",
|
||||
"dist": "npm run clean && npm run build && npm run test",
|
||||
"dist": "yarn run clean && yarn run build && yarn run test",
|
||||
"client:serve": "grunt serve",
|
||||
"server:test": "jest --config=jest.server.config.js",
|
||||
"server:build": "tsc -b server && ln -sfv ../../server/db/patches ./server-build/db/ && ln -sfv ../server/templates ./server-build/ && ln -sfv ../server/mailTemplates ./server-build/",
|
||||
"server:run": "npm run server:build && node server-build/main.js"
|
||||
"server:run": "yarn run server:build && node server-build/main.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"async": "^3.2.3",
|
||||
|
|
|
@ -41,8 +41,8 @@ fi
|
|||
echo
|
||||
|
||||
if confirm "Continue publishing?"; then
|
||||
npm run dist
|
||||
yarn run dist
|
||||
|
||||
cd dist
|
||||
npm publish
|
||||
yarn publish
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue