Skip to content

Commit f8a5cb4

Browse files
authored
chore(webpack) : markdown-template browser version (#521)
* chore(webpack) : markdown-template browser version Signed-off-by: Dan Selman <[email protected]> * chore(webpack) : browser version markdown-transform Signed-off-by: Dan Selman <[email protected]> * chore(pdf) : remove output files Signed-off-by: Dan Selman <[email protected]> Signed-off-by: Dan Selman <[email protected]>
1 parent 5764b97 commit f8a5cb4

File tree

114 files changed

+29987
-5516
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+29987
-5516
lines changed

.gitignore

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
.DS_Store
1616

17-
output
18-
1917
# Downloaded model files
2018
# **/models/@*.cto
2119

@@ -26,6 +24,12 @@ npm-debug.log*
2624
yarn-debug.log*
2725
yarn-error.log*
2826

27+
# output directory
28+
/out
29+
/dist
30+
/umd
31+
/lib
32+
2933
# Runtime data
3034
pids
3135
*.pid

package-lock.json

Lines changed: 2090 additions & 2224 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,5 @@
124124
"file": "HEADER"
125125
}
126126
}
127-
},
128-
"dependencies": {}
127+
}
129128
}

packages/markdown-pdf/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ pids
1616
/dist
1717
/umd
1818
/lib
19+
/output
1920

2021
# Directory for instrumented libs generated by jscoverage/JSCover
2122
lib-cov
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"presets": [
3+
[
4+
"@babel/preset-env",
5+
{
6+
"targets": {
7+
"node": "6.10",
8+
"esmodules": true
9+
}
10+
}
11+
]
12+
],
13+
"env": {
14+
"production": {
15+
"plugins": ["@babel/plugin-proposal-object-rest-spread"]
16+
},
17+
"development": {
18+
"plugins": ["istanbul","@babel/plugin-proposal-object-rest-spread"]
19+
}
20+
}
21+
}

packages/markdown-template/.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ coverage
22
node_modules
33
out
44
umd
5+
lib
56
test/data
67
scripts
7-
test.js

packages/markdown-template/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ pids
1515
/out
1616
/dist
1717
/umd
18+
/lib
1819

1920
# Directory for instrumented libs generated by jscoverage/JSCover
2021
lib-cov
Lines changed: 200 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,200 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
'use strict';
16+
// For a detailed explanation regarding each configuration property, visit:
17+
// https://jestjs.io/docs/en/configuration.html
18+
19+
module.exports = {
20+
// All imported modules in your tests should be mocked automatically
21+
// automock: false,
22+
23+
// Stop running tests after `n` failures
24+
// bail: 0,
25+
26+
// Respect "browser" field in package.json when resolving modules
27+
// browser: false,
28+
29+
// The directory where Jest should store its cached dependency information
30+
// cacheDirectory: "/private/var/folders/tv/4ljndl3s2jg90nxd8h7f3bgr0000gn/T/jest_dx",
31+
32+
// Automatically clear mock calls and instances between every test
33+
clearMocks: true,
34+
35+
// Indicates whether the coverage information should be collected while executing the test
36+
// collectCoverage: false,
37+
38+
// An array of glob patterns indicating a set of files for which coverage information should be collected
39+
collectCoverageFrom: [ 'src/**/*.js' ],
40+
41+
// The directory where Jest should output its coverage files
42+
coverageDirectory: 'coverage',
43+
44+
// An array of regexp pattern strings used to skip coverage collection
45+
coveragePathIgnorePatterns: [
46+
'/node_modules/'
47+
],
48+
49+
// A list of reporter names that Jest uses when writing coverage reports
50+
coverageReporters: [
51+
'json',
52+
'text',
53+
'lcov',
54+
'html'
55+
],
56+
57+
// An object that configures minimum threshold enforcement for coverage results
58+
// coverageThreshold: null,
59+
60+
// A path to a custom dependency extractor
61+
// dependencyExtractor: null,
62+
63+
// Make calling deprecated APIs throw helpful error messages
64+
// errorOnDeprecated: false,
65+
66+
// Force coverage collection from ignored files using an array of glob patterns
67+
// forceCoverageMatch: [],
68+
69+
// A path to a module which exports an async function that is triggered once before all test suites
70+
// globalSetup: null,
71+
72+
// A path to a module which exports an async function that is triggered once after all test suites
73+
// globalTeardown: null,
74+
75+
// A set of global variables that need to be available in all test environments
76+
// globals: {},
77+
78+
// An array of directory names to be searched recursively up from the requiring module's location
79+
// moduleDirectories: [
80+
// "node_modules"
81+
// ],
82+
83+
// An array of file extensions your modules use
84+
// moduleFileExtensions: [
85+
// "js",
86+
// "json",
87+
// "jsx",
88+
// "ts",
89+
// "tsx",
90+
// "node"
91+
// ],
92+
93+
// A map from regular expressions to module names that allow to stub out resources with a single module
94+
// moduleNameMapper: {},
95+
96+
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
97+
// modulePathIgnorePatterns: [],
98+
99+
// Activates notifications for test results
100+
// notify: false,
101+
102+
// An enum that specifies notification mode. Requires { notify: true }
103+
// notifyMode: "failure-change",
104+
105+
// A preset that is used as a base for Jest's configuration
106+
// preset: null,
107+
108+
// Run tests from one or more projects
109+
// projects: null,
110+
111+
// Use this configuration option to add custom reporters to Jest
112+
// reporters: undefined,
113+
114+
// Automatically reset mock state between every test
115+
// resetMocks: false,
116+
117+
// Reset the module registry before running each individual test
118+
// resetModules: false,
119+
120+
// A path to a custom resolver
121+
// resolver: null,
122+
123+
// Automatically restore mock state between every test
124+
// restoreMocks: false,
125+
126+
// The root directory that Jest should scan for tests and modules within
127+
// rootDir: null,
128+
129+
// A list of paths to directories that Jest should use to search for files in
130+
// roots: [
131+
// "<rootDir>"
132+
// ],
133+
134+
// Allows you to use a custom runner instead of Jest's default test runner
135+
// runner: "jest-runner",
136+
137+
// The paths to modules that run some code to configure or set up the testing environment before each test
138+
// setupFiles: [],
139+
140+
// A list of paths to modules that run some code to configure or set up the testing framework before each test
141+
// setupFilesAfterEnv: [],
142+
143+
// A list of paths to snapshot serializer modules Jest should use for snapshot testing
144+
// snapshotSerializers: [],
145+
146+
// The test environment that will be used for testing
147+
testEnvironment: 'node',
148+
149+
// Options that will be passed to the testEnvironment
150+
// testEnvironmentOptions: {},
151+
152+
// Adds a location field to test results
153+
// testLocationInResults: false,
154+
155+
// The glob patterns Jest uses to detect test files
156+
// testMatch: [
157+
// "**/__tests__/**/*.[jt]s?(x)",
158+
// "**/?(*.)+(spec|test).[tj]s?(x)"
159+
// ],
160+
161+
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
162+
// testPathIgnorePatterns: [
163+
// "/node_modules/"
164+
// ],
165+
166+
// The regexp pattern or array of patterns that Jest uses to detect test files
167+
// testRegex: [],
168+
169+
// This option allows the use of a custom results processor
170+
// testResultsProcessor: null,
171+
172+
// This option allows use of a custom test runner
173+
// testRunner: "jasmine2",
174+
175+
// This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
176+
// testURL: "http://localhost",
177+
178+
// Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"
179+
// timers: "real",
180+
181+
// A map from regular expressions to paths to transformers
182+
// transform: null,
183+
184+
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
185+
// transformIgnorePatterns: [
186+
// "/node_modules/"
187+
// ],
188+
189+
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
190+
// unmockedModulePathPatterns: undefined,
191+
192+
// Indicates whether each individual test should be reported during the run
193+
// verbose: null,
194+
195+
// An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
196+
// watchPathIgnorePatterns: [],
197+
198+
// Whether to use watchman for file crawling
199+
// watchman: true,
200+
};

0 commit comments

Comments
 (0)