Skip to content

Commit

Permalink
refactor: reimplement the internals of codegen
Browse files Browse the repository at this point in the history
* chore: add vue experimental codegen (wip)

* docs: Update README.md (#299)

* fix(editor): icon was not visible for lit Elements (#300)

The icon registered for lit-elements was defined as polymer.
Renamed it to litElement.

* feat(app): hightlight dropzone when dragging over it (#301)

Closes 270

* chore: add blocgen base

* chore: move new codegen to subfolder

* chore: add css parser

* chore: rename root folder

* chore: add Parser options

* chore: add initial vue blocgen

* chore: add edge support for symbolmaster

* chore: separate codegen from parser

* chore: update vue readme

* chore: add tag autoclosing on empty

* fix: xml trailling space blank

* refactor: simplify bitmap ressource format

* fix: css classname property location

* fix: remove autoclose and add undefined css guard

* refactor: merge sketch style parser with blocgen

* fix: orphelin tag

* fix: configuration file not loaded

* chore: switch to blocgen adapter

* chore: conditionnal css output

* chore: add rule to svg

* chore: add text parser

* chore: add frame default css

* fix: join text array

* chore: move css class definition to css parser service

* refactor: explode blocgen service

* chore: blocgen local reorganisation

* refactor: separate blocgen from main code

* refactor: separate vue compute and render

* chore: remove useless vue import template

* refactor: modernize preview

* chore: add styling optimization

* fix: css optimizer

* fix: css shadow

* fix: blocgen svg and css

* fix: fill quote

* chore: inline shapes and images

* refactor: fix svg blocgen name

* refactor: remove karma files

* style: lint

* refactor: arg order and remove options arg

* chore: remove legacy blocgen

* fix: std blocgen type import path

* fix: libraries types

* fix: lib import

* fix: import path

* fix: integration tests

* fix: remove misssing lib.build.prod

* ci: remove lib.build

* refactor: remove meta editor config

* chore: remove useless properties

* fix: svg position

* chore: remove misplaced files

* refactor: remove inlined svg styles

* refactor: facade blocgen and rename sketch ingestor

* chore: merge layer and symbolMaster preview

* refactor: clean useless previousLayout

* chore: guard against nul currentData

* fix: shape preview

* refactor: remove old resource manager

* chore: clarify std naming

* chore: add symbol master in std

* style: global lint

* fix: missing page wireframe

* test: modernize integration test

* test: modernize e2e

* fix: jest config

* chore: remove useless sketch service test

* fix: test type conflict

* fix: explicit script fail

* chore: remove conditionnal traversing

* chore: add symbol master identifier util

* chore: merge text and bitmap blocgens to stdlib

* fix: symbol import

* chore: rename resource service

* fix: integration snapshot

* chore: add flexible rendering options

* chore: add Angular to blocgen

* chore: add lit and react codegen

* chore: web multi render integration

* chore: standardize name

* refactor: blocgen compute flow

* chore: add layer tools

* chore: change image dataurl to png

* chore: optimize css parser scope

* chore: image lookup return base64 by default

* chore: svg fixed size

* chore: optional svg options

* fix: svg context always true

* chore: remove get to put context

* chore: remove useless angular import

* chore: add xml namespace to web options

* chore: remove useless format service from webblocgen

* chore: ignore page layer from web

* chore: add optional classname generation

* chore: move angular routing template to service class

* chore: reindent stackblitz sample files

* chore: move stackblitz spec

* chore: npm audit fix

* fix: merge conflicts

* fix: typescript transpiler conflict

* chore: drop 50 and 51 version support

* style: global lint

* chore: bump circleci node version

* chore: disable demo list for less than 51

* fix: lint warning

* fix: svg flatmap

* chore: remove old package

* fix: cross app library dependency

* fix: circular deps

* fix: useless circular import

* core: fix package references

* chore: replace build by makefile

* fix: layer tree layout wireframe

* chore: remove deprecated rules

* refactor: list join to template

* chore: app build use makefile

* chore: update webblocgen context parsing

* fix: undefined stencil page

* fix: webrender html to string

* style: global lint

* fix: e2e tests

* fix: update test snapshot

* fix: editorconfig makefile indent

* chore: remove karma test

* chore: revert vscode setting

* chore: cleanup package css blocgen

* refactor: rename currentfile to currentdata

* refactor: rename sketchutil to sketchlib

* refactor: rename tag to group

* refactor: remove useless codecomponent oninit

* fix: add traversing to default web render

* style: lint web blocgen

* chore: remove missplaced quote

* fix: symbol tag

* chore: improve template

* chore: prestart hook

* chore: add make to build command

* chore: separate web parser from render

* chore: improve code templating

* fix: svg missing indent

* revert:  closure compiler annotate

* fix: block instead of text tag

* refactor: standardize code structure

* fix: uninterpreted react css import

* fix: missing oval

* revert: remove div class on text

* chore: xamarin svg compat bridge

* chore: remove default context behavior

* fix: templating

* chore: comment integration example

* fix: missing classname

* fix: image export

* fix: null context

* chore: remove web type block

* refactor: layer naming consistency

* refactor: remove useless prividers

* chore: add peer dependencies

* chore: rename render

* refactor: rename blocgen to codegen

* refactor: move xamarin codegen

* feat(landing-page): updated the landing page screenshots (#313)

Updated the screenshots on the landing page and the pointers.

Closes: #312

* fix(parser): pdf parsing at first (#324)

Change parsing pdf at first because of changes in sketch file

Closes #321, #323
  • Loading branch information
shikanime authored and manekinekko committed Oct 17, 2019
1 parent bb73378 commit 71d40fc
Show file tree
Hide file tree
Showing 192 changed files with 38,037 additions and 92,254 deletions.
127 changes: 114 additions & 13 deletions .circleci/config.yml
Expand Up @@ -2,7 +2,7 @@ version: 2
jobs:
"ci/build-app":
docker:
- image: circleci/node:10.12
- image: circleci/node:11.13.0

working_directory: ~/repo

Expand All @@ -24,12 +24,92 @@ jobs:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

- run: make

"ci/build-sketch-ingestor":
docker:
- image: circleci/node:11.13.0

working_directory: ~/repo

steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: npm install
- run:
name: Install JUnit coverage reporter
command: npm i -D jest-junit

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

- run:
command: npm run sketch-ingestor.build.prod

"ci/build-css-codegen":
docker:
- image: circleci/node:11.13.0

working_directory: ~/repo

steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: npm install
- run:
name: Install JUnit coverage reporter
command: npm i -D jest-junit

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

- run:
command: npm run csscodegen.build.prod

"ci/build-sketch-lib":
docker:
- image: circleci/node:11.13.0

working_directory: ~/repo

steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: npm install
- run:
command: npm run app.build.prod
name: Install JUnit coverage reporter
command: npm i -D jest-junit

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

- run:
command: npm run sketch-lib.build.prod

"ci/build-lib":
"ci/build-svg-codegen":
docker:
- image: circleci/node:10.12
- image: circleci/node:11.13.0

working_directory: ~/repo

Expand All @@ -52,11 +132,38 @@ jobs:
key: v1-dependencies-{{ checksum "package.json" }}

- run:
command: npm run lib.build.prod
command: npm run svgcodegen.build.prod

"ci/build-web-codegen":
docker:
- image: circleci/node:11.13.0

working_directory: ~/repo

steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: npm install
- run:
name: Install JUnit coverage reporter
command: npm i -D jest-junit

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

- run:
command: npm run webcodegen.build.prod

"ci/test":
docker:
- image: cypress/base:10
- image: cypress/base:11.13.0
steps:
- checkout
- restore_cache:
Expand All @@ -80,7 +187,7 @@ jobs:

"ci/lint":
docker:
- image: circleci/node:10.12
- image: circleci/node:11.13.0
steps:
- checkout
- restore_cache:
Expand All @@ -106,9 +213,6 @@ workflows:
# - test:
# requires:
# - lint
# - "build-lib":
# requires:
# - test
# - "build-app":
# requires:
# - test
Expand All @@ -118,9 +222,6 @@ workflows:
"ci/test":
jobs:
- "ci/test"
"ci/build-lib":
jobs:
- "ci/build-lib"
"ci/build-app":
jobs:
- "ci/build-app"
4 changes: 4 additions & 0 deletions .editorconfig
Expand Up @@ -11,3 +11,7 @@ trim_trailing_whitespace = true
[*.md]
max_line_length = off
trim_trailing_whitespace = false

[Makefile]
indent_size = 4
indent_style = tab
12 changes: 12 additions & 0 deletions Makefile
@@ -0,0 +1,12 @@
all: lib app

lib:
npm run sketchingestor.build.prod
npm run sketchutil.build.prod
npm run csscodegen.build.prod
npm run svgcodegen.build.prod
npm run webcodegen.build.prod
npm run xamlcodegen.build.prod

app:
npm run app.build.prod

0 comments on commit 71d40fc

Please sign in to comment.