Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
feat(Selectors): Autogenerate semantic selectors from Stencila Schema
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ketch committed Jan 28, 2020
1 parent de23f76 commit 8c5862c
Show file tree
Hide file tree
Showing 5 changed files with 519 additions and 57 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/common/styles/selectors.css
180 changes: 149 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 11 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@
],
"main": "./dist/index.js",
"scripts": {
"dev": "parcel ./src/index.html ./src/examples/*.html --open",
"build": "parcel build ./src/*.ts ./src/{common,themes}/**/*.{css,ts} && tsc --emitDeclarationOnly",
"watch": "parcel watch ./src/**/*.css ./src/**/*.ts",
"build:selectors": "npx ts-node src/generateSelectors.ts",
"clean": "rm -rf .cache dist pages test/examples",
"dev": "parcel ./src/index.html ./src/examples/*.html --open",
"pages": "parcel build ./src/index.html ./src/examples/*.html -d pages --public-url .",
"pages:test": "parcel build ./src/examples/*.html -d test/examples --public-url .",
"clean": "rm -rf .cache dist pages test/examples",
"postinstall": "npm run build:selectors",
"semantic-release": "semantic-release",
"test": "SAUCE_API_HOST=eu-central-1.saucelabs.com wdio"
"test": "SAUCE_API_HOST=eu-central-1.saucelabs.com wdio",
"watch": "parcel watch ./src/**/*.css ./src/**/*.ts"
},
"repository": {
"type": "git",
Expand All @@ -36,18 +38,20 @@
"@abide-community/parcel-plugin-clean-out-dir": "^1.0.0",
"@babel/core": "^7.8.0",
"@stencila/dev-config": "^1.4.5",
"@stencila/schema": "^0.35.0",
"@types/prismjs": "^1.16.0",
"@wdio/cli": "^5.18.5",
"@wdio/dot-reporter": "^5.16.5",
"@wdio/dot-reporter": "^5.18.6",
"@wdio/local-runner": "^5.18.5",
"@wdio/mocha-framework": "^5.16.15",
"@wdio/sauce-service": "^5.16.10",
"@wdio/static-server-service": "^5.16.10",
"argos-cli": "^0.1.3",
"autoprefixer": "^9.7.3",
"autoprefixer": "^9.7.4",
"babel-register": "^6.26.0",
"chromedriver": "^79.0.0",
"geckodriver": "^1.19.1",
"globby": "^11.0.0",
"normalize.css": "^8.0.1",
"parcel-bundler": "^1.12.4",
"parcel-plugin-url-loader": "git+https://github.com/stencila/parcel-plugin-url-loader.git",
Expand Down Expand Up @@ -95,7 +99,7 @@
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged",
"pre-commit": "npm run build:selectors && pretty-quick --staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
Expand Down
Loading

0 comments on commit 8c5862c

Please sign in to comment.