mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
commit
f5616781c5
4 changed files with 7370 additions and 59 deletions
69
.circleci/config.yml
Normal file
69
.circleci/config.yml
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
version: 2.1
|
||||||
|
orbs:
|
||||||
|
node: circleci/node@5
|
||||||
|
commands:
|
||||||
|
deploy_npm:
|
||||||
|
steps:
|
||||||
|
- run:
|
||||||
|
# This assumes the git user info is already configured
|
||||||
|
name: Deploy to NPM
|
||||||
|
command: |
|
||||||
|
export RELEASE_VERSION="0.11.$(date +%Y%m%d%H%M%S)"
|
||||||
|
if [[ "$CIRCLE_BRANCH" == hotfix/* ]]; then
|
||||||
|
export NPM_TAG=hotfix
|
||||||
|
else
|
||||||
|
export NPM_TAG=latest
|
||||||
|
fi
|
||||||
|
echo "Deploying version $RELEASE_VERSION to $NPM_TAG"
|
||||||
|
npm --no-git-tag-version version $RELEASE_VERSION
|
||||||
|
npm set //registry.npmjs.org/:_authToken=$NPM_TOKEN
|
||||||
|
npm publish --tag $NPM_TAG
|
||||||
|
if npm info | grep -q $RELEASE_VERSION; then
|
||||||
|
git tag $RELEASE_VERSION
|
||||||
|
git push \
|
||||||
|
https://${GH_TOKEN}@github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}.git \
|
||||||
|
$RELEASE_VERSION
|
||||||
|
fi
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
default:
|
||||||
|
docker:
|
||||||
|
- image: circleci/node:10-browsers # TODO: switch to cimg/node:* after upgrading gulp
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run: git submodule update --init --recursive
|
||||||
|
- run:
|
||||||
|
name: Setup
|
||||||
|
command: |
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install libgif-dev
|
||||||
|
TRAVIS_BRANCH="${CIRCLECI_BRANCH}" travis/setup-git.sh # Configure git user info
|
||||||
|
travis/install-assets.sh
|
||||||
|
npm set progress=false
|
||||||
|
which gulp || sudo npm install -g gulp-cli
|
||||||
|
- node/install-packages
|
||||||
|
- run: gulp jshint
|
||||||
|
- run: gulp minify
|
||||||
|
- run: gulp test
|
||||||
|
- run: gulp zip
|
||||||
|
- when:
|
||||||
|
condition:
|
||||||
|
or:
|
||||||
|
- equal: [ master, <<pipeline.git.branch>> ]
|
||||||
|
- equal: [ develop, <<pipeline.git.branch>> ]
|
||||||
|
- matches: { pattern: "^hotfix.*", value: <<pipeline.git.branch>> }
|
||||||
|
- matches: { pattern: "^release.*", value: <<pipeline.git.branch>> }
|
||||||
|
steps:
|
||||||
|
- run:
|
||||||
|
name: travis/deploy-prebuilt.sh
|
||||||
|
command: |
|
||||||
|
TRAVIS_TAG="${CIRCLE_TAG}" TRAVIS_COMMIT="${CIRCLE_SHA1}" travis/deploy-prebuilt.sh
|
||||||
|
- deploy_npm
|
||||||
|
workflows:
|
||||||
|
version: 2
|
||||||
|
default:
|
||||||
|
jobs:
|
||||||
|
- default:
|
||||||
|
context:
|
||||||
|
- dockerhub-credentials
|
||||||
|
- scratch-npm-creds
|
58
.travis.yml
58
.travis.yml
|
@ -1,58 +0,0 @@
|
||||||
language: node_js
|
|
||||||
os: linux
|
|
||||||
# Follow https://github.com/nodejs/LTS to decide when to remove a version
|
|
||||||
node_js:
|
|
||||||
# Stable version is temporarily disabled due to a bug in resemblejs package with
|
|
||||||
# node v12 (https://github.com/orgs/paperjs/teams/contributors/discussions/12).
|
|
||||||
# - stable
|
|
||||||
# - 11
|
|
||||||
- 10
|
|
||||||
- 8
|
|
||||||
env:
|
|
||||||
jobs:
|
|
||||||
- CXX=g++-4.9
|
|
||||||
global:
|
|
||||||
- secure: o1fJ/suqcL0aX6PiOmip602dAM6Q6O5oU/BDhSueUOnYknbzWfWGOdsoMun0UYhvvdcXU4sHGH+wm0VeXa2igaxryx36uMxPsXB3mO4sATo/QlWX/r3wLCg2CViXhykE5l2gP45OHh5DJgKWs51cwGLDZ9y9JHlXSP/xIGBNkMGVC7qvyhTfEb0EVvirn9b7Kt8fmD8KYgNDrsmcR3d42f4jitt4Di9LsRyOG+SCXZfI3u831tHo1sgZuGK2rxx2SdEclIblEUCkFHLp0HPjq1+032Cg5D7HNloSCPfoSwcY+rOWHubNXhmXgZHFeSkaVglkdWlDE3NiyjNlYwc4m9zqfCip8jw/jUeSfFVtruncEumGLLBxE/aMBQjAQLTq24juabm3qZNgrNCFeFo+XNyx2Oz1jllGve6Vuu8Qg0wFqE+qlZKnxNbu5/3IOIawOE1uhaOG8oSuvlpQuNrHFIMEfzh2UKPiUHbElUDyoTzHlrhQr7ZSPWPJax4uIPOTscpK4Yks7FBS4I0Vnuhw41f/bVR0kLE9jNAQoUpp47ma9O2Sw9fhOwEiopVrADzARUiy0eNeLx8F2F73L0wyPBOtEL1cfCr5oY+yZ5ZfDYb/L8/GIlbMnljYxVbXesmwd8RFi8X2HUNnEmusjih9oWazVuZpiFfUO0oeu15JTBg=
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- ubuntu-toolchain-r-test
|
|
||||||
- git-core
|
|
||||||
packages:
|
|
||||||
- g++-4.9
|
|
||||||
- git
|
|
||||||
- libcairo2-dev
|
|
||||||
- libpango1.0-dev
|
|
||||||
- libssl-dev
|
|
||||||
- libjpeg62-dev
|
|
||||||
- libgif-dev
|
|
||||||
cache:
|
|
||||||
directories:
|
|
||||||
- "~/.assets"
|
|
||||||
- "~/.nvm"
|
|
||||||
- node_modules
|
|
||||||
install:
|
|
||||||
- travis/install-assets.sh
|
|
||||||
before_script:
|
|
||||||
- travis/setup-git.sh
|
|
||||||
- npm set progress=false
|
|
||||||
- which gulp || npm install -g gulp-cli
|
|
||||||
- npm install
|
|
||||||
script:
|
|
||||||
- gulp jshint
|
|
||||||
- gulp minify
|
|
||||||
- gulp test
|
|
||||||
- gulp zip
|
|
||||||
- '[ "${TRAVIS_BRANCH}" = "develop" ] && [ "${TRAVIS_NODE_VERSION}" = "stable" ] && travis/deploy-prebuilt.sh || true'
|
|
||||||
before_deploy:
|
|
||||||
- npm --no-git-tag-version version 0.11.$(date +%Y%m%d%H%M%S)
|
|
||||||
- git config --global user.email $(git log --pretty=format:"%ae" -n1)
|
|
||||||
- git config --global user.name $(git log --pretty=format:"%an" -n1)
|
|
||||||
deploy:
|
|
||||||
- provider: npm
|
|
||||||
node_js: 10
|
|
||||||
on:
|
|
||||||
branch: develop
|
|
||||||
skip_cleanup: true
|
|
||||||
email: $NPM_EMAIL
|
|
||||||
api_key: $NPM_TOKEN
|
|
|
@ -1,4 +1,10 @@
|
||||||
# Paper.js - The Swiss Army Knife of Vector Graphics Scripting [![Build Status](https://travis-ci.org/paperjs/paper.js.svg?branch=develop)](https://travis-ci.org/paperjs/paper.js) [![NPM](https://img.shields.io/npm/v/paper.svg)](https://www.npmjs.com/package/paper)
|
# Scratch's fork of Paper.js [![Build Status](https://circleci.com/gh/LLK/paper.js.svg?style=shield)](https://app.circleci.com/pipelines/github/LLK/paper.js?branch=develop) [![NPM](https://img.shields.io/npm/v/@scratch/paper.svg)](https://www.npmjs.com/package/@scratch/paper)
|
||||||
|
|
||||||
|
This is a fork of Paper.js for use in Scratch. Please do not contact the Paper.js authors to support this fork.
|
||||||
|
|
||||||
|
_Original README.md below_
|
||||||
|
|
||||||
|
# Paper.js - The Swiss Army Knife of Vector Graphics Scripting
|
||||||
|
|
||||||
If you want to work with Paper.js, simply download the latest "stable" version
|
If you want to work with Paper.js, simply download the latest "stable" version
|
||||||
from [http://paperjs.org/download/](http://paperjs.org/download/)
|
from [http://paperjs.org/download/](http://paperjs.org/download/)
|
||||||
|
|
7294
package-lock.json
generated
Normal file
7294
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue