Skip to content

Commit

Permalink
Prepare for first publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
spoenemann committed Jun 16, 2021
1 parent 00ebfd9 commit f73c1be
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 36 deletions.
8 changes: 2 additions & 6 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"private": true,
"scripts": {
"clean": "rimraf \"packages/**/lib\" \"packages/**/*.tsbuildinfo\"",
"compile": "tsc -b tsconfig.build.json",
"build": "tsc -b tsconfig.build.json",
"watch": "tsc -b tsconfig.build.json -w",
"prepare": "npm run clean && npm run compile && npm run copygrammar --workspace=langium"
"prepare": "npm run clean && npm run build && npm run copygrammar --workspace=langium"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^4.22.1",
Expand Down
4 changes: 0 additions & 4 deletions packages/generator-langium/.prettierrc.js

This file was deleted.

27 changes: 19 additions & 8 deletions packages/generator-langium/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
{
"name": "generator-langium",
"version": "0.1.0",
"description": "",
"files": [
"app", "langium-template"
],
"version": "0.0.0",
"description": "Yeoman generator for Langium - the language engineering tool",
"keywords": [
"yeoman-generator"
"yeoman-generator",
"language",
"dsl",
"lsp",
"vscode"
],
"license": "MIT",
"files": [
"app",
"langium-template",
"src"
],
"main": "app/index.js",
"types": "app/index.d.ts",
"scripts": {
"clean": "rimraf app/*",
"clean": "rimraf app",
"build": "tsc",
"watch": "tsc --watch",
"lint": "eslint ./src --ext .js,.ts",
"run": "yo langium",
"debug": "npx --node-arg=--inspect yo langium"
"debug": "npx --node-arg=--inspect yo langium",
"publish:next": "npm --no-git-tag-version version \"$(semver $npm_package_version -i minor)-next.$(git rev-parse --short HEAD)\" && npm publish --tag next",
"publish:latest": "npm publish --tag latest"
},
"dependencies": {
"lodash": "^4.17.21",
Expand Down
28 changes: 20 additions & 8 deletions packages/langium-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,35 @@
{
"name": "langium-cli",
"version": "0.0.0",
"description": "",
"description": "CLI for Langium - the language engineering tool",
"keywords": [
"cli",
"dsl",
"lsp",
"vscode",
"typescript"
],
"license": "MIT",
"files": [
"bin",
"lib",
"src"
],
"bin": {
"langium": "./bin/langium.js"
},
"main": "./bin/langium.js",
"main": "./lib/langium.js",
"scripts": {
"clean": "rimraf lib/*",
"clean": "rimraf lib coverage",
"build": "tsc",
"watch": "tsc --watch",
"test": "jest --coverage --passWithNoTests",
"lint": "eslint ./src --ext .js,.ts",
"test": "jest --coverage --passWithNoTests"
"publish:next": "npm --no-git-tag-version version \"$(semver $npm_package_version -i minor)-next.$(git rev-parse --short HEAD)\" && npm publish --tag next",
"publish:latest": "npm publish --tag latest"
},
"author": "",
"license": "MIT",
"dependencies": {
"commander": "^7.2.0",
"langium": "0.0.0"
},
"devDependencies": {
Expand All @@ -24,8 +38,6 @@
"@types/node": "^14.14.31",
"@typescript-eslint/eslint-plugin": "^4.15.2",
"@typescript-eslint/parser": "^4.15.2",
"commander": "^7.2.0",
"copyfiles": "^2.4.1",
"eslint": "^7.20.0",
"jest": "^26.6.3",
"rimraf": "^3.0.2",
Expand Down
28 changes: 21 additions & 7 deletions packages/langium/package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,37 @@
{
"name": "langium",
"version": "0.0.0",
"description": "",
"description": "A language engineering tool for the Language Server Protocol",
"keywords": [
"language",
"dsl",
"lsp",
"vscode",
"typescript"
],
"license": "MIT",
"files": [
"lib",
"src"
],
"main": "lib/index.js",
"types": "lib/index.d.ts",
"scripts": {
"clean": "rimraf lib/*",
"clean": "rimraf lib coverage",
"build": "tsc",
"watch": "tsc --watch",
"lint": "eslint ./src --ext .js,.ts",
"bootstrap": "node ../langium-cli/bin/langium && npm run copygrammar",
"test": "jest --coverage",
"copygrammar": "copyfiles -f ./src/grammar/generated/grammar.json ./lib/grammar/generated"
"bootstrap": "node ../langium-cli/bin/langium && npm run copygrammar",
"copygrammar": "copyfiles -f ./src/grammar/generated/grammar.json ./lib/grammar/generated",
"publish:next": "npm --no-git-tag-version version \"$(semver $npm_package_version -i minor)-next.$(git rev-parse --short HEAD)\" && npm publish --tag next",
"publish:latest": "npm publish --tag latest"
},
"author": "",
"license": "MIT",
"langium": {
"grammar": "src/grammar/langium-grammar.langium",
"extensions": ["langium"],
"extensions": [
"langium"
],
"out": "src/grammar/generated",
"langiumInternal": true
},
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
"declaration": true, /* Generates corresponding '.d.ts' file. */
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
"declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
"sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
"outDir": "lib", /* Redirect output structure to the directory. */
Expand Down

0 comments on commit f73c1be

Please sign in to comment.