tailwindcss 0.0.0-oxide-insiders.07fe8bf → 0.0.0-oxide-insiders.019fddb

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cli/shared.js DELETED
@@ -1,13 +0,0 @@
1
- // @ts-check
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "env", {
7
- enumerable: true,
8
- get: ()=>env
9
- });
10
- const env = {
11
- DEBUG: process.env.DEBUG !== undefined && process.env.DEBUG !== "0",
12
- OXIDE: process.env.OXIDE
13
- };
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "env", {
6
- enumerable: true,
7
- get: ()=>env
8
- });
9
- const env = {
10
- DEBUG: process.env.DEBUG !== undefined && process.env.DEBUG !== "0",
11
- OXIDE: process.env.OXIDE
12
- };
@@ -1,21 +0,0 @@
1
- let log = require('../lib/util/log').default
2
-
3
- // This should be a temporary file.
4
- //
5
- // Right now we require `@tailwindcss/oxide` as one of the packages in package.json. This contains
6
- // all the necessary Rust bindings. However, we won't ship those bindings by default yet, and
7
- // therefore you need to install the explicit oxide-insiders version where the Rust bindings are
8
- // available.
9
- //
10
- // To ensure that this doesn't break existing builds of the insiders release, we will use this shim
11
- // to implement all the APIs and show a warning in case you are trying to run `OXIDE=1 npx
12
- // tailwindcs ...` without having installed the oxide-insiders version.
13
- module.exports.parseCandidateStringsFromFiles = function parseCandidateStringsFromFiles(
14
- _changedContent
15
- ) {
16
- log.warn('oxide-required', [
17
- 'It looks like you are trying to run Tailwind CSS with the OXIDE=1 environment variable.',
18
- 'This version does not have the necessary Rust bindings, so please install the `tailwindcss@insiders-oxide` version instead.',
19
- ])
20
- return []
21
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@tailwindcss/oxide-shim",
3
- "main": "./index.js",
4
- "license": "MIT"
5
- }
@@ -1,27 +0,0 @@
1
- let fs = require('fs/promises')
2
- let { spawn } = require('child_process')
3
- let path = require('path')
4
- let root = process.cwd()
5
-
6
- function npmInstall(cwd) {
7
- return new Promise((resolve) => {
8
- let childProcess = spawn('npm', ['install'], { cwd })
9
- childProcess.on('exit', resolve)
10
- })
11
- }
12
-
13
- async function install() {
14
- let base = path.resolve(root, 'integrations')
15
- let ignoreFolders = ['node_modules']
16
- let integrations = (await fs.readdir(base, { withFileTypes: true }))
17
- .filter((integration) => integration.isDirectory())
18
- .filter((integration) => !ignoreFolders.includes(integration.name))
19
- .map((folder) => path.resolve(base, folder.name))
20
- .concat([base])
21
- .map((integration) => npmInstall(integration))
22
-
23
- await Promise.all(integrations)
24
- console.log('Done!')
25
- }
26
-
27
- install()
@@ -1,68 +0,0 @@
1
- import fs from 'fs'
2
- import postcss from 'postcss'
3
- import tailwind from '..'
4
-
5
- function build({ from, to, config }) {
6
- return new Promise((resolve, reject) => {
7
- console.log(`Processing ./${from}...`)
8
-
9
- fs.readFile(`./${from}`, (err, css) => {
10
- if (err) throw err
11
-
12
- return postcss([tailwind(config)])
13
- .process(css, {
14
- from: undefined,
15
- })
16
- .then((result) => {
17
- fs.writeFileSync(`./${to}`, result.css)
18
- return result
19
- })
20
- .then(resolve)
21
- .catch((error) => {
22
- console.log(error)
23
- reject()
24
- })
25
- })
26
- })
27
- }
28
-
29
- console.info('\nRebuilding fixtures...\n')
30
-
31
- Promise.all([
32
- build({
33
- from: 'tests/fixtures/tailwind-input.css',
34
- to: 'tests/fixtures/tailwind-output.css',
35
- config: {},
36
- }),
37
- build({
38
- from: 'tests/fixtures/tailwind-input.css',
39
- to: 'tests/fixtures/tailwind-output-important.css',
40
- config: { important: true },
41
- }),
42
- build({
43
- from: 'tests/fixtures/tailwind-input.css',
44
- to: 'tests/fixtures/tailwind-output-no-color-opacity.css',
45
- config: {
46
- corePlugins: {
47
- textOpacity: false,
48
- backgroundOpacity: false,
49
- borderOpacity: false,
50
- placeholderOpacity: false,
51
- divideOpacity: false,
52
- },
53
- },
54
- }),
55
- build({
56
- from: 'tests/fixtures/tailwind-input.css',
57
- to: 'tests/fixtures/tailwind-output-flagged.css',
58
- config: {
59
- future: 'all',
60
- experimental: 'all',
61
- },
62
- }),
63
- ]).then(() => {
64
- console.log('\nFinished rebuilding fixtures.')
65
- console.log(
66
- '\nPlease triple check that the fixture output matches what you expect before committing this change.'
67
- )
68
- })
package/src/cli/shared.js DELETED
@@ -1,6 +0,0 @@
1
- // @ts-check
2
-
3
- export const env = {
4
- DEBUG: process.env.DEBUG !== undefined && process.env.DEBUG !== '0',
5
- OXIDE: process.env.OXIDE,
6
- }
@@ -1,4 +0,0 @@
1
- export const env = {
2
- DEBUG: process.env.DEBUG !== undefined && process.env.DEBUG !== '0',
3
- OXIDE: process.env.OXIDE,
4
- }