Files
blockly/package.json
Christopher Allen ec14cc3ed8 Package build output; fix node tests.
- Reconfigure package_tasks.js to use BUILD_DIR from config.js
  (i.e., build/) rather than repository root as source of files to
  package.

  - Add check to packageTasks.package to ensure that certain required
    files exist in BUILD_DIR, to verify that buildTasks.build and
    typings.typings have been run.

  - Fix packageUMDBundle to use generated, rather than checked-in
    version of en.js.

  - Fix packageDTS to use the generated (rather than checked-in)
    versions of blockly.d.ts and msg/*.d.ts.

- Modify run_all_tests.sh to run packageTasks.package before running
  node tests, since they depend on it.  Previously this was only
  working because 'npm install' runs the 'prepare' script, which would
  run the 'package' script - so the code being tested by the node tests
  was not the current source but whatever precomipled code had
  previously been checked in.

- Remove the 'prepare' script from package.json, since it is no longer
  needed (and is now broken, since it requires that build and typings
  have been done first.)  Note that no scripts at all are included in
  the version of package.json that is created in dist/ and subsequently
  included in the published npms, so this deletion does not affect what
  happens when the Blockly npm in installed - it only affects what
  happens when 'npm install' is run after the blockly repo is cloned.

- Factor out the actual recompilation steps from releaseTasks.recompile.

- Rename releaseTasks.recomple to recompileDevelop, since it deals
  specifically with the develop branch.  (The npm script name is
  unchanged.)

- Ensure that a full recompile and repackage is done before publishing
  (beta and non-beta) npms.
2021-07-08 16:34:50 +01:00

101 lines
3.2 KiB
JSON

{
"name": "blockly",
"version": "5.20210325.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:blocks": "gulp buildBlocks",
"build:compressed": "gulp buildCompressed",
"build:core": "gulp buildCore",
"build:debug": "gulp buildCompressed --verbose --debug",
"build:debug:log": "npm run build:debug > build-debug.log 2>&1 && tail -3 build-debug.log",
"build:strict": "gulp buildCompressed --verbose --strict",
"build:strict:log": "npm run build:strict > build-debug.log 2>&1 && tail -3 build-debug.log",
"build:generators": "gulp buildGenerators",
"build:langfiles": "gulp buildLangfiles",
"build:uncompressed": "gulp buildUncompressed",
"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",
"format": "git-clang-format",
"format:sortrequires": "gulp sortRequires",
"generate:langfiles": "gulp generateLangfiles",
"license": "gulp checkLicenses",
"lint": "eslint .",
"package": "gulp package",
"publish": "gulp publish",
"publish:beta": "gulp publishBeta",
"recompile": "gulp recompile",
"release": "gulp gitCreateRC",
"test": "tests/run_all_tests.sh",
"test:generators": "tests/scripts/run_generators.sh",
"test:compile:advanced": "gulp buildAdvancedCompilationTest",
"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": "^1.0.0",
"@blockly/dev-tools": "^2.0.1",
"@blockly/theme-modern": "^2.1.1",
"@wdio/selenium-standalone-service": "^6.11.0",
"babel-eslint": "^10.1.0",
"chai": "^4.2.0",
"clang-format": "^1.5.0",
"concurrently": "^6.0.0",
"eslint": "^7.28.0",
"google-closure-compiler": "^20210505.0.0",
"google-closure-deps": "^20210601.0.0",
"gulp": "^4.0.2",
"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",
"js-green-licenses": "^3.0.0",
"mocha": "^8.1.1",
"readline-sync": "^1.4.10",
"rimraf": "^3.0.2",
"selenium-standalone": "^7.1.0",
"through2": "^4.0.2",
"typescript": "^4.3.2",
"typescript-closure-tools": "^0.0.7",
"webdriverio": "^7.0.3",
"yargs": "^16.0.3"
},
"dependencies": {
"jsdom": "15.2.1"
}
}