mirror of
https://github.com/google/blockly.git
synced 2026-01-09 18:10:08 +01:00
* chore(deps): Update closure/goog/base.js, add goog.js
- Update base.js from the latest version (20220502.0.0).
- Also copy over goog.js, which provides access to a suitable subset
of goog.* via an importable module).
* chore(build): Split gulpfiles/config.js exports object
This makes it possible for entries to depend on each other.
* chore(build): build config consistency
- Reorder entries in gulpfiles.config.js to better match order they
are used.
- Have update_metadata.sh reference config.js and vice versa.
* refactor(build): Move deps.js (+ deps.mocha.js) from test/ to build/
Once we start using tsc, deps.js will be created based on the ouptut
of tsc rather than the raw source in core/. Since tsc will need to
be run before running closure-make-deps and also before trying to
load blockly_uncompressed.js, it doesn't really make sense to check
in deps.js; it's better to re-create as needed.
To reduce inconvenience, a new "prepare" script is added to
package.json which will run the buildDeps gulp target automaticaly
when one runs npm install.
* refactor(build): Always build from TypeScript sources
- Add buildJavaScript gulp task to use tsc to compile any .ts files
in core/ into build/src/core/ (and also copy any .js files that
are not yet migrated to TypeScript, which for now is all of them.
- Remove closure/goog from explicit inputs to tsc; it will find
the files it needs (e.g., goog.js) automatically.
- Have buildDeps, the playground, and all the tests that run in
uncompiled mode use build/src/core/ instead of core/ as their
input directory.
* feat(build): Add buildJavaScriptAndDeps gulp task
Have npm run build:deps (and npm run prepare) use a new gulp task,
buildJavaScriptAndDeps, to run tsc followed by closure-make-deps,
ensuring that deps.js is calculated based on the most recent code
in core/.
* fix(build): Fix implementation of flattenCorePaths
Even though this function is going away I want to remove it in
a separate PR so that we can revert easily if desired. But the
previous checked-in code was totally wrong. This version works.
* fix(build): Don't let checkinBuilt copy build/src/**
Now that we are putting a lot more stuff in build/ (specifically,
all the tsc output in build/src/), modify checkinBuilt so that it
only copies the specific things we want to check in (for now):
- _compressed.js build artifacts and their accompanying .js.maps
- the generated build/msg/js/*.js language files.
Unrelatedly, also fix safety-quoting of arguments for one execSync
call.
109 lines
3.6 KiB
JSON
109 lines
3.6 KiB
JSON
{
|
|
"name": "blockly",
|
|
"version": "8.0.0",
|
|
"description": "Blockly is a library for building visual programming editors.",
|
|
"keywords": [
|
|
"blockly"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/google/blockly.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/google/blockly/issues"
|
|
},
|
|
"homepage": "https://developers.google.com/blockly/",
|
|
"author": {
|
|
"name": "Neil Fraser"
|
|
},
|
|
"scripts": {
|
|
"build": "gulp build",
|
|
"build-debug": "gulp build --verbose --debug",
|
|
"build-debug-log": "npm run build:debug > build-debug.log 2>&1 && tail -3 build-debug.log",
|
|
"build-strict": "gulp build --verbose --strict",
|
|
"build-strict-log": "npm run build:strict > build-debug.log 2>&1 && tail -3 build-debug.log",
|
|
"build:compiled": "gulp buildCompiled",
|
|
"build:compressed": "npm run build:compiled",
|
|
"build:deps": "gulp buildJavaScriptAndDeps",
|
|
"build:js": "gulp buildJavaScript",
|
|
"build:langfiles": "gulp buildLangfiles",
|
|
"bump": "npm --no-git-tag-version version 4.$(date +'%Y%m%d').0",
|
|
"clean": "gulp clean",
|
|
"clean:build": "gulp cleanBuildDir",
|
|
"clean:release": "gulp cleanReleaseDir",
|
|
"checkin": "gulp checkin",
|
|
"checkin:built": "gulp checkinBuilt",
|
|
"checkin:typings": "gulp checkinTypings",
|
|
"deployDemos": "gulp deployDemos",
|
|
"deployDemos:beta": "gulp deployDemosBeta",
|
|
"format": "gulp clangFormat",
|
|
"format:sortrequires": "gulp sortRequires",
|
|
"generate:langfiles": "gulp generateLangfiles",
|
|
"license": "gulp checkLicenses",
|
|
"lint": "eslint .",
|
|
"package": "gulp package",
|
|
"prepare": "gulp buildJavaScriptAndDeps",
|
|
"prepareDemos": "gulp prepareDemos",
|
|
"publish": "gulp publish",
|
|
"publish:beta": "gulp publishBeta",
|
|
"recompile": "gulp recompile",
|
|
"release": "gulp gitCreateRC",
|
|
"start": "http-server ./ -o /tests/playground.html -c-1",
|
|
"test": "tests/run_all_tests.sh",
|
|
"test:generators": "tests/scripts/run_generators.sh",
|
|
"test:mocha:interactive": "http-server ./ -o /tests/mocha/index.html -c-1",
|
|
"test:compile:advanced": "gulp buildAdvancedCompilationTest --debug",
|
|
"typings": "gulp typings",
|
|
"updateGithubPages": "gulp gitUpdateGithubPages"
|
|
},
|
|
"main": "./index.js",
|
|
"umd": "./blockly.min.js",
|
|
"unpkg": "./blockly.min.js",
|
|
"types": "./index.d.ts",
|
|
"browser": {
|
|
"./node.js": "./browser.js",
|
|
"./core.js": "./core-browser.js",
|
|
"./blockly-node.js": "./blockly.js"
|
|
},
|
|
"license": "Apache-2.0",
|
|
"devDependencies": {
|
|
"@blockly/block-test": "^2.0.1",
|
|
"@blockly/dev-tools": "^3.0.1",
|
|
"@blockly/theme-modern": "^2.1.1",
|
|
"@hyperjump/json-schema": "^0.18.4",
|
|
"@wdio/selenium-standalone-service": "^7.10.1",
|
|
"chai": "^4.2.0",
|
|
"clang-format": "^1.6.0",
|
|
"closure-calculate-chunks": "^3.0.2",
|
|
"concurrently": "^7.0.0",
|
|
"eslint": "^8.4.1",
|
|
"eslint-config-google": "^0.14.0",
|
|
"google-closure-compiler": "^20220601.0.0",
|
|
"google-closure-deps": "^20220502.0.0",
|
|
"gulp": "^4.0.2",
|
|
"gulp-clang-format": "^1.0.27",
|
|
"gulp-concat": "^2.6.1",
|
|
"gulp-insert": "^0.5.0",
|
|
"gulp-rename": "^2.0.0",
|
|
"gulp-replace": "^1.0.0",
|
|
"gulp-series": "^1.0.2",
|
|
"gulp-shell": "^0.8.0",
|
|
"gulp-sourcemaps": "^3.0.0",
|
|
"gulp-umd": "^2.0.0",
|
|
"http-server": "^14.0.0",
|
|
"js-green-licenses": "^3.0.0",
|
|
"json5": "^2.2.0",
|
|
"mocha": "^9.1.1",
|
|
"readline-sync": "^1.4.10",
|
|
"rimraf": "^3.0.2",
|
|
"selenium-standalone": "^8.0.3",
|
|
"through2": "^4.0.2",
|
|
"typescript": "^4.3.2",
|
|
"webdriverio": "^7.0.3",
|
|
"yargs": "^17.2.1"
|
|
},
|
|
"dependencies": {
|
|
"jsdom": "15.2.1"
|
|
}
|
|
}
|