diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 9e5ad2464..d83ecb317 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,6 +1,6 @@ - + I am using Pattern Lab Node `vX.X.X` on `Windows | Mac | Linux`, with Node `vX.X.X`, using a `Gulp | Grunt | Vanilla | Custom` Edition. diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml new file mode 100644 index 000000000..c5dc1c246 --- /dev/null +++ b/.github/workflows/continuous-integration.yml @@ -0,0 +1,28 @@ +name: Continuous Integration +on: [push, pull_request] + +jobs: + build: + name: Build & Test + runs-on: ubuntu-latest + steps: + - name: Check out the source code + uses: actions/checkout@v2 + + - name: Set up NodeJS + uses: actions/setup-node@v1.4.2 + with: + node-version: '>=12.12.0' + + - name: Setup the project + run: | + yarn run setup + npx lerna add @pattern-lab/engine-mustache --scope=@pattern-lab/core + npx lerna add @pattern-lab/engine-handlebars --scope=@pattern-lab/core + npx lerna add @pattern-lab/engine-underscore --scope=@pattern-lab/core + npx lerna add @pattern-lab/engine-liquid --scope=@pattern-lab/core + npx lerna add @pattern-lab/engine-twig --scope=@pattern-lab/core + npx lerna add @pattern-lab/engine-react --scope=@pattern-lab/core + + - name: Run Unit Tests + run: yarn run test diff --git a/README.md b/README.md index abc5c735a..f651549fb 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ If you'd like to see what a front-end project built with Pattern Lab looks like, ![license](https://img.shields.io/github/license/pattern-lab/patternlab-node.svg) [![Coverage Status](https://coveralls.io/repos/github/pattern-lab/patternlab-node/badge.svg?branch=master)](https://coveralls.io/github/pattern-lab/patternlab-node?branch=master) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) -[![node (scoped)](https://img.shields.io/node/v/@pattern-lab/patternlab-node.svg)]() +[![node (scoped)](https://img.shields.io/node/v/@pattern-lab/core.svg)]() [![Join the chat at Gitter](https://badges.gitter.im/pattern-lab/node.svg)](https://gitter.im/pattern-lab/node) Docs @ [![Netlify Status](https://api.netlify.com/api/v1/badges/d454dbde-02c5-4bd4-8393-4ab75e862b03/deploy-status)](https://app.netlify.com/sites/patternlab-docs-preview/deploys) diff --git a/packages/cli/package.json b/packages/cli/package.json index 847f1d94d..add0687b7 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -55,7 +55,7 @@ "bugs": "https://github.com/pattern-lab/patternlab-node/issues", "license": "MIT", "engines": { - "node": ">=10.0" + "node": ">=12.12.0" }, "publishConfig": { "access": "public" diff --git a/packages/core/package.json b/packages/core/package.json index 866ea172d..1ddd553a2 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -71,7 +71,7 @@ "test": "tap test/*_tests.js --reporter spec --coverage" }, "engines": { - "node": ">=10.0" + "node": ">=12.12.0" }, "publishConfig": { "access": "public" diff --git a/packages/development-edition-engine-react/package.json b/packages/development-edition-engine-react/package.json index e17c489fd..2d976da52 100644 --- a/packages/development-edition-engine-react/package.json +++ b/packages/development-edition-engine-react/package.json @@ -31,6 +31,6 @@ }, "license": "MIT", "engines": { - "node": ">=10.0" + "node": ">=12.12.0" } } diff --git a/packages/development-edition-engine-twig/package.json b/packages/development-edition-engine-twig/package.json index 949ac8f24..806f4c1bc 100644 --- a/packages/development-edition-engine-twig/package.json +++ b/packages/development-edition-engine-twig/package.json @@ -26,7 +26,7 @@ "url": "git://github.com/pattern-lab/patternlab-node.git" }, "engines": { - "node": ">=10.0" + "node": ">=12.12.0" }, "dependencies": { "@pattern-lab/cli": "^5.9.3", diff --git a/packages/edition-node-gulp/package.json b/packages/edition-node-gulp/package.json index 86df154c9..bdadbf885 100644 --- a/packages/edition-node-gulp/package.json +++ b/packages/edition-node-gulp/package.json @@ -27,7 +27,7 @@ }, "license": "MIT", "engines": { - "node": ">=10.0" + "node": ">=12.12.0" }, "publishConfig": { "access": "public" diff --git a/packages/edition-node/package.json b/packages/edition-node/package.json index 25c2821d6..86641a99c 100644 --- a/packages/edition-node/package.json +++ b/packages/edition-node/package.json @@ -27,7 +27,7 @@ }, "license": "MIT", "engines": { - "node": ">=10.0" + "node": ">=12.12.0" }, "publishConfig": { "access": "public" diff --git a/packages/edition-twig/package.json b/packages/edition-twig/package.json index f3d13f65f..6e05dae3d 100644 --- a/packages/edition-twig/package.json +++ b/packages/edition-twig/package.json @@ -29,7 +29,7 @@ "@pattern-lab/uikit-workshop": "^5.9.3" }, "engines": { - "node": ">=6.0" + "node": ">=12.12.0" }, "publishConfig": { "access": "public" diff --git a/packages/engine-handlebars/package.json b/packages/engine-handlebars/package.json index 5ab060d43..c0f8115bb 100644 --- a/packages/engine-handlebars/package.json +++ b/packages/engine-handlebars/package.json @@ -23,7 +23,7 @@ "license": "MIT", "scripts": {}, "engines": { - "node": ">=12.0" + "node": ">=12.12.0" }, "publishConfig": { "access": "public" diff --git a/packages/engine-liquid/package.json b/packages/engine-liquid/package.json index dfb15fed3..c5b711207 100644 --- a/packages/engine-liquid/package.json +++ b/packages/engine-liquid/package.json @@ -22,7 +22,7 @@ "license": "MIT", "scripts": {}, "engines": { - "node": ">=10.0" + "node": ">=12.12.0" }, "publishConfig": { "access": "public" diff --git a/packages/engine-mustache/package.json b/packages/engine-mustache/package.json index 6142804b3..9c54ab7dc 100644 --- a/packages/engine-mustache/package.json +++ b/packages/engine-mustache/package.json @@ -22,7 +22,7 @@ "license": "MIT", "scripts": {}, "engines": { - "node": ">=10.0" + "node": ">=12.12.0" }, "publishConfig": { "access": "public" diff --git a/packages/engine-nunjucks/package.json b/packages/engine-nunjucks/package.json index 575c4af28..3cb0925ce 100644 --- a/packages/engine-nunjucks/package.json +++ b/packages/engine-nunjucks/package.json @@ -11,7 +11,7 @@ "nunjucks": "^3.2.0" }, "engines": { - "node": ">=10.0" + "node": ">=12.12.0" }, "keywords": [ "Pattern Lab", diff --git a/packages/engine-react/package.json b/packages/engine-react/package.json index bbde28cac..ccb595d87 100644 --- a/packages/engine-react/package.json +++ b/packages/engine-react/package.json @@ -31,7 +31,7 @@ "license": "MIT", "scripts": {}, "engines": { - "node": ">=10.0" + "node": ">=12.12.0" }, "publishConfig": { "access": "public" diff --git a/packages/engine-twig-php/package.json b/packages/engine-twig-php/package.json index d1a3bd703..9fa718661 100644 --- a/packages/engine-twig-php/package.json +++ b/packages/engine-twig-php/package.json @@ -28,7 +28,7 @@ "license": "MIT", "scripts": {}, "engines": { - "node": ">=8.9" + "node": ">=12.12.0" }, "publishConfig": { "access": "public" diff --git a/packages/engine-twig/package.json b/packages/engine-twig/package.json index 2b3723c0a..ea9c85f11 100644 --- a/packages/engine-twig/package.json +++ b/packages/engine-twig/package.json @@ -22,7 +22,7 @@ "license": "MIT", "scripts": {}, "engines": { - "node": ">=10.0" + "node": ">=12.12.0" }, "publishConfig": { "access": "public" diff --git a/packages/engine-underscore/package.json b/packages/engine-underscore/package.json index b103cbbcb..e778d831b 100644 --- a/packages/engine-underscore/package.json +++ b/packages/engine-underscore/package.json @@ -23,7 +23,7 @@ "lint": "eslint **/*.js" }, "engines": { - "node": ">=10.0" + "node": ">=12.12.0" }, "publishConfig": { "access": "public" diff --git a/packages/live-server/package.json b/packages/live-server/package.json index 9d5e5d0a1..43b65e70e 100644 --- a/packages/live-server/package.json +++ b/packages/live-server/package.json @@ -43,7 +43,7 @@ "repository": "https://github.com/pattern-lab/patternlab-node/tree/master/packages/live-server", "bugs": "https://github.com/pattern-lab/patternlab-node/issues", "engines": { - "node": ">=10.0" + "node": ">=12.12.0" }, "publishConfig": { "access": "public" diff --git a/packages/plugin-tab/package.json b/packages/plugin-tab/package.json index 387057575..3af0aa71b 100644 --- a/packages/plugin-tab/package.json +++ b/packages/plugin-tab/package.json @@ -9,7 +9,7 @@ "lodash": "4.17.15" }, "engines": { - "node": ">=10.0" + "node": ">=12.12.0" }, "repository": "https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab", "bugs": "https://github.com/pattern-lab/patternlab-node/issues", diff --git a/packages/uikit-workshop/.github/CONTRIBUTING.md b/packages/uikit-workshop/.github/CONTRIBUTING.md deleted file mode 100644 index 8cb32513f..000000000 --- a/packages/uikit-workshop/.github/CONTRIBUTING.md +++ /dev/null @@ -1,40 +0,0 @@ -# Contributing to the Default Pattern Lab Front End - -If you'd like to contribute to the default front end for Pattern Lab Node, please do so! There is always a lot of ground to cover and something for your wheelhouse. - -## Developing Locally - -The best way to make changes to this repo and test them is through your existing edition. - -### Node - -* Fork this repository on Github. -* Create a new branch in your fork and push your changes in that fork. -* `npm install` -* `npm link` -* `cd /path/to/your/edition` -* `npm link @pattern-lab/uikit-workshop` - -## Making Changes - -To make changes **always edit files in `src/`**. To make sure that these changes are reflected in the front-end and `dist/` folder run the following: - - npm run build - -To watch for changes you can use: - - npm run watch - -At this point changes to the static assets should compile to the correct locations in the project as well as `dist/`. - -## Guidelines - -* Pattern Lab uses a standard [git flow model](http://nvie.com/posts/a-successful-git-branching-model/) unless otherwise noted in a repository. The `develop` branch is not considered stable. Tags and releases are cut from the `master` branch -* _USUALLY_ submit pull requests against the [develop branch](https://github.com/pattern-lab/uikit-workshop/tree/dev). If you have a major feature to stabilize over time, open an issue about making a dedicated `feature-branch` off of `develop` -* Please keep your pull requests concise and limited to **ONE** substantive change at a time. This makes reviewing and testing so much easier. -* Commits should reference the issue you are adressing. -* Large enhancements should begin with opening an issue. This will result in a more systematic way for us to review your contribution and determine if a [specifcation discussion](https://github.com/pattern-lab/the-spec/issues) needs to occur. - -## Coding style - -* The `.editorconfig` controls spaces / tabs within supported editors. Check out their [site](http://editorconfig.org/).