Browse Source

ci: move to pnpm

pull/926/head
dangreen 3 years ago
parent
commit
b830644b70
  1. 33
      .github/workflows/ci.yml
  2. 110
      package.json
  3. 2129
      pnpm-lock.yaml

33
.github/workflows/node.js.yml → .github/workflows/ci.yml

@ -1,29 +1,32 @@ @@ -1,29 +1,32 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
name: Tests (Node.js ${{ matrix.node-version }})
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v2.0.1
with:
version: 6
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run tests
run: pnpm test

110
package.json

@ -1,57 +1,57 @@ @@ -1,57 +1,57 @@
{
"name": "papaparse",
"version": "5.3.1",
"description": "Fast and powerful CSV parser for the browser that supports web workers and streaming large files. Converts CSV to JSON and JSON to CSV.",
"keywords": [
"csv",
"parser",
"parse",
"parsing",
"delimited",
"text",
"data",
"auto-detect",
"comma",
"tab",
"pipe",
"file",
"filereader",
"stream",
"worker",
"workers",
"thread",
"threading",
"multi-threaded",
"jquery-plugin"
],
"homepage": "http://papaparse.com",
"repository": {
"type": "git",
"url": "https://github.com/mholt/PapaParse.git"
},
"author": {
"name": "Matthew Holt",
"url": "https://twitter.com/mholt6"
},
"license": "MIT",
"main": "papaparse.js",
"browser": "papaparse.min.js",
"devDependencies": {
"chai": "^4.2.0",
"connect": "^3.3.3",
"eslint": "^4.19.1",
"grunt": "^1.0.2",
"grunt-contrib-uglify": "^3.3.0",
"mocha": "^5.2.0",
"mocha-headless-chrome": "^4.0.0",
"open": "7.0.0",
"serve-static": "^1.7.1"
},
"scripts": {
"lint": "eslint --no-ignore papaparse.js Gruntfile.js .eslintrc.js 'tests/**/*.js'",
"test-browser": "node tests/test.js",
"test-mocha-headless-chrome": "node tests/test.js --mocha-headless-chrome",
"test-node": "mocha tests/node-tests.js tests/test-cases.js",
"test": "npm run lint && npm run test-node && npm run test-mocha-headless-chrome"
}
"name": "papaparse",
"version": "5.3.1",
"description": "Fast and powerful CSV parser for the browser that supports web workers and streaming large files. Converts CSV to JSON and JSON to CSV.",
"keywords": [
"csv",
"parser",
"parse",
"parsing",
"delimited",
"text",
"data",
"auto-detect",
"comma",
"tab",
"pipe",
"file",
"filereader",
"stream",
"worker",
"workers",
"thread",
"threading",
"multi-threaded",
"jquery-plugin"
],
"homepage": "http://papaparse.com",
"repository": {
"type": "git",
"url": "https://github.com/mholt/PapaParse.git"
},
"author": {
"name": "Matthew Holt",
"url": "https://twitter.com/mholt6"
},
"license": "MIT",
"main": "papaparse.js",
"browser": "papaparse.min.js",
"scripts": {
"lint": "eslint --no-ignore papaparse.js Gruntfile.js .eslintrc.js 'tests/**/*.js'",
"test-browser": "node tests/test.js",
"test-mocha-headless-chrome": "node tests/test.js --mocha-headless-chrome",
"test-node": "mocha tests/node-tests.js tests/test-cases.js",
"test": "pnpm lint && pnpm test-node && pnpm test-mocha-headless-chrome"
},
"devDependencies": {
"chai": "^4.2.0",
"connect": "^3.3.3",
"eslint": "^4.19.1",
"grunt": "^1.0.2",
"grunt-contrib-uglify": "^3.3.0",
"mocha": "^5.2.0",
"mocha-headless-chrome": "^4.0.0",
"open": "7.0.0",
"serve-static": "^1.7.1"
}
}

2129
pnpm-lock.yaml

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save