Compare commits

..

No commits in common. "7777dee9f38988f9fabd004b4f61f4c269c01a3e" and "6b8c085976e03d1752dfffcb876f3b7675adfebb" have entirely different histories.

8 changed files with 9 additions and 169 deletions

View file

@ -4,9 +4,6 @@
"service": "silverstripe",
"workspaceFolder": "/vscode/src/mantra",
"extensions": [
"felixfbecker.php-pack",
"ms-vscode.vscode-typescript-tslint-plugin",
"msjsdiag.debugger-for-chrome",
"neilbrayfield.php-docblocker"
"ms-vscode.vscode-typescript-tslint-plugin"
]
}

View file

@ -8,7 +8,6 @@ services:
- 8080:80
- 3000:3000
- 3001:3001
- 9000:9000
volumes:
- ..:/vscode/src/mantra
- ../test/website:/var/www/html

View file

@ -5,11 +5,8 @@
// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"adrianhumphreys.silverstripe",
"felixfbecker.php-pack",
"ms-vscode.vscode-typescript-tslint-plugin",
"ms-vscode-remote.remote-containers",
"msjsdiag.debugger-for-chrome",
"neilbrayfield.php-docblocker"
"ms-vscode-remote.remote-containers"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": [

38
.vscode/launch.json vendored
View file

@ -1,38 +0,0 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}/test/website/public",
"pathMapping": {
"/_resources/themes/mantra": "${workspaceFolder}"
},
"preLaunchTask": "Watch Debug",
"postDebugTask": "Stop Debug"
},
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
"pathMappings": {
"/var/www/html": "${workspaceFolder}/test/website"
}
}
],
"compounds": [
{
"name": "Debug Theme",
"configurations": [
"Launch Chrome",
"Listen for XDebug"
]
}
]
}

85
.vscode/tasks.json vendored
View file

@ -1,85 +0,0 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Debug",
"type": "npm",
"script": "build",
"group": "build",
"problemMatcher": "$tsc"
},
{
"label": "Release",
"type": "npm",
"script": "release",
"group": "build",
"problemMatcher": "$tsc"
},
{
"label": "Watch Debug",
"type": "npm",
"script": "watch",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
}
},
{
"label": "Watch Release",
"type": "npm",
"script": "watch-release",
"group": "build",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
}
},
{
"label": "Stop Debug",
"type": "npm",
"script": "stop",
"problemMatcher": [],
"presentation": {
"reveal": "never"
}
},
{
"label": "Stop Release",
"type": "npm",
"script": "stop-release",
"problemMatcher": [],
"presentation": {
"reveal": "never"
}
},
{
"label": "Rebuild",
"type": "npm",
"script": "rebuild",
"problemMatcher": "$tsc"
},
{
"label": "Rebuild Release",
"type": "npm",
"script": "rebuild-release",
"problemMatcher": "$tsc"
},
{
"label": "Lint",
"type": "npm",
"script": "lint",
"problemMatcher": "$tslint5",
"presentation": {
"reveal": "never"
}
}
]
}

View file

@ -24,28 +24,10 @@
],
"homepage": "https://github.com/manuth/mantra#readme",
"scripts-descriptions": {
"build": "Builds the project.",
"release": "Performs a release-build.",
"rebuild": "Rebuilds the project.",
"rebuild-release": "Rebuilds the project in release-mode.",
"watch": "Builds the project in watch-mode.",
"watch-release": "Performs a release-build in watch-mode.",
"stop": "Stops building the project in watch-mode.",
"stop-release": "Stops performing the release-build in watch-mode.",
"clean": "Cleans the project",
"lint": "Lints the project."
"initialize": "Initializes the project."
},
"scripts": {
"build": "npm run build",
"release": "npm run release",
"rebuild": "npm run rebuild",
"rebuild-release": "npm run rebuild-release",
"watch": "npm run watch",
"watch-release": "npm run watch-release",
"stop": "npm run stop",
"stop-release": "npm run stop-release",
"clean": "npm run clean",
"lint": "npm run lint"
"initialize": "npm run initialize"
},
"require": {},
"require-dev": {
@ -72,7 +54,7 @@
"scripts-dev": {
"post-install-cmd": [
"npm install",
"@rebuild",
"@initialize",
"composer --working-dir=./test/website install"
]
}

View file

@ -85,9 +85,9 @@ function ParseArgs(args: string[])
let settings = new Settings(options["target"]);
/**
* Cleans the project.
* Initializes the project.
*/
export async function Clean()
export async function Initialize()
{
let directories = [
"javascript",
@ -109,7 +109,7 @@ export async function Clean()
await require("create-symlink")(settings.RootPath(), settings.TestThemePath(), { type: "junction" });
}
Clean.description = "Cleans the project.";
Initialize.description = "Initializes the project.";
/**
* Builds the project in watched mode.

View file

@ -1,19 +1,7 @@
{
"private": true,
"scripts": {
"build": "gulp Build -t Debug",
"release": "gulp Build -t Release",
"rebuild": "npm run clean && npm run build",
"rebuild-release": "npm run clean && npm run release",
"watch": "gulp Watch -t Debug",
"watch-release": "gulp Watch -t Release",
"stop": "gulp Stop -t Debug",
"stop-release": "gulp Stop -t Release",
"clean": "gulp Clean",
"lint": "npm run lint-gulp && npm run lint-project",
"lint-gulp": "tslint -p . -t verbose",
"lint-project": "tslint -p ./src/App -t verbose",
"prepare": "npm run rebuild"
"initialize": "gulp Initialize"
},
"dependencies": {},
"devDependencies": {