Skip to content
Snippets Groups Projects
package.json 4.5 KiB
Newer Older
  • Learn to ignore specific revisions
  • Hugo NOUTS's avatar
    Hugo NOUTS committed
    {
    
      "name": "ecolyo",
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
      "version": "0.1.0",
      "scripts": {
        "tx": "tx pull --all || true",
        "lint": "yarn lint:js && yarn lint:styles",
        "lint:js": "cs lint '{src,test}/**/*.{js,jsx,ts,tsx}'",
        "lint:styles": "stylint src/styles --config ./.stylintrc",
        "prebuild": "yarn lint",
        "build:cs": "build:browser",
        "build:browser": "cs build --browser",
        "build:mobile": "cs build --mobile",
        "watch": "yarn watch:browser",
        "watch:browser": "cs watch --browser",
        "watch:mobile": "cs watch --mobile",
        "start:cs": "cs start --hot --browser --no-stack",
    
        "deploy": "git-directory-deploy --directory build/ --branch ${DEPLOY_BRANCH:-build} --repo=${DEPLOY_REPOSITORY:-https://forge.grandlyon.com/web-et-numerique/llle_project/ecolyo.git}",
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
        "test": "cs test --verbose --coverage",
        "cozyPublish": "git fetch origin ${DEPLOY_BRANCH:-build}:${DEPLOY_BRANCH:-build} && cs publish --token $REGISTRY_TOKEN --build-commit $(git rev-parse ${DEPLOY_BRANCH:-build})",
        "build:css": "node-sass -c ./src/styles -o src/styles",
        "watch:css": "yarn run build:css && node-sass -c -w ./src/styles -o src/styles",
        "start": "npm-run-all -p start:cs",
        "build": "yarn run build:css && yarn run build:browser",
        "release": "standard-version --no-verify",
    
        "winstack": "start powershell -command docker run --rm -it -p 8080:8080 -p 5984:5984 -p 8025:8025 -v $PWD/build:/data/cozy-app/ecolyo -v $PWD/data/konnectors_sources/:/data/cozy_konnectors/ -v $PWD/data:/usr/local/couchdb/data -v $PWD/docker/disableCSP.yaml:/etc/cozy/cozy.yaml registry.forge.grandlyon.com/web-et-numerique/llle_project/ecolyo/cozy-env",
    
    Romain CREY's avatar
    Romain CREY committed
        "linuxstack": "docker run --rm -it -p 8080:8080 -p 5984:5984 -p 8025:8025 -v $(pwd)/build:/data/cozy-app/ecolyo -v ~/cozy/data/db/konnectors_sources/:/data/cozy_konnectors/ -v ~/cozy/data/db:/usr/local/couchdb/data -v ~/cozy/data/storage:/data/cozy-storage -v $(pwd)/docker/disableCSP.yaml:/etc/cozy/cozy.yaml 5fdc0725024f",
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
        "load-data": "cd test && importData.bat"
      },
      "repository": {
        "type": "git",
    
        "url": "git+https://forge.grandlyon.com/web-et-numerique/llle_project/ecolyo.git"
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
      },
      "author": "",
      "contributors": [],
      "license": "AGPL-3.0",
      "bugs": {
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
      },
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
      "devDependencies": {
        "@babel/preset-typescript": "^7.7.4",
        "@types/d3": "^5.7.2",
        "@types/lodash": "^4.14.149",
        "@types/luxon": "^1.21.0",
        "@types/react": "^16.9.15",
        "@types/react-router-dom": "^5.1.3",
        "@typescript-eslint/eslint-plugin": "^2.10.0",
        "@typescript-eslint/parser": "^2.10.0",
        "babel-preset-cozy-app": "1.5.2",
        "cozy-app-publish": "^0.22.3",
        "enzyme": "3.10.0",
        "enzyme-adapter-react-16": "1.14.0",
        "eslint": "^6.7.2",
        "eslint-config-prettier": "^6.7.0",
        "eslint-plugin-prettier": "^3.1.1",
        "eslint-plugin-react": "7.14.2",
        "git-directory-deploy": "1.5.1",
        "husky": ">=1",
        "lint-staged": ">=8",
        "loglevel": "^1.6.6",
        "npm-run-all": "^4.1.5",
        "prettier": "^1.19.1",
        "prettier-eslint": "^9.0.1",
        "react-hot-loader": "4.12.6",
        "react-test-renderer": "16.8.6",
        "redux-mock-store": "1.5.3",
        "standard-version": "^7.0.1",
        "stylint": "1.5.9",
        "typescript": "^3.7.3"
      },
      "dependencies": {
        "@babel/plugin-transform-modules-commonjs": "^7.7.5",
        "@babel/plugin-transform-runtime": "^7.8.3",
        "@fortawesome/fontawesome-svg-core": "^1.2.26",
        "@fortawesome/free-solid-svg-icons": "^5.12.0",
        "@fortawesome/react-fontawesome": "^0.1.8",
        "@types/history": "^4.7.5",
        "@types/jest": "^24.0.25",
        "@types/object-hash": "^1.3.1",
        "@types/react-lottie": "^1.2.3",
        "axios": "^0.19.0",
        "cozy-bar": "^7.7.10",
        "cozy-client": "6.49.0",
        "cozy-harvest-lib": "^1.15.3",
        "cozy-scripts": "2.0.2",
        "cozy-ui": "21.7.0",
        "d3": "^5.15.0",
        "eslint-config-cozy-app": "1.1.12",
        "global": "^4.4.0",
        "lodash": "^4.17.15",
        "luxon": "^1.21.3",
        "moment": "^2.24.0",
        "moment-timezone": "^0.5.27",
        "node-sass": "^4.13.0",
        "object-hash": "^2.0.3",
        "react": "16.8.6",
        "react-dom": "16.8.6",
        "react-lottie": "^1.2.3",
        "react-router-dom": "5.0.1",
        "react-swipeable-views": "0.13.4",
        "sass-loader": "^8.0.0"
      },
      "husky": {
        "hooks": {
          "pre-commit": "lint-staged"
        }
      },
      "lint-staged": {
        "{src,test}/**/*.{js,jsx,ts,tsx}": [
          "eslint --fix",
          "git add"
        ]
      }
    }