migrate to NPM (#696)
This commit is contained in:
parent
96893b2ee4
commit
9d019bba2e
7 changed files with 57600 additions and 15077 deletions
42
.github/workflows/ci.yml
vendored
42
.github/workflows/ci.yml
vendored
|
@ -17,11 +17,11 @@ jobs:
|
|||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: yarn
|
||||
cache: npm
|
||||
- name: Install Dependencies
|
||||
run: yarn install --frozen-lockfile
|
||||
run: npm ci
|
||||
- name: Lint
|
||||
run: yarn lint
|
||||
run: npm run lint
|
||||
|
||||
test-bundlesize:
|
||||
name: test bundlesize
|
||||
|
@ -36,11 +36,11 @@ jobs:
|
|||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: yarn
|
||||
cache: npm
|
||||
- name: Install node modules
|
||||
run: yarn install
|
||||
run: npm ci
|
||||
- name: Run tests
|
||||
run: yarn test:bundlesize
|
||||
run: npm run test:bundlesize
|
||||
|
||||
test-csp-header:
|
||||
name: test CSP in .htaccess
|
||||
|
@ -50,11 +50,11 @@ jobs:
|
|||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: yarn
|
||||
cache: npm
|
||||
- name: Install node modules
|
||||
run: yarn install
|
||||
run: npm ci
|
||||
- name: Run tests
|
||||
run: yarn test:csp-header
|
||||
run: npm run test:csp-header
|
||||
|
||||
test-chrome:
|
||||
name: test against Chrome
|
||||
|
@ -64,9 +64,9 @@ jobs:
|
|||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: yarn
|
||||
cache: npm
|
||||
- name: Install node modules
|
||||
run: yarn install
|
||||
run: npm ci
|
||||
- name: Install chrome browser
|
||||
run: |
|
||||
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
||||
|
@ -74,9 +74,9 @@ jobs:
|
|||
- name: Build with test environment
|
||||
env:
|
||||
CI: true
|
||||
run: yarn build --environment test
|
||||
run: npm run build --environment test
|
||||
- name: run tests in chrome
|
||||
run: yarn test:ember --launch Chrome --path dist
|
||||
run: npm run test:ember --launch Chrome --path dist
|
||||
|
||||
test-firefox:
|
||||
name: test against Firefox
|
||||
|
@ -86,9 +86,9 @@ jobs:
|
|||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: yarn
|
||||
cache: npm
|
||||
- name: Install node modules
|
||||
run: yarn install
|
||||
run: npm ci
|
||||
- name: Setup firefox
|
||||
uses: browser-actions/setup-firefox@latest
|
||||
with:
|
||||
|
@ -96,9 +96,9 @@ jobs:
|
|||
- name: Build with test environment
|
||||
env:
|
||||
CI: true
|
||||
run: yarn build --environment test
|
||||
run: npm run build --environment test
|
||||
- name: run tests in firefox
|
||||
run: yarn test:ember --launch Firefox --path dist
|
||||
run: npm run test:ember --launch Firefox --path dist
|
||||
|
||||
test-browserstack:
|
||||
name: test against additional browser in BrowserStack
|
||||
|
@ -108,13 +108,13 @@ jobs:
|
|||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: yarn
|
||||
cache: npm
|
||||
- name: Install node modules
|
||||
run: yarn install
|
||||
run: npm ci
|
||||
- name: Build with test environment
|
||||
env:
|
||||
CI: true
|
||||
run: yarn build --environment test
|
||||
run: npm run build --environment test
|
||||
- name: 'BrowserStack Env Setup'
|
||||
uses: 'browserstack/github-actions/setup-env@master'
|
||||
with:
|
||||
|
@ -127,7 +127,7 @@ jobs:
|
|||
local-logging-level: 'all-logs'
|
||||
local-identifier: 'random'
|
||||
- name: 'Running test on BrowserStack'
|
||||
run: yarn test:ember --config-file testem.browserstack.js --path dist
|
||||
run: npm run test:ember --config-file testem.browserstack.js --path dist
|
||||
- name: 'BrowserStackLocal Stop'
|
||||
uses: browserstack/github-actions/setup-local@master
|
||||
with:
|
||||
|
|
14
README.md
14
README.md
|
@ -8,15 +8,7 @@ Croodle is an end-to-end encrypted web application to schedule a date or to do a
|
|||
|
||||
This is an alpha version. Changes could brake backward compatibility. It is also not well tested and some features are missing. It is not meant for productive use yet.
|
||||
|
||||
<<<<<<< HEAD
|
||||
Croodle is inspired by [PrivateBin](https://github.com/PrivateBin/PrivateBin) and, of course, by Doodle.
|
||||
=======
|
||||
* [Git](https://git-scm.com/)
|
||||
* [Node.js](https://nodejs.org/)
|
||||
* [Yarn](https://yarnpkg.com/)
|
||||
* [Ember CLI](https://cli.emberjs.com/release/)
|
||||
* [Google Chrome](https://google.com/chrome/)
|
||||
>>>>>>> e9ac386 (v3.28.6...v4.4.1)
|
||||
|
||||
## Security notice
|
||||
|
||||
|
@ -39,14 +31,14 @@ Due to security reasons you should have TLS encryption enabled and provide a val
|
|||
|
||||
Production builds are provided as github [release assets](https://github.com/jelhan/croodle/releases).
|
||||
|
||||
If you like to build yourself you have to install [node](https://nodejs.org/), [yarn](https://yarnpkg.com/), [ember-cli](http://www.ember-cli.com/) and [composer](https://getcomposer.org/) before. It's recommended using [volta](https://volta.sh/) to ensure a compatible and tested node version is used.
|
||||
If you like to build yourself you have to install [node](https://nodejs.org/), [ember-cli](http://www.ember-cli.com/) and [composer](https://getcomposer.org/) before. It's recommended using [volta](https://volta.sh/) to ensure a compatible and tested node version is used.
|
||||
|
||||
```shell
|
||||
git clone git@github.com:jelhan/croodle.git
|
||||
cd croodle
|
||||
yarn install
|
||||
npm install
|
||||
cd api/ && composer install --no-dev && cd ..
|
||||
yarn build --prod
|
||||
npm run build
|
||||
```
|
||||
|
||||
Afterwards copy all files in `/dist` folder to your werbserver.
|
||||
|
|
|
@ -32,14 +32,14 @@ Once the prep work is completed, the actual release is straight forward:
|
|||
* First ensure that you have installed the project dependencies:
|
||||
|
||||
```sh
|
||||
yarn install
|
||||
npm ci
|
||||
```
|
||||
|
||||
* Second, do your release:
|
||||
|
||||
```sh
|
||||
export GITHUB_AUTH="github-personal-access-token"
|
||||
yarn release
|
||||
npm run release
|
||||
```
|
||||
|
||||
[release-it](https://github.com/release-it/release-it/) manages the actual
|
||||
|
|
57573
package-lock.json
generated
Normal file
57573
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -115,9 +115,6 @@
|
|||
"lib/inject-app-version-in-meta-tag"
|
||||
]
|
||||
},
|
||||
"resolutions": {
|
||||
"ember-get-config": "2.1.1"
|
||||
},
|
||||
"changelog": {
|
||||
"labels": {
|
||||
"breaking": ":boom: Breaking Change",
|
||||
|
|
|
@ -8,5 +8,5 @@
|
|||
"ignorePaths": [
|
||||
"lib/**"
|
||||
],
|
||||
"postUpdateOptions": ["yarnDedupeHighest"]
|
||||
"postUpdateOptions": ["npmDedupe"]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue